Files
open-cluster-management/deploy/webhook/deployment.yaml
DangPeng Liu 883295b635 add conversion webhook to convert clusterset api (#272)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-10-11 04:02:29 +00:00

54 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: managedcluster-admission
labels:
app: managedcluster-admission
spec:
replicas: 1
selector:
matchLabels:
app: managedcluster-admission
template:
metadata:
labels:
app: managedcluster-admission
spec:
serviceAccountName: managedcluster-admission-sa
containers:
- name: managedcluster-admission
image: quay.io/open-cluster-management/registration:latest
imagePullPolicy: IfNotPresent
args:
- "/registration"
- "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=DefaultClusterSet=true,APIPriorityAndFairness=false"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
runAsNonRoot: true
- name: conversion-webhook
image: quay.io/open-cluster-management/registration:latest
args:
- /registration
- "webhook-server"
- "port=9443"
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9443
protocol: TCP
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: webhook-secret
readOnly: true
volumes:
- name: webhook-secret
secret:
secretName: registration-webhook-serving-cert