Skip to content

Instantly share code, notes, and snippets.

@belminf
Last active July 2, 2019 17:57
Show Gist options
  • Save belminf/5e806b1ec6eeeb347d5ed3e2939bf29e to your computer and use it in GitHub Desktop.
Save belminf/5e806b1ec6eeeb347d5ed3e2939bf29e to your computer and use it in GitHub Desktop.
Test ingress
---
kind: Pod
apiVersion: v1
metadata:
name: hello-world
labels:
app: hello-world
spec:
containers:
- name: echo
image: hashicorp/http-echo
args:
- "-text='hello world'"
---
kind: Service
apiVersion: v1
metadata:
name: hello-world
spec:
selector:
app: hello-world
ports:
- port: 5678
---
kind: Ingress
apiVersion: networking.k8s.io/v1beta1
metadata:
name: hello-world
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: hello-world
servicePort: 5678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment