mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-12 04:08:25 +00:00
54 lines
1.5 KiB
YAML
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
|