Argocd-test/bases/parcoursmob/deployment.yaml

106 lines
3.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: test-parcoursmob
spec:
replicas: 3
template:
spec:
containers:
- name: parcoursmob
image: docker.io/coopgo-apps/parcoursmob-v2:local #docker.io/coopgo-apps/parcoursmob:local
env:
- name: IDENTIFICATION_OIDC_PROVIDER
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: identification_oidc_provider
- name: IDENTIFICATION_OIDC_CLIENT_ID
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: identification_oidc_client_id
- name: IDENTIFICATION_OIDC_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: identification_oidc_client_secret
- name: IDENTIFICATION_OIDC_REDIRECT_URL
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: identification_oidc_redirect_url
- name: SERVICES_NAVITIA_API_KEY
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: services_navitia_api_key
# - name: SERVICES_GRPC_MOBILITYACCOUNTS_DIAL
# valueFrom:
# secretKeyRef:
# name: parcoursmob-secret
# key: services_grpc_mobilityaccounts_dial
# - name: SERVICES_GRPC_FLEETS_DIAL
# valueFrom:
# secretKeyRef:
# name: parcoursmob-secret
# key: services_grpc_fleets_dial
# - name: SERVICES_GRPC_AGENDA_DIAL
# valueFrom:
# secretKeyRef:
# name: parcoursmob-secret
# key: services_grpc_agenda_dial
# - name: SERVICES_GRPC_GROUPSMANAGEMENT_DIAL
# valueFrom:
# secretKeyRef:
# name: parcoursmob-secret
# key: services_grpc_groupsmanagement_dial
- name: STORAGE_FILES_MINIO_ENDPOINT
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: storage_files_minio_endpoint
- name: STORAGE_FILES_MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: storage_files_minio_access_key
- name: STORAGE_FILES_MINIO_SECRET_KEY
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: storage_files_minio_secret_key
- name: STORAGE_FILES_MINIO_BUCKET_NAME
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: storage_files_minio_bucket_name
- name: EMAILING_SMTP_USERNAME
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: emailing_smtp_username
- name: EMAILING_SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: parcoursmob-secret
key: emailing_smtp_password
ports:
- name: http
containerPort: 8080
protocol: TCP
volumeMounts:
- name: parcoursmob-config-volume
mountPath: /config.yaml
subPath: config.yaml
imagePullSecrets:
- name: regcred
volumes:
- name: parcoursmob-config-volume
configMap:
name: test-parcoursmob-config
items:
- key: config.yaml
path: config.yaml