k8s: ingress example (minikube)
Tested it with minikube. Needed to run minikube tunnel
to be able to reach ingress
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- host: hello-world.info
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web
port:
number: 8080
To run the app
kubectl create deployment web --image=gcr.io/google-samples/hello-app:1.0
Last updated
Was this helpful?