Skip to content

Instantly share code, notes, and snippets.

@nf
Created June 22, 2016 02:50
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 nf/e4c994000adb9b7ea44ab9b9b9b4ebb4 to your computer and use it in GitHub Desktop.
Save nf/e4c994000adb9b7ea44ab9b9b9b4ebb4 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: List
items:
- kind: Deployment
apiVersion: v1
metadata:
name: frontend
spec:
replicas: 1
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: $my_image
ports:
- containerPort: 80
- containerPort: 443
- kind: Service
apiVersion: v1
metadata:
name: "frontend"
spec:
selector:
app: "frontend"
ports:
- protocol: "TCP"
port: 443
targetPort: 443
- protocol: "TCP"
port: 80
targetPort: 80
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment