Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccollicutt/948b589d355c5b034cd170ef3df6528b to your computer and use it in GitHub Desktop.
Save ccollicutt/948b589d355c5b034cd170ef3df6528b to your computer and use it in GitHub Desktop.
Quick ingress test yaml with http echo.
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