Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created May 31, 2018 02:06
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 kelseyhightower/78c28bd7013f271cebc8a5eadcaa8a98 to your computer and use it in GitHub Desktop.
Save kelseyhightower/78c28bd7013f271cebc8a5eadcaa8a98 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: helloworld-uwsgi-tls
rules:
- host: helloworld-uwsgi.hightowerlabs.com
http:
paths:
- backend:
serviceName: he
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment