Skip to content

Instantly share code, notes, and snippets.

@QwertyJack
Last active June 19, 2019 17:20
Show Gist options
  • Save QwertyJack/01aad621d158e6d5f1b94ea9a18dd3fd to your computer and use it in GitHub Desktop.
Save QwertyJack/01aad621d158e6d5f1b94ea9a18dd3fd to your computer and use it in GitHub Desktop.
ingress-debug
apiVersion: apps/v1
kind: Deployment
metadata:
name: coffee
spec:
replicas: 1
selector:
matchLabels:
app: coffee
template:
metadata:
labels:
app: coffee
spec:
containers:
- name: coffee
image: k8s.gcr.io/echoserver:1.4
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: coffee-svc
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: coffee
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
name: debug-ing
spec:
#tls:
#- hosts:
#- fqdn.my.site
#secretName: debug-le
rules:
- host: fqdn.my.site
http:
paths:
- backend:
serviceName: coffee-svc
servicePort: 80
path: /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment