forked from openshift/machine-api-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
0000_30_machine-api-operator_11_deployment.yaml
101 lines (101 loc) · 2.99 KB
/
0000_30_machine-api-operator_11_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
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: apps/v1
kind: Deployment
metadata:
name: machine-api-operator
namespace: openshift-machine-api
labels:
k8s-app: machine-api-operator
annotations:
exclude.release.openshift.io/internal-openshift-hosted: "true"
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
spec:
replicas: 1
selector:
matchLabels:
k8s-app: machine-api-operator
template:
metadata:
labels:
k8s-app: machine-api-operator
spec:
priorityClassName: system-node-critical
serviceAccountName: machine-api-operator
containers:
- name: kube-rbac-proxy
image: registry.svc.ci.openshift.org/openshift:kube-rbac-proxy
args:
- "--secure-listen-address=0.0.0.0:8443"
- "--upstream=http://localhost:8080/"
- "--tls-cert-file=/etc/tls/private/tls.crt"
- "--tls-private-key-file=/etc/tls/private/tls.key"
- "--config-file=/etc/kube-rbac-proxy/config-file.yaml"
- "--logtostderr=true"
- "--v=3"
ports:
- containerPort: 8443
name: https
protocol: TCP
resources:
requests:
memory: 20Mi
cpu: 10m
volumeMounts:
- name: config
mountPath: /etc/kube-rbac-proxy
- mountPath: /etc/tls/private
name: machine-api-operator-tls
- name: machine-api-operator
image: registry.svc.ci.openshift.org/openshift:machine-api-operator
command:
- "/machine-api-operator"
args:
- "start"
- "--images-json=/etc/machine-api-operator-config/images/images.json"
- "--alsologtostderr"
- "--v=3"
env:
- name: RELEASE_VERSION
value: "0.0.1-snapshot"
- name: COMPONENT_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: METRICS_PORT
value: "8080"
resources:
requests:
cpu: 10m
memory: 50Mi
volumeMounts:
- name: images
mountPath: /etc/machine-api-operator-config/images
nodeSelector:
node-role.kubernetes.io/master: ""
restartPolicy: Always
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
volumes:
- name: config
configMap:
name: kube-rbac-proxy
defaultMode: 420
- name: images
configMap:
defaultMode: 420
name: machine-api-operator-images
- name: machine-api-operator-tls
secret:
defaultMode: 420
secretName: machine-api-operator-tls