Hi you all,
studying Ingress on my laptop with minikube, I’m testing this manifest from Kubernetes up&running p.94
##################################
apiVersion: networking.k8s.io/v1 # the original has “extensions/v1beta1”
# but is deprecated
kind: Ingress
metadata:
name: host-ingress
spec:
rules:
- host: alpaca.example.com
http:
paths:- backend:
serviceName: alpaca
servicePort: 80
- backend:
##################################
I’m getting the following error and the web isn’t being so useful.
rob@k8s-master1:~$ kubectl apply -f ./test_ingress.yml
Error from server (BadRequest): error when creating “./test_ingress.yml”: Ingress in version “v1” cannot be handled as a Ingress: strict decoding error: unknown field “spec.rules[0].http.paths[0].backend.serviceName”, unknown field “spec.rules[0].http.paths[0].backend.servicePort”
rob@k8s-master1:~$
Does anybody have any idea?
thanks in advance
Cluster information:
Kubernetes version: minikube version: v1.28.0
Cloud being used: bare-metal
Installation method:
Host OS: debian 11 ( virtualized on virtualbox )