dev-environment/k8s_config/dev/carpool-service/deployment.yaml

32 lines
771 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: carpool-service
spec:
selector:
matchLabels:
app: carpool-service
template:
metadata:
labels:
app: carpool-service
spec:
containers:
- name: carpool-service
image: coopgo-platform/carpool-service
ports:
- name: grpc
containerPort: 8080
protocol: TCP
volumeMounts:
- name: carpool-service-config-volume
mountPath: /config.yaml
subPath: config.yaml
volumes:
- name: carpool-service-config-volume
configMap:
name: carpool-service-config
items:
- key: config.yaml
path: config.yaml