1 # Copyright © 2018 Amdocs, AT&T, Bell Canada
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
7 # 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.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
23 replicas: {{ .Values.replicaCount }}
27 app: {{ include "common.name" . }}
28 name: {{ .Release.Name }}
33 - name: imagescanner-worker
34 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
37 - "/opt/site-certificate/wrapper.sh"
38 - "/usr/local/bin/imagescanner-worker"
42 - name: imagescanner-ssh
47 mountPath: /var/log/imagescanner
48 - name: imagescanner-settings
49 mountPath: /opt/imagescanner-settings
50 - name: site-certificate
51 mountPath: /opt/site-certificate
54 value: /opt/imagescanner-settings
56 value: "dev-s3.vvp.example.com"
59 - name: AWS_ACCESS_KEY_ID
61 secretKeyRef: {name: em-secret, key: aws_access_key_id}
62 - name: AWS_SECRET_ACCESS_KEY
64 secretKeyRef: {name: em-secret, key: aws_secret_access_key}
65 - name: SECRET_JENKINS_PASSWORD
67 - name: REQUESTS_CA_BUNDLE
68 value: /etc/ssl/certs/ca-certificates.crt
70 - name: notifications-worker
71 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
72 command: ["/usr/local/bin/notifications-worker"]
78 secretKeyRef: {name: slack-tokens, key: notifications}
80 value: "dev-em.vvp.example.com"
82 value: /opt/imagescanner-settings
83 - name: SECRET_JENKINS_PASSWORD
85 secretKeyRef: {name: em-secret, key: jenkins_admin_password}
87 - name: imagescanner-settings
88 mountPath: /opt/imagescanner-settings
90 - name: imagescanner-frontend
91 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
92 command: ["/usr/local/bin/imagescanner-frontend"]
99 mountPath: /var/log/imagescanner
100 - name: imagescanner-settings
101 mountPath: /opt/imagescanner-settings
103 - name: DEFAULT_SLACK_CHANNEL
104 value: "#notifications"
105 - name: SECRET_JENKINS_PASSWORD
109 - name: imagescanner-ssh
111 secretName: imagescanner-ssh
118 - name: imagescanner-settings
120 name: imagescanner-settings
121 - name: site-certificate
123 name: site-certificate