Code Monkey home page Code Monkey logo

Comments (6)

geerlingguy avatar geerlingguy commented on June 7, 2024

It looks like the main error in that big list is:

/proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1

Do you have a full playbook you can provide that can reproduce this problem? The test playbooks running in this project's CI seem to be installing successfully even with the latest version of Docker.

from ansible-role-kubernetes.

rodrigobrim avatar rodrigobrim commented on June 7, 2024

Hello, Jeff.

This is here:

[ansible@ansible-server lab-kubernetes]$ cat inventory
[all]
174.35.241.200 kubernetes_role="master"
174.35.241.201 kubernetes_role="node"
174.35.241.202 kubernetes_role="node"
174.35.241.203 kubernetes_role="node"
[ansible@ansible-server lab-kubernetes]$ cat playbook.yml
- hosts: all
  become: yes

  vars:
    kubernetes_allow_pods_on_master: True
    kubernetes_pod_network_cidr: 10.244.0.0/16

  roles:
    - brim.swapoff
    - geerlingguy.docker
    - geerlingguy.kubernetes
[ansible@ansible-server lab-kubernetes]$

from ansible-role-kubernetes.

rodrigobrim avatar rodrigobrim commented on June 7, 2024

My role - copylefted from a source that I don't remember :D

../../.ansible/roles/brim.swapoff
../../.ansible/roles/brim.swapoff/tasks
../../.ansible/roles/brim.swapoff/tasks/main.yml
[ansible@ansible-server lab-kubernetes]$ cat ../../.ansible/roles/brim.swapoff/tasks/main.yml
---
# This task disables swap for Kubernetes node (see https://github.com/kubernetes/kubernetes/pull/31996)
- name: Remove swapfile from /etc/fstab
  mount:
    name: swap
    fstype: swap
    state: absent
- name: Disable swap
  command: swapoff -a
  when: ansible_swaptotal_mb > 0
[ansible@ansible-server lab-kubernetes]$```

from ansible-role-kubernetes.

geerlingguy avatar geerlingguy commented on June 7, 2024

Interesting, that should work with the latest version of this role (which I just updated this weekend).

Are you using VirtualBox VMs? If so, your base box might not have the right settings—see: kubernetes/kubeadm#312 (comment)

I am using my geerlingguy/debian9 base box for the Raspberry Pi cluster testing in VirtualBox and don't seem to have this issue.

from ansible-role-kubernetes.

rodrigobrim avatar rodrigobrim commented on June 7, 2024

from ansible-role-kubernetes.

geerlingguy avatar geerlingguy commented on June 7, 2024

Closing this for now—but note that I'm also seeing some strange issues with the Ubuntu 18.04 and Debian 9 test environments for this role; follow #42 for progress.

from ansible-role-kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.