Skip to content

Commit 6fc601d

Browse files
committed
Customize reflector chart & polish certs template
1 parent c053b3a commit 6fc601d

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

charts/cert-manager/templates/certificates.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ kind: Certificate
44
metadata:
55
name: {{ .certName }}
66
spec:
7+
# https://github.com/emberstack/kubernetes-reflector?tab=readme-ov-file#cert-manager-support
78
secretTemplate:
89
annotations:
910
reflector.v1.k8s.emberstack.com/reflection-allowed: "true"

charts/reflector/namespace.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# namespace with defined pod security standard
2+
# inspired from https://aro-labs.com/pod-security-standards/
3+
# official doc: https://kubernetes.io/docs/concepts/security/pod-security-standards/
4+
#
5+
# Warning: if pod / container does not meet enforced standards, it will not be deployed (silently)
6+
# execute `kubectl -n <namespace> events` to see errors (e.g.)
7+
# Error creating: pods "xyz" is forbidden: violates PodSecurity "baseline:latest": privileged
8+
# container "xyz" must not set securityContext.privileged to true
9+
#
10+
apiVersion: v1
11+
kind: Namespace
12+
metadata:
13+
name: reflector
14+
labels:
15+
pod-security.kubernetes.io/enforce: baseline
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
configuration:
2+
watcher:
3+
# https://github.com/emberstack/kubernetes-reflector/issues/560#issuecomment-3415122791
4+
timeout: 30 # seconds

0 commit comments

Comments
 (0)