k8s guide update

This commit is contained in:
marcel-dempers 2022-04-15 22:40:42 +10:00
parent 71a1fcb7cd
commit 77df499742
2 changed files with 5 additions and 1 deletions

View File

@ -236,6 +236,10 @@ To use an ingress, we need an ingress controller
``` ```
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.3/deploy/static/provider/cloud/deploy.yaml kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.3/deploy/static/provider/cloud/deploy.yaml
kubectl -n ingress-nginx get pods
kubectl -n ingress-nginx --address 0.0.0.0 port-forward svc/ingress-nginx-controller 80
``` ```
Create an Ingress Create an Ingress

View File

@ -7,7 +7,7 @@ metadata:
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
- http: - http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix