MOB-76 added smardigo-sepaexporter app
parent
5dbac2c94d
commit
d5e649e909
@ -0,0 +1,52 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-smardigo-sepa-exporter"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: "{{ .Release.Name }}-smardigo-sepa-exporter"
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: "{{ .Release.Name }}-smardigo-sepa-exporter"
|
||||
spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: "{{ .Release.Name }}-smardigo-sepa-exporter"
|
||||
image: "{{ .Values.smardigo.sepa_exporter.image }}:{{ .Values.smardigo.sepa_exporter.version }}"
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: SPRING_PROFILES_INCLUDE
|
||||
value: "prod,swagger"
|
||||
- name: EXTERNAL_TASK_SEPA_EXPORT_MAX_RETRIES
|
||||
value: "5"
|
||||
- name: SMA_EXTERNAL_TASK_SCHEDULE_INTERVAL
|
||||
value: "30000"
|
||||
- name: SMA_WORKFLOW_REST_BASE_PATH
|
||||
value: "{{ .Values.smardigo.workflow.host }}"
|
||||
- name: SMA_WORKFLOW_REST_CONNECT_TIMEOUT
|
||||
value: "3000"
|
||||
- name: SMA_WORKFLOW_REST_READ_TIMEOUT
|
||||
value: "10000"
|
||||
- name: SMA_WORKFLOW_REST_AUTH_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: "{{ .Release.Name }}-smardigo-sepa-exporter-secrets"
|
||||
key: SMA_WORKFLOW_AUTH_TOKEN
|
||||
- name: SMA_DOCUMENT_REST_BASE_PATH
|
||||
value: "{{ .Values.smardigo.document.host }}"
|
||||
- name: SMA_DOCUMENT_REST_CONNECT_TIMEOUT
|
||||
value: "3000"
|
||||
- name: SMA_DOCUMENT_REST_READ_TIMEOUT
|
||||
value: "10000"
|
||||
- name: SMA_DOCUMENT_REST_AUTH_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: "{{ .Release.Name }}-smardigo-sepa-exporter-secrets"
|
||||
key: SMA_DOCUMENT_AUTH_TOKEN
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
imagePullSecrets:
|
||||
- name: "{{ .Values.mobene.pull_secret }}"
|
||||
@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-smardigo-sepa-exporter-secrets"
|
||||
data:
|
||||
SMA_WORKFLOW_AUTH_TOKEN: "{{ .Values.smardigo.workflow.api_token }}"
|
||||
SMA_DOCUMENT_AUTH_TOKEN: "{{ .Values.smardigo.document.api_token }}"
|
||||
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-backend"
|
||||
spec:
|
||||
selector:
|
||||
app: "{{ .Release.Name }}-backend"
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
name: http
|
||||
- port: 8081
|
||||
targetPort: 8081
|
||||
protocol: TCP
|
||||
name: metrics
|
||||
Loading…
Reference in New Issue