Skip to content

Instantly share code, notes, and snippets.

@ernestofreyreg
Created November 30, 2019 03:39
Show Gist options
  • Select an option

  • Save ernestofreyreg/79b0c7e415d1be8e0aed9460af403f7f to your computer and use it in GitHub Desktop.

Select an option

Save ernestofreyreg/79b0c7e415d1be8e0aed9460af403f7f to your computer and use it in GitHub Desktop.
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
name: "outsrc-back-deployment"
namespace: "outsrc"
labels:
service: "back"
spec:
replicas: 1
selector:
matchLabels:
service: "back"
template:
metadata:
labels:
service: "back"
spec:
containers:
- name: "outsrc-demo-back"
image: "gcr.io/outsrc/outsrc-demo-back:1.0.0"
imagePullPolicy: "Always"
ports:
- containerPort: 3000
readinessProbe:
httpGet:
path: "/status"
port: 3000
env:
- name: "PORT"
value: "3000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment