Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created January 24, 2019 02:48
Show Gist options
  • Save kelseyhightower/9814016cd32a8dd12d3185d8adad31c4 to your computer and use it in GitHub Desktop.
Save kelseyhightower/9814016cd32a8dd12d3185d8adad31c4 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
labels:
app: helloworld-uwsgi
name: helloworld-uwsgi
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: helloworld-uwsgi
version: v1
type: NodePort
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: helloworld-uwsgi
spec:
tls:
- secretName: hightowerlabs
rules:
- host: helloworld-uwsgi.hightowerlabs.com
http:
paths:
- backend:
serviceName: helloworld-uwsgi
servicePort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment