-
Notifications
You must be signed in to change notification settings - Fork 226
/
opensearch-operator-controller-manager-deployment.yaml
executable file
·94 lines (94 loc) · 3.34 KB
/
opensearch-operator-controller-manager-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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
control-plane: controller-manager
name: {{ include "opensearch-operator.fullname" . }}-controller-manager
spec:
replicas: 1
selector:
matchLabels:
control-plane: controller-manager
template:
metadata:
labels:
control-plane: controller-manager
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
containers:
{{- if or (.Values.kubeRbacProxy.enable) (eq (.Values.kubeRbacProxy.enable | toString) "<nil>") }}
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
- --proxy-endpoints-port=10443
- --logtostderr=true
- --v=10
image: "{{ .Values.kubeRbacProxy.image.repository }}:{{ .Values.kubeRbacProxy.image.tag}}"
name: kube-rbac-proxy
resources:
{{- toYaml .Values.kubeRbacProxy.resources | nindent 10 }}
readinessProbe:
{{- toYaml .Values.kubeRbacProxy.readinessProbe | nindent 10 }}
livenessProbe:
{{- toYaml .Values.kubeRbacProxy.livenessProbe | nindent 10 }}
securityContext:
{{- toYaml .Values.kubeRbacProxy.securityContext | nindent 10 }}
ports:
- containerPort: 8443
name: https
- containerPort: 10443
name: https-proxy
protocol: TCP
{{- end}}
- args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
- --leader-elect
{{- if .Values.manager.watchNamespace }}
- --watch-namespace={{ .Values.manager.watchNamespace }}
{{- end }}
- --loglevel={{ .Values.manager.loglevel }}
command:
- /manager
image: "{{ .Values.manager.image.repository }}:{{ .Values.manager.image.tag | default .Chart.AppVersion }}"
name: operator-controller-manager
imagePullPolicy: "{{ .Values.manager.image.pullPolicy }}"
resources:
{{- toYaml .Values.manager.resources | nindent 10 }}
readinessProbe:
{{- toYaml .Values.manager.readinessProbe | nindent 10 }}
livenessProbe:
{{- toYaml .Values.manager.livenessProbe | nindent 10 }}
env:
- name: DNS_BASE
value: {{ .Values.manager.dnsBase }}
- name: PARALLEL_RECOVERY_ENABLED
value: "{{ .Values.manager.parallelRecoveryEnabled }}"
- name: PPROF_ENDPOINTS_ENABLED
value: "{{ .Values.manager.pprofEndpointsEnabled }}"
{{- if .Values.manager.extraEnv }}
{{- toYaml .Values.manager.extraEnv | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.manager.securityContext | nindent 10 }}
nodeSelector:
{{- toYaml .Values.nodeSelector | nindent 8 }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
securityContext:
{{- toYaml .Values.securityContext | nindent 8}}
{{- if .Values.manager.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.manager.imagePullSecrets | nindent 6 }}
{{- end }}
serviceAccountName: {{ include "opensearch-operator.serviceAccountName" . }}
terminationGracePeriodSeconds: 10
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}