Skip to content

Instantly share code, notes, and snippets.

@tylertreat
Last active June 19, 2020 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylertreat/42376a257dab55e13e7320e9f607587c to your computer and use it in GitHub Desktop.
Save tylertreat/42376a257dab55e13e7320e9f607587c to your computer and use it in GitHub Desktop.
Kubernetes deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: web
namespace: default
spec:
selector:
matchLabels:
run: web
template:
metadata:
labels:
run: web
spec:
containers:
- image: gcr.io/google-samples/hello-app:2.0
imagePullPolicy: IfNotPresent
name: web
ports:
- containerPort: 8080
protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment