-
Notifications
You must be signed in to change notification settings - Fork 5
/
manifest.yaml
148 lines (148 loc) · 3.01 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
---
apiVersion: v1
kind: Service
metadata:
name: sentry
namespace: sentry
labels:
name: sentry
spec:
ports:
- name: webhook
port: 443
targetPort: 8080
selector:
name: sentry
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sentry
namespace: sentry
labels:
name: sentry
spec:
replicas: 1
template:
metadata:
name: sentry
labels:
name: sentry
spec:
containers:
- name: webhook
image: jasonrichardsmith/sentry:${TAG}
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 500Mi
cpu: 300m
requests:
memory: 500Mi
cpu: 300m
volumeMounts:
- name: webhook-certs
mountPath: /etc/webhook/certs
readOnly: true
- name: config
mountPath: /config.yaml
subPath: config.yaml
readOnly: true
readinessProbe:
httpGet:
path: /healthz
port: 8080
scheme: HTTPS
initialDelaySeconds: 1
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: 8080
scheme: HTTPS
initialDelaySeconds: 5
periodSeconds: 10
securityContext:
readOnlyRootFilesystem: true
volumes:
- name: webhook-certs
secret:
secretName: sentry
- name: config
configMap:
name: sentry-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: sentry-config
labels:
name: sentry-config
namespace: sentry
data:
config.yaml: |
---
limits:
enabled: true
ignoredNamespaces:
- "kube-system"
- "test2"
- "test3"
- "test4"
cpu:
min: "0"
max: "2"
memory:
min: "0"
max: 2G
healthz:
enabled: true
ignoredNamespaces:
- "kube-system"
- "test1"
- "test3"
- "test4"
tags:
enabled: true
ignoredNamespaces:
- "kube-system"
- "test1"
- "test2"
- "test4"
source:
enabled: true
ignoredNamespaces:
- "kube-system"
- "test1"
- "test2"
- "test3"
allowed:
- "gcr.io"
example:
enabled: true
ignoredNamespaces:
- "kube-system"
nslabels:
enabled: true
ignoredNamespaces:
- "kube-system"
- "test5"
---
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: sentry
webhooks:
- name: sentry.jasonrichardsmith.org
clientConfig:
service:
name: sentry
namespace: sentry
path: "/"
caBundle: "${CA_BUNDLE}"
rules:
- operations: ["CREATE","UPDATE"]
apiGroups: [""]
apiVersions: ["v1"]
resources: ["pods", "namespaces"]
failurePolicy: Ignore