Skip to content

Instantly share code, notes, and snippets.

@nphmuller
Created May 18, 2018 13:27
Show Gist options
  • Save nphmuller/1c980c72e2119b1482e19eb619def08f to your computer and use it in GitHub Desktop.
Save nphmuller/1c980c72e2119b1482e19eb619def08f to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx
spec:
rules:
- host: nginx.example.org
http:
paths:
- backend:
serviceName: nginx
servicePort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
ports:
- port: 80
targetPort: 80
selector:
app: nginx
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx
spec:
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
name: nginx
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment