Add new license claim
[ric-plt/vespamgr.git] / ves-agent-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 #   This source code is part of the near-RT RIC (RAN Intelligent Controller)
17 #   platform project (RICP).
18 #
19 apiVersion: apps/v1
20 kind: Deployment
21 metadata:
22   name: {{ template "ves-agent-chart.fullname" . }}
23   #namespace: monitoring
24   labels:
25     app: {{ template "ves-agent-chart.name" . }}
26     chart: {{ template "ves-agent-chart.chart" . }}
27     release: {{ .Release.Name }}
28     heritage: {{ .Release.Service }}
29 spec:
30   replicas: {{ .Values.replicaCount }}
31   selector:
32     matchLabels:
33       app: {{ template "ves-agent-chart.name" . }}
34       release: {{ .Release.Name }}
35   template:
36     metadata:
37       labels:
38         app: {{ template "ves-agent-chart.name" . }}
39         release: {{ .Release.Name }}
40     spec:
41       containers:
42         - name: {{ .Chart.Name }}
43           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
44           imagePullPolicy: {{ .Values.image.pullPolicy }}
45           ports:
46             - name: http
47               containerPort: 80
48               protocol: TCP
49           envFrom:
50             - configMapRef:
51                 name: vespa-config
52             - secretRef:
53                 name: vespa-secrets
54           env:
55             - name: VESMGR_APPMGRDOMAIN
56               value: appmgr-service
57           livenessProbe:
58             httpGet:
59               path: /supervision
60               port: 8080
61             initialDelaySeconds: 30
62             periodSeconds: 60
63             timeoutSeconds: 20