-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy path06-deployment.yaml
89 lines (89 loc) · 2.51 KB
/
06-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
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: insights-operator
namespace: openshift-insights
annotations:
config.openshift.io/inject-proxy: operator
exclude.release.openshift.io/internal-openshift-hosted: "true"
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: insights-operator
template:
metadata:
labels:
app: insights-operator
spec:
serviceAccountName: operator
priorityClassName: system-cluster-critical
nodeSelector:
beta.kubernetes.io/os: linux
node-role.kubernetes.io/master: ""
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 900
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 900
volumes:
- name: snapshots
emptyDir: {}
#sizeLimit: 1Gi # bug https://bugzilla.redhat.com/show_bug.cgi?id=1713207
- name: trusted-ca-bundle
configMap:
name: trusted-ca-bundle
optional: true
- name: service-ca-bundle
configMap:
name: service-ca-bundle
optional: true
- name: serving-cert
secret:
secretName: openshift-insights-serving-cert
optional: true
containers:
- name: operator
image: quay.io/openshift/origin-insights-operator:latest
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- name: snapshots
mountPath: /var/lib/insights-operator
- mountPath: /var/run/configmaps/trusted-ca-bundle
name: trusted-ca-bundle
readOnly: true
- mountPath: /var/run/configmaps/service-ca-bundle
name: service-ca-bundle
readOnly: true
- mountPath: /var/run/secrets/serving-cert
name: serving-cert
ports:
- containerPort: 8443
name: https
resources:
requests:
cpu: 10m
memory: 30Mi
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: RELEASE_VERSION
value: "0.0.1-snapshot"
args:
- start
- -v=4
- --config=/etc/insights-operator/server.yaml