Define this ingress
ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: backend-for-frontend-ing
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
defaultBackend:
service:
name: bff-svc
port:
number: 3000
$ kubectl apply -f ingress.yaml
I can't access it even if I run it ...
It seems that nginx-ingress-controller is not installed on Docker For Mac.
You can use it safely by executing the following command.
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.43.0/deploy/static/provider/cloud/deploy.yaml
Let's take a look at the primary resources.
It was a memorandum.
https://kubernetes.github.io/ingress-nginx/deploy/#docker-for-mac
Recommended Posts