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. |
Roni Riska | 6ffba08 | 2019-11-27 10:59:54 +0200 | [diff] [blame] | 15 | # |
| 16 | # This source code is part of the near-RT RIC (RAN Intelligent Controller) |
| 17 | # platform project (RICP). |
| 18 | # |
Katri Turunen | 4b74f01 | 2019-08-15 10:49:36 +0300 | [diff] [blame] | 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 |
Katri Turunen | 66b7813 | 2019-09-02 10:28:52 +0300 | [diff] [blame] | 52 | - secretRef: |
| 53 | name: vespa-secrets |
Katri Turunen | 412df96 | 2019-09-16 08:48:18 +0300 | [diff] [blame] | 54 | env: |
| 55 | - name: VESMGR_APPMGRDOMAIN |
| 56 | value: appmgr-service |
Katri Turunen | 151326a | 2019-09-17 10:45:37 +0300 | [diff] [blame] | 57 | livenessProbe: |
| 58 | httpGet: |
| 59 | path: /supervision |
| 60 | port: 8080 |
| 61 | initialDelaySeconds: 30 |
| 62 | periodSeconds: 60 |
| 63 | timeoutSeconds: 20 |