blob: 13c6a7635ec3828d570a17516670c78172a0d7cb (
plain)
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
102
103
104
105
106
107
108
|
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: rook-ceph-operator
labels:
operator: rook
storage-backend: ceph
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
spec:
replicas: 1
selector:
matchLabels:
app: rook-ceph-operator
template:
metadata:
labels:
app: rook-ceph-operator
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- if .Values.annotations }}
annotations:
{{ toYaml .Values.annotations | indent 8 }}
{{- end }}
spec:
containers:
- name: rook-ceph-operator
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args: ["ceph", "operator"]
env:
{{- if not .Values.rbacEnable }}
- name: RBAC_ENABLED
value: "false"
{{- end }}
{{- if .Values.agent }}
{{- if .Values.agent.toleration }}
- name: AGENT_TOLERATION
value: {{ .Values.agent.toleration }}
{{- end }}
{{- if .Values.agent.tolerationKey }}
- name: AGENT_TOLERATION_KEY
value: {{ .Values.agent.tolerationKey }}
{{- end }}
{{- if .Values.agent.mountSecurityMode }}
- name: AGENT_MOUNT_SECURITY_MODE
value: {{ .Values.agent.mountSecurityMode }}
{{- end }}
{{- if .Values.agent.flexVolumeDirPath }}
- name: FLEXVOLUME_DIR_PATH
value: {{ .Values.agent.flexVolumeDirPath }}
{{- end }}
{{- if .Values.agent.libModulesDirPath }}
- name: LIB_MODULES_DIR_PATH
value: {{ .Values.agent.libModulesDirPath }}
{{- end }}
{{- if .Values.agent.mounts }}
- name: AGENT_MOUNTS
value: {{ .Values.agent.mounts }}
{{- end }}
{{- end }}
{{- if .Values.discover }}
{{- if .Values.discover.toleration }}
- name: DISCOVER_TOLERATION
value: {{ .Values.agent.toleration }}
{{- end }}
{{- if .Values.discover.tolerationKey }}
- name: DISCOVER_TOLERATION_KEY
value: {{ .Values.discover.tolerationKey }}
{{- end }}
{{- end }}
- name: ROOK_LOG_LEVEL
value: {{ .Values.logLevel }}
- name: ROOK_ENABLE_SELINUX_RELABELING
value: {{ .Values.enableSelinuxRelabeling | quote }}
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- if .Values.mon }}
{{- if .Values.mon.healthCheckInterval }}
- name: ROOK_MON_HEALTHCHECK_INTERVAL
value: {{ .Values.mon.healthCheckInterval }}
{{- end }}
{{- if .Values.mon.monOutTimeout }}
- name: ROOK_MON_OUT_TIMEOUT
value: {{ .Values.mon.monOutTimeout }}
{{- end }}
{{- end }}
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.rbacEnable }}
serviceAccountName: rook-ceph-system
{{- end }}
|