41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: test-coopgo-fleets
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: fleets
|
|
image: docker.io/library/fleets-v3:local
|
|
env:
|
|
- name: STORAGE_DB_MONGODB_URI
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: db-secret
|
|
key: storage_db_mongodb_uri
|
|
- name: STORAGE_DB_MONGODB_DB_NAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: db-secret
|
|
key: storage_db_mongodb_db_name
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- name: fleets-config-volume
|
|
mountPath: /config.yaml
|
|
subPath: config.yaml
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
volumes:
|
|
- name: fleets-config-volume
|
|
configMap:
|
|
name: test-fleets-config
|
|
items:
|
|
- key: config.yaml
|
|
path: config.yaml
|
|
|
|
|