-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.yaml
80 lines (80 loc) · 3.52 KB
/
manifest.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
apiVersion: v1
kind: Service
metadata:
name: grumpy
namespace: default
labels:
name: grumpy
spec:
ports:
- name: webhook
port: 443
targetPort: 8080
selector:
name: grumpy
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: grumpy
namespace: default
labels:
name: grumpy
spec:
replicas: 1
template:
metadata:
name: grumpy
labels:
name: grumpy
spec:
containers:
- name: webhook
image: pipo02mix/grumpy:1.0.1
imagePullPolicy: Always
args:
- -alsologtostderr
- --log_dir=/
- -v=10
- 2>&1
resources:
limits:
memory: 50Mi
cpu: 300m
requests:
memory: 00Mi
cpu: 300m
volumeMounts:
- name: webhook-certs
mountPath: /etc/certs
readOnly: true
- name: logs
mountPath: /tmp
securityContext:
readOnlyRootFilesystem: true
volumes:
- name: webhook-certs
secret:
secretName: grumpy
- name: logs
emptyDir: {}
---
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: grumpy
webhooks:
- name: grumpy.pipo02mix.org
clientConfig:
service:
name: grumpy
namespace: default
path: "/validate"
caBundle: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVERENDQXZRQ0NRQ1BUWjFjQUZWYjdUQU5CZ2txaGtpRzl3MEJBUTBGQURDQnh6RUxNQWtHQTFVRUJoTUMKUkVVeEVEQU9CZ05WQkFnTUIwTnZiRzluYm1VeEVEQU9CZ05WQkFjTUIwTnZiRzluYm1VeER6QU5CZ05WQkJFTQpCalF5TkRJME1qRVVNQklHQTFVRUNRd0xTR0ZzYkc4Z0lERTJNakV4RXp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