This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
apiVersion: v1
kind: Service
metadata:
name: admission-webhook
labels:
kiamol: ch16
spec:
type: ClusterIP
ports:
- port: 443
targetPort: https
selector:
app: admission-webhook
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: admission-webhook
labels:
kiamol: ch16
spec:
selector:
matchLabels:
app: admission-webhook
template:
metadata:
labels:
app: admission-webhook
spec:
containers:
- name: admission-webhook
image: kiamol/ch16-admission-webhook
env:
- name: USE_HTTPS
value: "true"
- name: PORT
value: "8443"
ports:
- name: https
containerPort: 8443
volumeMounts:
- name: certs
mountPath: /run/secrets/tls
readOnly: true
volumes:
- name: certs
secret:
secretName: admission-webhook-secret