Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: apps/v1
kind: Deployment
metadata:
name: user-api
namespace: user-api
spec:
replicas: 1
selector:
matchLabels:
name: user-api-pod
template:
metadata:
labels:
name: user-api-pod
spec:
containers:
- name: user-api
image: clusterkuberegistry.azurecr.io/user-api:v3.3
imagePullPolicy: Always
ports:
- containerPort: 80
env:
- name: NAMES_API_HOSTNAME
valueFrom:
configMapKeyRef:
name: server-hostnames
key: names-api-hostname
- name: MOVIES_API_HOSTNAME
valueFrom:
configMapKeyRef:
name: server-hostnames
key: movies-api-hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment