Skip to content

Instantly share code, notes, and snippets.

Created June 22, 2016 03:03
Show Gist options
  • Save anonymous/424c23d5b41a567528778e58e4d312c7 to your computer and use it in GitHub Desktop.
Save anonymous/424c23d5b41a567528778e58e4d312c7 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: List
items:
- kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: frontend
spec:
replicas: 1
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: nginx
ports:
- containerPort: 80
- containerPort: 443
- kind: Service
apiVersion: v1
metadata:
name: "frontend"
spec:
selector:
app: "frontend"
ports:
- protocol: "TCP"
name: web-ssl
port: 443
targetPort: 443
- protocol: "TCP"
port: 80
name: web
targetPort: 80
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment