blob: fcd54bb79e5761e8de08e168830f00e6ed84e466 [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.
15
16apiVersion: apps/v1
17kind: Deployment
18metadata:
19 name: {{ template "ves-agent-chart.fullname" . }}
20 #namespace: monitoring
21 labels:
22 app: {{ template "ves-agent-chart.name" . }}
23 chart: {{ template "ves-agent-chart.chart" . }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
26spec:
27 replicas: {{ .Values.replicaCount }}
28 selector:
29 matchLabels:
30 app: {{ template "ves-agent-chart.name" . }}
31 release: {{ .Release.Name }}
32 template:
33 metadata:
34 labels:
35 app: {{ template "ves-agent-chart.name" . }}
36 release: {{ .Release.Name }}
37 spec:
38 containers:
39 - name: {{ .Chart.Name }}
40 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
41 imagePullPolicy: {{ .Values.image.pullPolicy }}
42 ports:
43 - name: http
44 containerPort: 80
45 protocol: TCP
46 envFrom:
47 - configMapRef:
48 name: vespa-config
Katri Turunen66b78132019-09-02 10:28:52 +030049 - secretRef:
50 name: vespa-secrets
Katri Turunen412df962019-09-16 08:48:18 +030051 env:
52 - name: VESMGR_APPMGRDOMAIN
53 value: appmgr-service
Katri Turunen151326a2019-09-17 10:45:37 +030054 livenessProbe:
55 httpGet:
56 path: /supervision
57 port: 8080
58 initialDelaySeconds: 30
59 periodSeconds: 60
60 timeoutSeconds: 20