forked from open-telemetry/opentelemetry-helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
94 lines (94 loc) · 3.57 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: opentelemetry-operator
control-plane: controller-manager
name: {{ template "opentelemetry-operator.name" . }}-controller-manager
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: opentelemetry-operator
control-plane: controller-manager
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
labels:
app.kubernetes.io/name: opentelemetry-operator
control-plane: controller-manager
spec:
hostNetwork: {{ .Values.hostNetwork }}
containers:
- args:
- --metrics-addr=127.0.0.1:{{ .Values.manager.ports.metricsPort }}
- --enable-leader-election
- --health-probe-addr=:{{ .Values.manager.ports.healthzPort }}
- --webhook-port={{ .Values.manager.ports.webhookPort }}
{{- if and .Values.manager.collectorImage.repository .Values.manager.collectorImage.tag }}
- --collector-image={{ .Values.manager.collectorImage.repository }}:{{ .Values.manager.collectorImage.tag }}
{{- end }}
command:
- /manager
{{- if .Values.manager.env }}
env:
{{- range $name, $value := .Values.manager.env }}
- name: {{ $name }}
value: {{ $value | quote -}}
{{- end }}
{{- end }}
image: "{{ .Values.manager.image.repository }}:{{ .Values.manager.image.tag }}"
name: manager
ports:
- containerPort: {{ .Values.manager.ports.webhookPort }}
name: webhook-server
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: {{ .Values.manager.ports.healthzPort }}
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: {{ .Values.manager.ports.healthzPort }}
initialDelaySeconds: 5
periodSeconds: 10
resources: {{ toYaml .Values.manager.resources | nindent 12 }}
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert
readOnly: true
- args:
- --secure-listen-address=0.0.0.0:{{ .Values.kubeRBACProxy.ports.proxyPort }}
- --upstream=http://127.0.0.1:{{ .Values.manager.ports.metricsPort }}/
- --logtostderr=true
- --v=0
image: "{{ .Values.kubeRBACProxy.image.repository }}:{{ .Values.kubeRBACProxy.image.tag }}"
name: kube-rbac-proxy
ports:
- containerPort: {{ .Values.kubeRBACProxy.ports.proxyPort }}
name: https
protocol: TCP
{{- with .Values.kubeRBACProxy.resources }}
resources: {{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.affinity }}
affinity: {{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations: {{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector: {{ toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ template "opentelemetry-operator.name" . }}-controller-manager
terminationGracePeriodSeconds: 10
volumes:
- name: cert
secret:
defaultMode: 420
secretName: {{ template "opentelemetry-operator.name" . }}-controller-manager-service-cert