Adding extra line that src files are part of RIC platform project
[ric-plt/jaegeradapter.git] / chart / templates / deployment.yaml
1 #   Copyright (c) 2019 AT&T Intellectual Property.
2 #   Copyright (c) 2019 Nokia.
3 #
4 #   Licensed under the Apache License, Version 2.0 (the "License");
5 #   you may not use this file except in compliance with the License.
6 #   You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #   Unless required by applicable law or agreed to in writing, software
11 #   distributed under the License is distributed on an "AS IS" BASIS,
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #   See the License for the specific language governing permissions and
14 #   limitations under the License.
15
16 #
17 #   This source code is part of the near-RT RIC (RAN Intelligent Controller)
18 #   platform project (RICP).
19 #
20
21 apiVersion: apps/v1
22 kind: Deployment
23 metadata:
24   name: {{ include "jaeger-all-in-one.fullname" . }}
25   labels:
26 {{ include "jaeger-all-in-one.labels" . | indent 4 }}
27 spec:
28   replicas: {{ .Values.replicaCount }}
29   selector:
30     matchLabels:
31       app.kubernetes.io/name: {{ include "jaeger-all-in-one.name" . }}
32       app.kubernetes.io/instance: {{ .Release.Name }}
33   template:
34     metadata:
35       labels:
36         app.kubernetes.io/name: {{ include "jaeger-all-in-one.name" . }}
37         app.kubernetes.io/instance: {{ .Release.Name }}
38     spec:
39     {{- with .Values.imagePullSecrets }}
40       imagePullSecrets:
41         {{- toYaml . | nindent 8 }}
42     {{- end }}
43       containers:
44         - name: {{ .Chart.Name }}
45           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
46           imagePullPolicy: {{ .Values.image.pullPolicy }}
47           ports:
48             - containerPort: 5775
49               protocol: UDP
50             - containerPort: 6831
51               protocol: UDP
52             - containerPort: 6832
53               protocol: UDP
54             - containerPort: 16686
55               protocol: TCP
56             - containerPort: 9411
57               protocol: TCP
58           livenessProbe:
59             httpGet:
60               path: /
61               port: 16686
62           readinessProbe:
63             httpGet:
64               path: /
65               port: 16686
66               initialDelaySeconds: 5
67           resources:
68             {{- toYaml .Values.resources | nindent 12 }}
69       {{- with .Values.nodeSelector }}
70       nodeSelector:
71         {{- toYaml . | nindent 8 }}
72       {{- end }}
73     {{- with .Values.affinity }}
74       affinity:
75         {{- toYaml . | nindent 8 }}
76     {{- end }}
77     {{- with .Values.tolerations }}
78       tolerations:
79         {{- toYaml . | nindent 8 }}
80     {{- end }}