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

Changes vor using on Raspian OS-64 Bullseye #13

Closed
Thro42 opened this issue Apr 4, 2022 · 3 comments
Closed

Changes vor using on Raspian OS-64 Bullseye #13

Thro42 opened this issue Apr 4, 2022 · 3 comments

Comments

@Thro42
Copy link

Thro42 commented Apr 4, 2022

I try to use this repro. to create a cluster with Raspberry Pi installt with the newest Raspian OS 64BIT (Bullseye).

Expected Behavior

First Problemist that in roles/raspberrypi/tasks/main.yml Raspbian will not detected.
After Fix that in Raspbian.yml the tasks for iptables and ip6tables will not run. This depends while iptables is not install on Debian 11.

Current Behavior

Steps to Reproduce

  1. Install Raspian OS 64BIT (Bullseye) on all Nodes
  2. Run deploy.sh

Context (variables)

Operating system:
Raspian OS-64 Bullseye

Variables Used:

k3s_version: "v1.23.4+k3s1"
ansible_user: NA
systemd_dir: /etc/systemd/system

flannel_iface:"eth0"

apiserver_endpoint: "192.168.42.42"

k3s_token: "NA"

extra_server_args: "--no-deploy servicelb --write-kubeconfig-mode 644 --kube-apiserver-arg default-not-ready-toleration-seconds=30 --kube-apiserver-arg default-unreachable-toleration-seconds=30 --kube-controller-arg node-monitor-period=20s --kube-controller-arg node-monitor-grace-period=20s --kubelet-arg node-status-update-frequency=5s"
extra_agent_args: "--kubelet-arg node-status-update-frequency=5s"

kube_vip_tag_version:"v0.4.2"

# image tag for metal lb
metal_lb_speaker_tag_version: "v0.12.1"
metal_lb_controller_tag_version: "v0.12.1"

# metallb ip range for load balancer
metal_lb_ip_range: "192.168.30.23-192.168.30.33"

Possible Solution

Insert task in roles/raspberrypi/tasks/main.yml ~line 40

- name: Set detected_distribution to Raspbian (ARM64 on Debian Bullseye)
  set_fact:
    detected_distribution: Raspbian
  when:
    - ansible_facts.architecture is search("aarch64")
    - raspberry_pi|default(false)
    - ansible_facts.lsb.description|default("") is match("Debian.*bullseye")

create Copy roles/raspberrypi/tasks/prereq/Raspbian.yml to roles/raspberrypi/tasks/prereq/Raspbian-11.yml
insert task in roles/raspberrypi/tasks/prereq/Raspbian-11.yml on second position

- name: Install iptables on Bullseye
  apt: name=iptables state=present
@Thro42 Thro42 changed the title Changes vor using an Raspian OS-64 Bullseye Changes vor using on Raspian OS-64 Bullseye Apr 4, 2022
@timothystewart6
Copy link
Contributor

@Thro42 thank you! Would love a PR for this if you have some time!

@svartis
Copy link
Contributor

svartis commented Apr 4, 2022

I have created a PR based on @Thro42 suggestions #18

@timothystewart6
Copy link
Contributor

This was closed by #18 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

3 participants