Skip to content

Commit

Permalink
disable istio injection for the webhook and set runasnonroot on the w…
Browse files Browse the repository at this point in the history
…ebhook

Signed-off-by: juliusvonkohout <[email protected]>
  • Loading branch information
juliusvonkohout committed Oct 15, 2024
1 parent ac88dc1 commit bf622f9
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions contrib/spark/spark-operator/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,30 @@ resources:
- resources.yaml
- aggregated-roles.yaml
namespace: kubeflow
# patches:
# # Add securityContext to Spark Operator Pod.
# - target:
# kind: Deployment
# labelSelector: "app.kubernetes.io/name=spark-operator"
# patch: |-
# - op: add
# path: /spec/template/spec/containers/0/securityContext
# value:
# runAsUser: 185
# allowPrivilegeEscalation: false
# capabilities:
# drop: ["ALL"]
# runAsNonRoot: true
# seccompProfile:
# type: RuntimeDefault
patches:
- target:
kind: Deployment
labelSelector: "app.kubernetes.io/name=spark-operator"
patch: |-
- op: add
path: /spec/template/spec/containers/0/securityContext
value:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
- target:
kind: Deployment
name: spark-operator-webhook
patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: spark-operator-webhook
spec:
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"

0 comments on commit bf622f9

Please sign in to comment.