-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ch15 - deprecated apiVersion for ingress object #32
Comments
This is not just in chapter 15. Throughout the book, yaml files are using beta api versions that no longer exist. Changing it to "v1" usually seems to solve the issue. |
@WriterOfAlicrow correct, many things are already different. I tried to change the manifests for chapter 15. I tested several of them, and they seem to work now. |
I managed to get this to work, at least for the hello-kiamol app (haven't tested the others yet), but it required some changes beyond what @nicolimo86 needed. I'm running kubernetes 1.22, which I think removed or changed more things. In the Ingress definition files I had to:
In
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
labels:
app.kubernetes.io/component: controller
name: nginx
annotations:
ingressclass.kubernetes.io/is-default-class: "true"
spec:
controller: k8s.io/ingress-nginx |
Hello,
in ch15 the manifests for the ingress object have the deprecated value
networking.k8s.io/v1beta1
. This makes them failing on kubernetes servers with version 1.18 or newer.The correct apiVersion is now
"apiVersion: networking.k8s.io/v1"
The text was updated successfully, but these errors were encountered: