Giter Club home page Giter Club logo

arduinodaygt2024's Introduction

arduinodaygt2024

Install K3s on RPI 4B

  1. Install Raspbian
  2. Configure your Network
sudo nmcli c mod "Wired connection 1" ipv4.addresses 172.16.0.10/16 ipv4.method manual

sudo nmcli con mod "Wired connection 1" ipv4.gateway 172.16.0.1

sudo nmcli con mod "Wired connection 1" ipv4.dns 172.16.0.1
sudo nmcli -p connection show

/boot/firmware/cmdline.txt
cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory

/etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1

sudo apt-get install iptables
  1. Install K3s
MASTER_IP=YOUR_STATIC_IP
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" INSTALL_K3S_EXEC="--disable traefik --tls-san "$MASTER_IP" --node-external-ip="$MASTER_IP" --node-ip="$MASTER_IP" --disable=servicelb" sh -s -
  1. Compile containers docker context use desktop-linux abiosoft/colima#52

Installing MetalLB

kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.14.4/config/manifests/metallb-native.yaml

cat <<EOF | kubectl create -f -
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
  name: first-pool
  namespace: metallb-system
spec:
  addresses:
  - 192.168.1.240-192.168.1.250
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
  name: example
  namespace: metallb-system
EOF

Deploy the YAML files

To deploy the YAML files run the following command:

kubectl apply -f yaml

To access the Grafana Dashboard run the following command:

kubectl port-forward -n monitoring --address 0.0.0.0 svc/grafana 3000:3000

References

arduinodaygt2024's People

Contributors

sergioarmgpl avatar

Stargazers

 avatar

Watchers

 avatar

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.