eShopOnContainers/k8s/ocelot/deployment.yaml
Eduard Tomàs ea4e0ed6e8 Deploying ocelot to k8s
configuration to ocelot passed through a k8s volume
2018-01-11 18:18:16 +01:00

32 lines
656 B
YAML

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ocelot
spec:
paused: true
template:
metadata:
labels:
app: eshop
component: ocelot
spec:
containers:
- name: ocelot
image: eshop/ocelotapigw
imagePullPolicy: Always
ports:
- containerPort: 80
volumeMounts:
- name: config
mountPath: /app/configuration
volumes:
- name: config
configMap:
name: ocelot
items:
- key: configuration.json
path: configuration.json
imagePullSecrets:
- name: registry-key