-
Notifications
You must be signed in to change notification settings - Fork 33
/
_manifest_.yaml
80 lines (80 loc) · 1.63 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: quay.io/giantswarm/grumpy:1.0.0
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.giantswarm.io
clientConfig:
service:
name: grumpy
namespace: default
path: "/validate"
caBundle: "${CA_BUNDLE}"
rules:
- operations: ["CREATE","UPDATE"]
apiGroups: [""]
apiVersions: ["v1"]
resources: ["pods"]
failurePolicy: Ignore