Closed raphaelpoumarede closed 1 year ago
I hit the same issue. As best I can tell the official https://packages.cloud.google.com/apt/doc/apt-key.gpg key is still valid, the format has just changed. I had success with just changing the file extension during download. i.e.:
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg -o /usr/share/keyrings/kubernetes-archive-keyring.asc
And adjust the reference in /etc/apt/sources.list.d/kubernetes.list to use the asc extension rather than gpg
Need to update this line:
https://github.com/sassoftware/viya4-iac-k8s/blob/main/roles/kubernetes/toolbox/tasks/main.yaml#L24
with the following:
deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg trusted=yes] https://apt.kubernetes.io/ kubernetes-xenial main
Hi there
The following issue has been reported (bareos mode with Ubuntu 22.04).
I was able to reproduce the problem and it appears to be a known issue with the GPG key used for the kubernetes APT repository, see Ubuntu kubernetes-xenial public key is not available: NO_PUBKEY B53DC80D13EDEF05
One solution seems to be to change the URL from where the GPG key is pulled.
I was able to recover with the following steps (where I pull the GPG key from https://dl.k8s.io instead of https://packages.cloud.google.com) :
I don't know if it is a transient issue or if there are better ways to fix the issue, but the playbook might be currently broken and require a urgent fix to use the alternative URL.