Files
open-cluster-management/deploy/webhook/deployment.yaml
Jian Qiu a042fb22cc Disable apf in webhook (#120)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-03-23 04:16:31 +01:00

36 lines
892 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"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
runAsNonRoot: true