Skip to content

Instantly share code, notes, and snippets.

@SarasaGunawardhana
Created November 8, 2019 07:02
Show Gist options
  • Save SarasaGunawardhana/6108f522f102d5cf53192fe2d4640e0f to your computer and use it in GitHub Desktop.
Save SarasaGunawardhana/6108f522f102d5cf53192fe2d4640e0f to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
run: my-service-1
name: my-service-1
spec:
replicas: 1
selector:
matchLabels:
run: my-service-1
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
run: my-service-1
spec:
containers:
- image: <URL for your docker image in docker registry>
name: my-service-1
env:
- name: PORT
value: "4002"
- name: NODE_ENV
value: "development"
- name: VERSION
value: "v0.0.0.1"
imagePullPolicy: Always
ports:
- containerPort: 4002
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment