William Kurkian | 382dc5c | 2018-09-11 15:59:06 -0400 | [diff] [blame] | 1 | # Copyright 2018- Cisco |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | apiVersion: apps/v1beta2 |
| 16 | kind: Deployment |
| 17 | metadata: |
| 18 | name: {{ template "ves-agent.name" . }} |
| 19 | labels: |
| 20 | app: {{ template "ves-agent.name" . }} |
| 21 | chart: {{ template "ves-agent.chart" . }} |
| 22 | release: {{ .Release.Name }} |
| 23 | heritage: {{ .Release.Service }} |
| 24 | spec: |
| 25 | replicas: {{ .Values.replicaCount }} |
| 26 | selector: |
| 27 | matchLabels: |
| 28 | app: {{ template "ves-agent.name" . }} |
| 29 | release: {{ .Release.Name }} |
| 30 | template: |
| 31 | metadata: |
| 32 | labels: |
| 33 | app: {{ template "ves-agent.name" . }} |
| 34 | release: {{ .Release.Name }} |
| 35 | spec: |
| 36 | containers: |
| 37 | - name: {{ .Chart.Name }} |
| 38 | image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
| 39 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 40 | ports: |
| 41 | - name: http |
| 42 | containerPort: 80 |
| 43 | protocol: TCP |
| 44 | volumeMounts: |
| 45 | - name: agent-config |
| 46 | mountPath: /opt/ves-agent/config.properties |
| 47 | subPath: config.properties |
| 48 | |
| 49 | volumes: |
| 50 | - name: agent-config |
| 51 | configMap: |
| 52 | name: ves-agent-config |