blob: 13a8cb406d03b7722208e76ef8d51cda26f19b52 [file] [log] [blame]
Katri Turunen4b74f012019-08-15 10:49:36 +03001# 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.
Roni Riska6ffba082019-11-27 10:59:54 +020015#
16# This source code is part of the near-RT RIC (RAN Intelligent Controller)
17# platform project (RICP).
18#
Katri Turunen4b74f012019-08-15 10:49:36 +030019apiVersion: apps/v1
20kind: Deployment
21metadata:
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 }}
29spec:
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
Katri Turunen66b78132019-09-02 10:28:52 +030052 - secretRef:
53 name: vespa-secrets
Katri Turunen412df962019-09-16 08:48:18 +030054 env:
55 - name: VESMGR_APPMGRDOMAIN
56 value: appmgr-service
Katri Turunen151326a2019-09-17 10:45:37 +030057 livenessProbe:
58 httpGet:
59 path: /supervision
60 port: 8080
61 initialDelaySeconds: 30
62 periodSeconds: 60
63 timeoutSeconds: 20