blob: 01c9a5b254f0271dfc738493910056c1f1d1552a [file] [log] [blame]
Joey Armstrong8cd89ae2024-02-10 16:58:02 -05001# Copyright 2020-2024 Open Networking Foundation (ONF) and the ONF Contributors
Girish Kumar30d0bb52020-06-09 16:36:50 +00002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14---
15apiVersion: apps/v1
16kind: Deployment
17metadata:
18 name: "{{ template "fullname" . }}-jaeger"
19 namespace: "{{ .Release.Namespace }}"
20 labels:
21 app: jaeger
22 release: "{{ .Release.Name }}"
23 app.kubernetes.io/name: jaeger
24 app.kubernetes.io/component: all-in-one
25spec:
26 replicas: 1
27 strategy:
28 type: Recreate
29 selector:
30 matchLabels:
31 app: jaeger
32 release: "{{ .Release.Name }}"
33 template:
34 metadata:
35 namespace: "{{ .Release.Namespace }}"
36 labels:
37 app: jaeger
38 release: "{{ .Release.Name }}"
39 app.kubernetes.io/name: jaeger
40 app.kubernetes.io/version: {{ quote .Chart.Version }}
41 app.kubernetes.io/component: all-in-one
42 annotations:
43 prometheus.io/scrape: "false"
44 spec:
45 {{- if .Values.securityContext.enabled }}
46 securityContext:
47 runAsUser: {{ .Values.securityContext.runAsUser }}
48 runAsGroup: {{ .Values.securityContext.runAsGroup }}
49 fsGroup: {{ .Values.securityContext.fsGroup }}
50 {{- end }}
51 containers:
52 - name: jaeger
53 image: '{{ .Values.tracing.image.repository }}:{{ .Values.tracing.image.tag }}'
54 imagePullPolicy: '{{ .Values.tracing.image.pullPolicy }}'
55 args: ["--memory.max-traces", '{{ .Values.tracing.maxTraces }}']
56 ports:
57 - containerPort: 6831
58 protocol: UDP
59 - containerPort: 5778
60 protocol: TCP
61 - containerPort: 16686
62 protocol: TCP
63 {{- if .Values.securityContext.enabled }}
64 securityContext:
65 allowPrivilegeEscalation: false
66 {{- end }}
67 readinessProbe:
68 httpGet:
69 path: "/"
70 port: 14269
71 initialDelaySeconds: 5