blob: ff9d4a9d33b4b03d94b0aee89b04dbfcb436849f [file] [log] [blame]
William Kurkian382dc5c2018-09-11 15:59:06 -04001# 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
15apiVersion: apps/v1beta2
16kind: Deployment
17metadata:
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 }}
24spec:
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 }}
Zack Williams2749ae52018-09-28 09:43:43 -070038 image: "{{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}"
William Kurkian382dc5c2018-09-11 15:59:06 -040039 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