This application is used to auto renew kubernetes ingress tls certificate from s3 bucket.
Secrets must contain the following metadata labels
metadata:
labels:
tls-cert-renewer-enabled: 'true'
tls-cert-renewer-parent-domain: <REPLACE>
- Create a new IAM User with an S3 download policy
- Replace the ACCESS_KEY_ID environment variable in
kubernetes/deployment.yaml
with your new generated user's access key id - Replace the
awsKey:
variable inkubernetes/secret.yaml
with the base64 contents of your generated user's secret access key
$ echo -n "secretkey" | base64
- Update the
AWS_REGION
environment variable inkubernetes/deployment.yaml
if you aren't running inus-west-2
with your EKS cluster - Edit the
kubernetes/deployment.yaml
command:
with following arguments
Symbol | Default | Description |
---|---|---|
--bucket_name |
Required |
Bucket Name |
--prefix |
Required |
Folder name where the certificate is located |
--sleep_time |
86400 |
Time until the next execution |
- Finally:
$ kubectl apply -f kubernetes/
Raise a PR or file an issue, I'd love to help!