Extend K8S and RIC installation instructions
[it/dep.git] / ric-infra / 15-Chartmuseum / helm / chartmuseum / templates / deployment.yaml
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
3 #   Copyright (c) 2019 Nokia.                                                  #
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 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17
18 apiVersion: apps/v1
19 kind: Deployment
20 metadata:
21   name: {{ include "common.deploymentname.chartmuseum" .}}
22   labels:
23     app: {{ include "common.namespace.infra" . }}-{{ include "common.name.chartmuseum" . }}
24     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25     release: {{ .Release.Name }}
26     heritage: {{ .Release.Service }}
27 spec:
28   replicas: {{ .Values.chartmuseum.replicaCount }}
29   selector:
30     matchLabels:
31       app: {{ include "common.namespace.infra" . }}-{{ include "common.name.chartmuseum" . }}
32       release: {{ .Release.Name }}
33   template:
34     metadata:
35       labels:
36         app: {{ include "common.namespace.infra" . }}-{{ include "common.name.chartmuseum" . }}
37         release: {{ .Release.Name }}
38     spec:
39       securityContext:
40         fsGroup: 0
41         runAsUser: 0
42       hostname: {{ .Chart.Name }}
43       imagePullSecrets:
44         - name: {{ include "common.repositoryCred" . }}
45       containers:
46         - name: {{ include "common.containername.chartmuseum" . }} 
47           image: {{ include "common.repository" . }}/{{ .Values.chartmuseum.image.name }}:{{ .Values.chartmuseum.image.tag }}
48           imagePullPolicy: {{ include "common.pullPolicy" . }}
49           envFrom:
50             - configMapRef:
51                 name: {{ include "common.configmapname.chartmuseum" . }}-env
52           #          volumeMounts:
53           #- name: certs
54           #  mountPath: /var/run/certs
55           #  readOnly: true
56           ports:
57             - name: http
58               containerPort: {{ include "common.serviceport.chartmuseum.http" . }}
59               protocol: TCP
60           volumeMounts:
61             - name: chart-data
62               mountPath: /charts
63       volumes:
64         - name: chart-data
65           persistentVolumeClaim:
66             claimName: pvc-{{ include "common.name.chartmuseum" . }}