Created
January 7, 2022 16:33
-
-
Save ccollicutt/948b589d355c5b034cd170ef3df6528b to your computer and use it in GitHub Desktop.
Quick ingress test yaml with http echo.
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: http-echo | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 5678 | |
selector: | |
app: http-echo | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: http-echo | |
spec: | |
selector: | |
matchLabels: | |
app: http-echo | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: http-echo | |
spec: | |
containers: | |
- name: http-echo | |
image: hashicorp/http-echo | |
args: | |
- "-text=http-echo" | |
ports: | |
- containerPort: 5678 | |
--- | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: http-echo | |
spec: | |
rules: | |
- host: <REPLACE WITH YOUR URL> | |
http: | |
paths: | |
- pathType: ImplementationSpecific | |
backend: | |
service: | |
name: http-echo | |
port: | |
number: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment