|
|
|
@ -1,16 +1,16 @@
|
|
|
|
apiVersion: apps/v1
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: "{{ .Release.Name }}-connect"
|
|
|
|
name: "connect"
|
|
|
|
spec:
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
matchLabels:
|
|
|
|
app: "{{ .Release.Name }}-connect"
|
|
|
|
app: "connect"
|
|
|
|
template:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
labels:
|
|
|
|
app: "{{ .Release.Name }}-connect"
|
|
|
|
app: "connect"
|
|
|
|
spec:
|
|
|
|
spec:
|
|
|
|
hostAliases:
|
|
|
|
hostAliases:
|
|
|
|
- ip: "{{ .Values.sharedService.keycloak.host.ip }}"
|
|
|
|
- ip: "{{ .Values.sharedService.keycloak.host.ip }}"
|
|
|
|
@ -21,7 +21,7 @@ spec:
|
|
|
|
secret:
|
|
|
|
secret:
|
|
|
|
secretName: elastic-client-cert
|
|
|
|
secretName: elastic-client-cert
|
|
|
|
containers:
|
|
|
|
containers:
|
|
|
|
- name: "{{ .Release.Name }}-connect"
|
|
|
|
- name: "connect"
|
|
|
|
image: "{{ .Values.harbor.host.name }}/{{ .Values.connect.image.name }}:{{ .Values.connect.image.version }}"
|
|
|
|
image: "{{ .Values.harbor.host.name }}/{{ .Values.connect.image.name }}:{{ .Values.connect.image.version }}"
|
|
|
|
imagePullPolicy: Always
|
|
|
|
imagePullPolicy: Always
|
|
|
|
volumeMounts:
|
|
|
|
volumeMounts:
|
|
|
|
@ -40,7 +40,7 @@ spec:
|
|
|
|
- name: SMA_JWT_SECRET
|
|
|
|
- name: SMA_JWT_SECRET
|
|
|
|
valueFrom:
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
secretKeyRef:
|
|
|
|
name: "{{ .Release.Name }}-connect-secrets"
|
|
|
|
name: "connect-secrets"
|
|
|
|
key: JWT_SECRET
|
|
|
|
key: JWT_SECRET
|
|
|
|
|
|
|
|
|
|
|
|
- name: SPRING_PROFILES_INCLUDE
|
|
|
|
- name: SPRING_PROFILES_INCLUDE
|
|
|
|
@ -80,7 +80,7 @@ spec:
|
|
|
|
- name: IAM_CLIENT_ENABLED
|
|
|
|
- name: IAM_CLIENT_ENABLED
|
|
|
|
value: "true"
|
|
|
|
value: "true"
|
|
|
|
- name: EXTERNAL_IAM_SERVER_URL
|
|
|
|
- name: EXTERNAL_IAM_SERVER_URL
|
|
|
|
value: "http://{{ .Release.Name }}-iam:8080"
|
|
|
|
value: "http://iam:8080"
|
|
|
|
|
|
|
|
|
|
|
|
- name: MAIL_PROTOCOL
|
|
|
|
- name: MAIL_PROTOCOL
|
|
|
|
value: "smtp"
|
|
|
|
value: "smtp"
|
|
|
|
@ -123,7 +123,7 @@ spec:
|
|
|
|
initContainers:
|
|
|
|
initContainers:
|
|
|
|
- name: init-iam
|
|
|
|
- name: init-iam
|
|
|
|
image: busybox:1.28
|
|
|
|
image: busybox:1.28
|
|
|
|
command: ['sh', '-c', "until nslookup {{ .Release.Name }}-iam; do echo waiting for iam; sleep 2; done"]
|
|
|
|
command: ['sh', '-c', "until nslookup iam; do echo waiting for iam; sleep 2; done"]
|
|
|
|
- name: init-postgres
|
|
|
|
- name: init-postgres
|
|
|
|
image: busybox:1.28
|
|
|
|
image: busybox:1.28
|
|
|
|
command: ['sh', '-c', "until nslookup {{ .Values.connect.datasource.host }}; do echo waiting for postgres; sleep 2; done"]
|
|
|
|
command: ['sh', '-c', "until nslookup {{ .Values.connect.datasource.host }}; do echo waiting for postgres; sleep 2; done"]
|
|
|
|
|