Skip to content

Commit 5000fa0

Browse files
authored
fix: resources/secContext configurable for rbac proxy sidecar (#51)
1 parent 4231f89 commit 5000fa0

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

chart/k8s-pause/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ keywords:
1414
name: k8s-pause
1515
sources:
1616
- https://github.com/DoodleScheduling/k8s-pause
17-
version: 0.2.5
17+
version: 0.2.6

chart/k8s-pause/templates/deployment.yaml

+5-6
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,9 @@ spec:
9999
name: https
100100
protocol: TCP
101101
resources:
102-
limits:
103-
cpu: 500m
104-
memory: 128Mi
105-
requests:
106-
cpu: 5m
107-
memory: 64Mi
102+
{{- toYaml .Values.kubeRBACProxy.resources | nindent 10 }}
103+
securityContext:
104+
{{- toYaml .Values.kubeRBACProxy.securityContext | nindent 10 }}
108105
terminationMessagePath: /dev/termination-log
109106
terminationMessagePolicy: File
110107
{{- end }}
@@ -121,6 +118,8 @@ spec:
121118
secret:
122119
secretName: {{ .secretName }}
123120
{{- end }}
121+
securityContext:
122+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
124123
affinity:
125124
{{- toYaml .Values.affinity | nindent 8 }}
126125
imagePullSecrets:

chart/k8s-pause/values.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ securityContext:
9696
capabilities:
9797
drop: ["all"]
9898
readOnlyRootFilesystem: true
99+
100+
podSecurityContext:
99101
runAsGroup: 10000
100102
runAsNonRoot: true
101103
runAsUser: 10000
@@ -139,4 +141,12 @@ prometheusRule:
139141
kubeRBACProxy:
140142
enabled: true
141143

144+
securityContext:
145+
allowPrivilegeEscalation: false
146+
capabilities:
147+
drop: ["all"]
148+
readOnlyRootFilesystem: true
149+
150+
resources: {}
151+
142152
tolerations: []

0 commit comments

Comments
 (0)