2023-07-10 07:03:34 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: test-coopgo-mobility-accounts
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: mobility-accounts
|
|
|
|
image: docker.io/library/mobility-accounts-v3:local
|
|
|
|
ports:
|
|
|
|
- name: grpc
|
|
|
|
containerPort: 8080
|
|
|
|
protocol: TCP
|
|
|
|
- name: http
|
|
|
|
containerPort: 80
|
|
|
|
protocol: TCP
|
|
|
|
env:
|
|
|
|
- name: STORAGE_DB_MONGODB_URI
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2024-03-21 14:06:06 +00:00
|
|
|
name: mobility-account-secret
|
2023-07-10 07:03:34 +00:00
|
|
|
key: storage_db_mongodb_uri
|
|
|
|
- name: STORAGE_DB_MONGODB_DB_NAME
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2024-03-21 14:06:06 +00:00
|
|
|
name: mobility-account-secret
|
2023-07-10 07:03:34 +00:00
|
|
|
key: storage_db_mongodb_db_name
|
|
|
|
- name: SERVICES_OIDC_PROVIDER_CSRF_KEY
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: mobility-account-secret
|
|
|
|
key: services_oidc_provider_csrf_key
|
|
|
|
- name: SERVICES_OIDC_PROVIDER_NAMESPACES_PARCOURSMOB_SECRET_KEY
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: mobility-account-secret
|
|
|
|
key: services_oidc_provider_namespaces_parcoursmob_secret_key
|
|
|
|
- name: SERVICES_OIDC_PROVIDER_NAMESPACES_PARCOURSMOB_CLIENTS_ID
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: mobility-account-secret
|
|
|
|
key: services_oidc_provider_namespaces_parcoursmob_clients_id
|
|
|
|
- name: SERVICES_OIDC_PROVIDER_NAMESPACES_PARCOURSMOB_CLIENTS_SECRET
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: mobility-account-secret
|
|
|
|
key: services_oidc_provider_namespaces_parcoursmob_clients_secret
|
|
|
|
volumeMounts:
|
|
|
|
- name: mobility-accounts-config-volume
|
|
|
|
mountPath: /config.yaml
|
|
|
|
subPath: config.yaml
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: regcred
|
|
|
|
volumes:
|
|
|
|
- name: mobility-accounts-config-volume
|
|
|
|
configMap:
|
|
|
|
name: test-mobility-accounts-config
|
|
|
|
items:
|
|
|
|
- key: config.yaml
|
|
|
|
path: config.yaml
|
|
|
|
|
|
|
|
|