-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
deployment.yaml
43 lines (43 loc) · 1.28 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: prometheus-operator-admission-webhook
app.kubernetes.io/version: 0.57.0
name: prometheus-operator-admission-webhook
namespace: default
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: prometheus-operator-admission-webhook
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: prometheus-operator-admission-webhook
labels:
app.kubernetes.io/name: prometheus-operator-admission-webhook
app.kubernetes.io/version: 0.57.0
spec:
automountServiceAccountToken: false
containers:
- image: quay.io/prometheus-operator/admission-webhook:v0.57.0
name: prometheus-operator-admission-webhook
ports:
- containerPort: 8443
name: https
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 50m
memory: 50Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
terminationMessagePolicy: FallbackToLogsOnError
securityContext:
runAsNonRoot: true
runAsUser: 65534
serviceAccountName: prometheus-operator-admission-webhook