Skip to content

Instantly share code, notes, and snippets.

@nashmaniac
Last active January 13, 2020 11:15
Show Gist options
  • Save nashmaniac/03f05d0c5f47a053b7e1356e9f3c8227 to your computer and use it in GitHub Desktop.
Save nashmaniac/03f05d0c5f47a053b7e1356e9f3c8227 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: application-deployment
spec:
replicas: 2
selector:
matchLabels:
pod: application
template:
metadata:
name: application-deployment-template
labels:
pod: application
spec:
containers:
- name: application-deployment-container
image: gcr.io/nomadic-mesh/docker-image-demo
imagePullPolicy: Always
ports:
- containerPort: 8000
env:
- name: APP_NAME
valueFrom:
configMapKeyRef:
key: APP_NAME
name: application-configmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment