64 lines
2.2 KiB
YAML
64 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: test-coopgo-mobility-accounts
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: mobility-accounts
|
|
image: git.coopgo.io/coopgo-platform/mobility-accounts:dev
|
|
ports:
|
|
- name: grpc
|
|
containerPort: 8080
|
|
protocol: TCP
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
env:
|
|
- name: STORAGE_DB_MONGODB_URI
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: mobility-account-secret
|
|
key: storage_db_mongodb_uri
|
|
- name: STORAGE_DB_MONGODB_DB_NAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: mobility-account-secret
|
|
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: secret_mobility_accounts
|
|
volumes:
|
|
- name: mobility-accounts-config-volume
|
|
configMap:
|
|
name: test-mobility-accounts-config
|
|
items:
|
|
- key: config.yaml
|
|
path: config.yaml
|
|
|
|
|