Skip to content
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

Error when install kubernetes #64

Open
NeihTzxc opened this issue Mar 15, 2024 · 2 comments
Open

Error when install kubernetes #64

NeihTzxc opened this issue Mar 15, 2024 · 2 comments

Comments

@NeihTzxc
Copy link

When step:

  • name: Add an apt signing key for Kubernetes
    apt_key:
    url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
    state: present

  • name: Adding apt repository for Kubernetes
    apt_repository:
    repo: deb https://apt.kubernetes.io/ kubernetes-xenial main
    state: present
    filename: kubernetes.list

  • name: Install Kubernetes binaries
    apt:
    name: "{{ packages }}"
    state: present
    update_cache: yes
    vars:
    packages:
    - "kubelet={{ kubernetes_version }}"
    - "kubeadm={{ kubernetes_version }}"
    - "kubectl={{ kubernetes_version }}"

Return error: fatal: [k8s-master]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:The repository 'https://apt.kubernetes.io kubernetes-xenial Release' does not have a Release file."}

image

@techiescamp
Copy link
Owner

@NeihTzxc please pull the latest code. We have updated the repos

@NeihTzxc
Copy link
Author

@NeihTzxc please pull the latest code. We have updated the repos

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants