Argocd-test/bases/parcoursmob/deployment.yaml

106 lines
3.7 KiB
YAML
Raw Normal View History

2023-07-10 07:03:34 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-parcoursmob
spec:
replicas: 1
template:
spec:
containers:
- name: parcoursmob
image: 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
2023-07-10 09:20:29 +00:00
- name: STORAGE_FILES_MINIO_ENDPOINT
2023-07-10 07:03:34 +00:00
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