forked from openshift/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
77 lines (77 loc) · 1.94 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
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: hive-controllers
namespace: hive
labels:
control-plane: controller-manager
controller-tools.k8s.io: "1.0"
spec:
selector:
matchLabels:
control-plane: controller-manager
controller-tools.k8s.io: "1.0"
replicas: 1
revisionHistoryLimit: 4
strategy:
type: Recreate
template:
metadata:
labels:
control-plane: controller-manager
controller-tools.k8s.io: "1.0"
spec:
serviceAccountName: hive-controllers
volumes:
- name: kubectl-cache
emptyDir: {}
- name: tmp
emptyDir: {}
containers:
# By default we will use the latest CI images published from hive master:
- image: registry.ci.openshift.org/openshift/hive-v4.0:hive
imagePullPolicy: Always
name: manager
resources:
requests:
cpu: 50m
memory: 512Mi
command:
- /opt/services/manager
envFrom:
- configMapRef:
name: hive-controllers-config
volumeMounts:
- name: kubectl-cache
mountPath: /var/cache/kubectl
- name: tmp
mountPath: /tmp
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CLI_CACHE_DIR
value: /var/cache/kubectl
- name: HIVE_NS
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: TMPDIR
value: /tmp
securityContext:
privileged: false
readOnlyRootFilesystem: true
readinessProbe:
httpGet:
path: /readyz
port: 8080
livenessProbe:
httpGet:
path: /healthz
port: 8080
terminationGracePeriodSeconds: 10