Skip to content

Instantly share code, notes, and snippets.

@BenHall
Created December 15, 2020 14:23
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 BenHall/eaa1a0c79161ff3cbd6bfefe3718dcbd to your computer and use it in GitHub Desktop.
Save BenHall/eaa1a0c79161ff3cbd6bfefe3718dcbd to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: example
spec:
selector:
matchLabels:
app: example
replicas: 1
template:
metadata:
labels:
app: example
spec:
containers:
- name: hello
image: "katacoda/docker-http-server"
ports:
- name: http
containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: example-service
spec:
selector:
app: example
ports:
- port: 80
targetPort: 80
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment