Last active
July 2, 2019 17:57
-
-
Save belminf/5e806b1ec6eeeb347d5ed3e2939bf29e to your computer and use it in GitHub Desktop.
Test ingress
This file contains hidden or 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
--- | |
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