vvp -- VNF Validation Platform
[oom.git] / kubernetes / vvp / charts / vvp-gitlab / templates / deployment.yaml
1 # Copyright © 2018 Amdocs, AT&T, Bell Canada
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: extensions/v1beta1
16 kind: Deployment
17 metadata:
18   name: {{ include "common.fullname" . }}
19   namespace: {{ include "common.namespace" . }}
20   labels:
21     app: {{ include "common.name" . }}
22 spec:
23   replicas: {{ .Values.replicaCount }}
24   template:
25     metadata:
26       labels:
27         app: {{ include "common.name" . }}
28       name: {{ .Release.Name }}
29     spec:
30       containers:
31       - name: {{ include "common.name" . }}
32         image: {{ include "common.repository" . }}/{{ .Values.image }}
33         imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
34         ports:
35         - containerPort: {{ .Values.service.internalPort1 }}
36         - containerPort: {{ .Values.service.internalPort2 }}
37         securityContext:
38           privileged: true
39         volumeMounts:
40         - mountPath: /var/opt/gitlab
41           name: gitlab
42           subPath: var/opt/gitlab
43         - mountPath: /etc/gitlab
44           name: gitlab
45           subPath: etc/gitlab
46         - mountPath: /var/log/gitlab
47           name: gitlab
48           subPath: var/log/gitlab
49         - mountPath: /tmp/deploykey
50           name: jenkins-deploykey
51         env:
52         - name: ADMIN_PASSWORD
53           valueFrom:
54             secretKeyRef:
55               name: gitlab-password
56               key: password
57         - name: AUTHENTICATION_TOKEN
58           valueFrom:
59             secretKeyRef:
60               name: gitlab-password
61               key: auth-token
62         - name: EXTERNAL_URL
63           value: "http://vvp-gitlab"
64       volumes:
65       - name: gitlab
66         emptyDir: {}
67       - name: jenkins-deploykey
68         secret:
69           secretName: jenkins-deploykey
70     imagePullSecrets:
71       - name: onapkey