initial commit of emcoui web app
[multicloud/k8s.git] / src / tools / emcoui / helm / emcoui / templates / deployment.yaml
1 #=======================================================================
2 # Copyright (c) 2017-2020 Aarna Networks, Inc.
3 # All rights reserved.
4 # ======================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #           http://www.apache.org/licenses/LICENSE-2.0
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 # GUI Deployment
16 apiVersion: apps/v1
17 kind: Deployment
18 metadata:
19   name: {{ .Values.service.name }} 
20 spec:
21   replicas: 1
22   selector:
23     matchLabels:
24       app: {{ .Values.service.label }} 
25   template:
26     metadata:
27       labels:
28         app: {{ .Values.service.label }} 
29     spec:
30       containers:
31         - name: {{ .Values.service.name }} 
32           image: {{ .Values.image }} 
33           imagePullPolicy: Always
34           ports:
35           - containerPort: {{ .Values.service.internalPort }} 
36           volumeMounts:
37           - mountPath: /etc/nginx/conf.d 
38             readOnly: true
39             name: config 
40       volumes:
41       - name: config 
42         configMap:
43           name: emcoui-config