book-of-kubernetes / examples

Examples for The Book of Kubernetes
MIT License
178 stars 80 forks source link

Chapter 6 - Xenial depreciated #43

Open ipodcartel opened 2 months ago

ipodcartel commented 2 months ago

Chapter 6 is broken because of a depreciation that happened with Google. It is the commands on page 93. Here is an article discussing it. This error prevents the provisioning of the Kubernetes cluster for the whole chapter. Let me know if you have a fix and post the updated commands to the errata.

Link: https://discuss.kubernetes.io/t/http-apt-kubernetes-io-kubernetes-xenial/27673

aeblyve commented 1 month ago

The instructions here:

https://kubernetes.io/blog/2023/08/15/pkgs-k8s-io-introduction/#how-to-migrate

work OK to get kubectl et al downloading. At the time of writing staying with the 1.28 version mentioned there seems to be compatible with the book. It might be necessary to mkdir keyrings if you follow it exactly.

One wrinkle was that I had to use kubectl create -f tigera-operator.yaml in order to get it to work, otherwise (using kubectl apply -f tigera-operator.yaml instead) I would get:

The CustomResourceDefinition "installations.operator.tigera.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

Not sure if it is related.