-
-
Save QwertyJack/01aad621d158e6d5f1b94ea9a18dd3fd to your computer and use it in GitHub Desktop.
ingress-debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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