2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T
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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
23 replicas: {{ .Values.replicaCount }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
28 - command: ["sh", "-c", "chown -R 100:101 /data"]
29 image: {{ include "repositoryGenerator.image.busybox" . }}
30 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
31 name: {{ include "common.name" . }}-init
40 value: "{{ .Values.config.msbgateway }}.{{ include "common.namespace" . }}"
42 value: "{{ .Values.config.msbPort }}"
44 value: "aai.{{ include "common.namespace" . }}"
46 value: "{{ .Values.config.aai.aaiPort }}"
47 - name: AAI_SCHEMA_VERSION
48 value: "{{ .Values.config.aai.schemaVersion }}"
50 value: "{{ .Values.config.aai.username }}"
52 value: "{{ .Values.config.aai.password }}"
55 name: {{ include "common.name" . }}
57 - mountPath: "{{ .Values.log.path }}"
59 - mountPath: /opt/windriver/titanium_cloud/pub/config/log.yml
60 name: windriver-logconfig
62 - mountPath: /opt/artifacts/
64 resources: {{ include "common.resources" . | nindent 10 }}
65 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 ports: {{ include "common.containerPorts" . | nindent 10 }}
68 # disable liveness probe when breakpoints set in debugger
69 # so K8s doesn't restart unresponsive container
70 {{ if .Values.liveness.enabled }}
73 path: /api/multicloud-titaniumcloud/v1/swagger.json
74 port: {{ .Values.service.internalPort }}
76 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
77 periodSeconds: {{ .Values.liveness.periodSeconds }}
78 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
79 successThreshold: {{ .Values.liveness.successThreshold }}
80 failureThreshold: {{ .Values.liveness.failureThreshold }}
83 {{ include "common.log.sidecar" . | nindent 6 }}
84 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.memcached }}
85 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
87 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.artifactImage }}
88 name: framework-artifactbroker
89 command: ["/opt/app/distribution/bin/artifact-dist.sh"]
90 args: ["/opt/app/distribution/etc/mounted/config.json"]
95 - mountPath: /opt/app/distribution/etc/mounted/config.json
96 name: windriver-logconfig
100 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
102 - name: windriver-log
104 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix . )) | nindent 6 }}
105 - name: windriver-logconfig
107 name: {{ include "common.fullname" . }}-log-configmap
108 - name: artifact-data
109 {{- if .Values.persistence.enabled }}
110 persistentVolumeClaim:
111 claimName: {{ include "common.fullname" . }}
116 - name: "{{ include "common.namespace" . }}-docker-registry-key"
117 restartPolicy: Always