Katri Turunen | 4b74f01 | 2019-08-15 10:49:36 +0300 | [diff] [blame] | 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 | apiVersion: apps/v1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 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 }} |
| 26 | spec: |
| 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 Turunen | 66b7813 | 2019-09-02 10:28:52 +0300 | [diff] [blame] | 49 | - secretRef: |
| 50 | name: vespa-secrets |
Katri Turunen | 412df96 | 2019-09-16 08:48:18 +0300 | [diff] [blame] | 51 | env: |
| 52 | - name: VESMGR_APPMGRDOMAIN |
| 53 | value: appmgr-service |
Katri Turunen | 151326a | 2019-09-17 10:45:37 +0300 | [diff] [blame^] | 54 | livenessProbe: |
| 55 | httpGet: |
| 56 | path: /supervision |
| 57 | port: 8080 |
| 58 | initialDelaySeconds: 30 |
| 59 | periodSeconds: 60 |
| 60 | timeoutSeconds: 20 |