Skip to content

Commit

Permalink
[DEVHAS-453] Fix Kube-Linter errors (#381)
Browse files Browse the repository at this point in the history
Signed-off-by: John Collier <[email protected]>
  • Loading branch information
johnmcollier authored Aug 22, 2023
1 parent 024e46c commit 8abc319
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/default/manager_auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ spec:
- containerPort: 8443
protocol: TCP
name: https
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
resources:
limits:
cpu: 500m
memory: 400Mi
requests:
cpu: 100m
memory: 20Mi
- name: manager
args:
- "--health-probe-bind-address=:8081"
Expand Down
8 changes: 8 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
labels:
control-plane: controller-manager
spec:
volumes:
- name: tmp-storage
emptyDir: {}
securityContext:
runAsNonRoot: true
containers:
Expand All @@ -34,6 +37,7 @@ spec:
name: manager
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -90,5 +94,9 @@ spec:
name: feature-flag-config
key: ENVIRONMENT
optional: true
volumeMounts:
- name: tmp-storage
mountPath: /tmp
readOnly: false
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10

0 comments on commit 8abc319

Please sign in to comment.