-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebhookserver.yaml
47 lines (45 loc) · 980 Bytes
/
webhookserver.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apiVersion: apps/v1
kind: Deployment
metadata:
name: nsvalidating
namespace: webhooks
labels:
team: namespace
webhook: test
spec:
replicas: 1
selector:
matchLabels:
team: namespace
webhook: test
template:
metadata:
labels:
webhook: test
spec:
containers:
- name: nsvalidating
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8443
protocol: TCP
volumeMounts:
- name: certs
mountPath: "/etc/certs"
readOnly: true
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: certs
secret:
secretName: tlssecret
---
apiVersion: v1
kind: Namespace
metadata:
name: webhooks
labels:
team: namespace
webhook: testing