Setup Kubernetes cluster with K3sup: Difference between revisions

From UNamur InfoSec
Jump to navigation Jump to search
(Created page with " ==Requirements == === Pre existing requirement for Raspbian OS === === Pre existing requirement for Raspberry PI=== ==Installation== ===K3sup === === Remove k3s from mast...")
 
Line 10: Line 10:


=== Remove k3s from master and worker nodes. ===
=== Remove k3s from master and worker nodes. ===
 
* Ansible playbook for removing k3s from hosts
<pre>#clean up k3s
<pre>#clean up k3s
---
---

Revision as of 18:44, 17 September 2021


Requirements

Pre existing requirement for Raspbian OS

Pre existing requirement for Raspberry PI

Installation

K3sup

Remove k3s from master and worker nodes.

  • Ansible playbook for removing k3s from hosts
#clean up k3s
---
- name: clean up k3s installation
  hosts: red
  remote_user: pi
  tasks:
  - name: stop service
    command: /usr/local/bin/k3s-killall.sh
    ignore_unreachable: yes
  - name: uninstall master node
    command: /usr/local/bin/k3s-uninstall.sh
    ignore_unreachable: yes
- name: clean up k3s installation
  hosts: [yellow black green]
  remote_user: pi
  tasks:
  - name: stop service
    command: /usr/local/bin/k3s-killall.sh
    ignore_unreachable: yes
  - name: Uninstall worker node
    command: /usr/local/bin/k3s-agent-uninstall.sh
    ignore_unreachable: yes