forked from openshift/machine-api-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
0000_30_machine-api-operator_09_deployment.yaml
54 lines (54 loc) · 1.41 KB
/
0000_30_machine-api-operator_09_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
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: machine-api-operator
namespace: openshift-machine-api
labels:
k8s-app: machine-api-operator
spec:
replicas: 1
selector:
matchLabels:
k8s-app: machine-api-operator
template:
metadata:
labels:
k8s-app: machine-api-operator
spec:
priorityClassName: system-node-critical
containers:
- name: machine-api-operator
image: docker.io/openshift/origin-machine-api-operator:v4.0.0
command:
- "/machine-api-operator"
args:
- "start"
- "--images-json=/etc/machine-api-operator-config/images/images.json"
env:
- name: RELEASE_VERSION
value: "0.0.1-snapshot"
- name: COMPONENT_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
requests:
cpu: 10m
memory: 50Mi
volumeMounts:
- name: images
mountPath: /etc/machine-api-operator-config/images
nodeSelector:
node-role.kubernetes.io/master: ""
restartPolicy: Always
securityContext:
runAsNonRoot: true
runAsUser: 65534
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
volumes:
- name: images
configMap:
name: machine-api-operator-images