Files
open-cluster-management/deploy/webhook/deployment.yaml
Jian Zhu 60d622078b validate manifest work executor permission on hub cluster (#158)
* validate manifest work executor permission on hub cluster

Signed-off-by: zhujian <jiazhu@redhat.com>

* do not validate the executor when it is not changed

Signed-off-by: zhujian <jiazhu@redhat.com>

Signed-off-by: zhujian <jiazhu@redhat.com>
2022-09-28 05:43:05 +02:00

38 lines
998 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: work-webhook
labels:
app: work-webhook
spec:
replicas: 1
selector:
matchLabels:
app: work-webhook
template:
metadata:
labels:
app: work-webhook
spec:
serviceAccountName: work-webhook-sa
containers:
- name: work-webhook
image: quay.io/open-cluster-management/work:latest
imagePullPolicy: IfNotPresent
args:
- "/work"
- "webhook"
- "--cert-dir=/tmp"
- "--secure-port=6443"
# webhook is not hosting any k8s api resource, so it is not subjected to APF feature
- "--feature-gates=APIPriorityAndFairness=false"
# enable NilExecutorValidating for e2e
- "--feature-gates=NilExecutorValidating=true"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
runAsNonRoot: true