Skip to content

Commit

Permalink
✨ Able to run controller inside the container platform with write acc…
Browse files Browse the repository at this point in the history
…ess to root restrictions
  • Loading branch information
dmvolod committed Dec 11, 2024
1 parent 80af83d commit b99a675
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,28 @@ spec:
type: RuntimeDefault
containers:
- args:
- --leader-elect
- "--diagnostics-address=${CAAPH_DIAGNOSTICS_ADDRESS:=:8443}"
- "--insecure-diagnostics=${CAAPH_INSECURE_DIAGNOSTICS:=false}"
- "--sync-period=${CAAPH_SYNC_PERIOD:=10m}"
- "--v=2"
- --leader-elect
- "--diagnostics-address=${CAAPH_DIAGNOSTICS_ADDRESS:=:8443}"
- "--insecure-diagnostics=${CAAPH_INSECURE_DIAGNOSTICS:=false}"
- "--sync-period=${CAAPH_SYNC_PERIOD:=10m}"
- "--v=2"
env:
- name: XDG_DATA_HOME
value: /xdg/.data
- name: XDG_CONFIG_HOME
value: /xdg/.config
- name: XDG_STATE_HOME
value: /xdg/.state
- name: XDG_CACHE_HOME
value: /xdg/.cache
- name: XDG_CONFIG_DIRS
value: /xdg
image: controller:latest
imagePullPolicy: Always
name: manager
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
Expand All @@ -65,6 +77,12 @@ spec:
port: healthz
initialDelaySeconds: 10
periodSeconds: 10
volumeMounts:
- mountPath: /xdg
name: xdg
volumes:
- emptyDir: {}
name: xdg
# TODO(user): Configure the resources accordingly based on the project requirements.
# More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
# resources:
Expand Down

0 comments on commit b99a675

Please sign in to comment.