forked from operator-framework/operator-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
09_operator.yaml
94 lines (94 loc) · 2.88 KB
/
09_operator.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: marketplace-operator
namespace: openshift-marketplace
annotations:
config.openshift.io/inject-proxy: "marketplace-operator"
spec:
replicas: 1
selector:
matchLabels:
name: marketplace-operator
template:
metadata:
labels:
name: marketplace-operator
spec:
serviceAccountName: marketplace-operator
nodeSelector:
node-role.kubernetes.io/master: ""
priorityClassName: "system-cluster-critical"
tolerations:
- key: "node-role.kubernetes.io/master"
operator: Exists
effect: "NoSchedule"
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 120
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 120
containers:
- name: marketplace-operator
image: quay.io/olmqe/marketplace-operator:cs
ports:
- containerPort: 60000
name: metrics
- containerPort: 8080
name: healthz
command:
- marketplace-operator
args:
- -registryServerImage=quay.io/openshift/origin-operator-registry
- -defaultsDir=/defaults
- -clusterOperatorName=marketplace
- -tls-cert
- /var/run/secrets/serving-cert/tls.crt
- -tls-key
- /var/run/secrets/serving-cert/tls.key
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthz
port: 8080
readinessProbe:
httpGet:
path: /healthz
port: 8080
resources:
requests:
cpu: 10m
memory: 50Mi
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "marketplace-operator"
- name: "RELEASE_VERSION"
# The string "0.0.1-snapshot" is substituted by the CVO with the version of the payload
value: "0.0.1-snapshot"
volumeMounts:
- name: marketplace-trusted-ca
mountPath: /etc/pki/ca-trust/extracted/pem/
- name: marketplace-operator-metrics
mountPath: /var/run/secrets/serving-cert
volumes:
- name: marketplace-trusted-ca
configMap:
optional: true
name: marketplace-trusted-ca
items:
- key: ca-bundle.crt
path: tls-ca-bundle.pem
- name: marketplace-operator-metrics
secret:
secretName: marketplace-operator-metrics