-
Notifications
You must be signed in to change notification settings - Fork 6
Kubernetes: properly reuse tls certificates ⚠️ #1234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
YuryHrytsuk
merged 8 commits into
ITISFoundation:main
from
YuryHrytsuk:kubernetes-reuse-tls-certs
Oct 20, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8def09d
Kubernetes: properly reuse tls certificates
YuryHrytsuk a268f6e
Merge remote-tracking branch 'upstream/main' into kubernetes-reuse-tl…
YuryHrytsuk c952bf9
traefik: delete ingress tls config
YuryHrytsuk c053b3a
Update certificate values
YuryHrytsuk 6fc601d
Customize reflector chart & polish certs template
YuryHrytsuk 362717f
Merge traefik values + explicit cert dates
YuryHrytsuk 4c5ff81
Merge remote-tracking branch 'upstream/main' into kubernetes-reuse-tl…
YuryHrytsuk 60a9fe6
Merge remote-tracking branch 'upstream/main' into kubernetes-reuse-tl…
YuryHrytsuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| {{- range .Values.certificates -}} | ||
| apiVersion: cert-manager.io/v1 | ||
| kind: Certificate | ||
| metadata: | ||
| name: {{ .certName }} | ||
| spec: | ||
| # https://github.com/emberstack/kubernetes-reflector?tab=readme-ov-file#cert-manager-support | ||
| secretTemplate: | ||
| annotations: | ||
| reflector.v1.k8s.emberstack.com/reflection-allowed: "true" | ||
| reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces: "traefik" | ||
| reflector.v1.k8s.emberstack.com/reflection-auto-enabled: "true" | ||
| reflector.v1.k8s.emberstack.com/reflection-auto-namespaces: "traefik" | ||
| duration: 2160h # 90 days | ||
| renewBefore: 720h # 30 days | ||
| secretName: {{ .secretName }} | ||
| dnsNames: | ||
| {{- range .dnsNames }} | ||
| - "{{ . }}" | ||
| {{- end }} | ||
| issuerRef: | ||
| name: cert-issuer | ||
| kind: ClusterIssuer | ||
| --- | ||
| {{- end -}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # namespace with defined pod security standard | ||
| # inspired from https://aro-labs.com/pod-security-standards/ | ||
| # official doc: https://kubernetes.io/docs/concepts/security/pod-security-standards/ | ||
| # | ||
| # Warning: if pod / container does not meet enforced standards, it will not be deployed (silently) | ||
| # execute `kubectl -n <namespace> events` to see errors (e.g.) | ||
| # Error creating: pods "xyz" is forbidden: violates PodSecurity "baseline:latest": privileged | ||
| # container "xyz" must not set securityContext.privileged to true | ||
| # | ||
| apiVersion: v1 | ||
| kind: Namespace | ||
| metadata: | ||
| name: reflector | ||
| labels: | ||
| pod-security.kubernetes.io/enforce: baseline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| configuration: | ||
| watcher: | ||
| # https://github.com/emberstack/kubernetes-reflector/issues/560#issuecomment-3415122791 | ||
| timeout: 30 # seconds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.