sandervanvugt / cka

394 stars 510 forks source link

deprecated setup-kubetools.sh #21

Open kaen84 opened 6 months ago

kaen84 commented 6 months ago

The legacy package repositories (apt.kubernetes.io and yum.kubernetes.io) have been deprecated and frozen starting from September 13, 2023. Using the new package repositories hosted at pkgs.k8s.io is strongly recommended and required in order to install Kubernetes versions released after September 13, 2023. The deprecated legacy repositories, and their contents, might be removed at any time in the future and without a further notice period. The new package repositories provide downloads for Kubernetes versions starting with v1.24.0.

Update setup-kubetools.sh script

replace lines:

sudo apt-get update && sudo apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF

with

sudo apt-get update && sudo apt-get install -y apt-transport-https curl
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sandervanvugt commented 6 months ago

Thanks for your message. I analysed the current status of setup-container.sh and setup-kubetools.sh and applied different updates to all of them. Please let me know if you encounter any additional issues - thanks

On 5 Mar 2024, at 07:21, kaen84 @.***> wrote:

The legacy package repositories (apt.kubernetes.io and yum.kubernetes.io) have been deprecated and frozen starting from September 13, 2023 https://kubernetes.io/blog/2023/08/31/legacy-package-repository-deprecation/. Using the new package repositories hosted at pkgs.k8s.io https://kubernetes.io/blog/2023/08/15/pkgs-k8s-io-introduction/ is strongly recommended and required in order to install Kubernetes versions released after September 13, 2023. The deprecated legacy repositories, and their contents, might be removed at any time in the future and without a further notice period. The new package repositories provide downloads for Kubernetes versions starting with v1.24.0.

Update setup-kubetools.sh script

replace lines:

sudo apt-get update && sudo apt-get install -y apt-transport-https curl curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list deb https://apt.kubernetes.io/ kubernetes-xenial main EOF with

sudo apt-get update && sudo apt-get install -y apt-transport-https curl curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list — Reply to this email directly, view it on GitHub https://github.com/sandervanvugt/cka/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3TNVUSFFYL3OOK6J4L5STYWVP6VAVCNFSM6AAAAABEGQK63WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3DQMZYHE4TQMQ. You are receiving this because you are subscribed to this thread.