Posts
Create K3S Cluster Ansible Playbook With Roles
1. Clone project in required folder Run these commands
# SSH to your Ansible Server VM ssh nickm@10.154.2.95 # Become root sudo su - # Create k3s folder mkdir /opt/k3s cd /opt/k3s # Clone this project from Github git clone https://github.com/nic0michael/create_k3s_cluster_playbook_generator_with_ansible_roles.git # Open this project in terminal ls -la cd create_k3s_cluster_playbook_generator_with_ansible_roles/ 1.1 Git / GitHub / GitLab / BitBucket Requirements for this project After Cloning our project you need to delete the .
Posts
Use Proxmox not VirtualBox or other VM Solutions for your Homelab
1. Reasons to use VirtualBox Ease of Use and Accessibility: VirtualBox is renowned for its user-friendly interface, making it a great choice for beginners and enthusiasts. Its intuitive setup and configura> Cross-Platform Compatibility: VirtualBox supports a wide range of host operating systems, including Windows, macOS, Linux, and Solaris. This flexibility makes it an excellent c> Development and Testing Environment: It’s widely used in software development for creating sandboxed environments. Developers can test software across different operating syste> Snapshot and Clone Capabilities: VirtualBox offers snapshot and cloning features that allow users to create copies of virtual machines at specific points in time.
Posts
Installing Ansible in a Proxmox VM
This procedure is for installing Ansible on a Debian/Ubuntu VM
Step 1: Configure Ansible Managed Hosts create a new user named ansible and grant it superuser privileges.
# DONT DO THIS using the -m option to create a default home directory /home/ansible for it: # DONT USE THIS COMMAND useradd -m ansible # BETTER OPTION create the ansible user this way adduser ansible # NOT NEEDED NOW: Create a password for this new user.
Posts
Create K3S Cluster Ansible Playbook
Please Note Our Ansible Playbooks have been updated improving the way thay work. We have made a small change to this project to SCP Copy the generated shell scripts to our K3S Node VMs to the /opt/k3s/ folder We have decided not to automate the running of these shell scripts as we need to use the Token of the Primary Master Node in the shell scripts of all the other K3S Nodes
Posts
Upgrade Your Proxmox From 7.3 to 8
Before you start read this Proxmox Wiki: https://pve.proxmox.com/wiki/Upgrade_from_7_to_8
1. Check version of your Proxmox You can get the version in the top of the browser or from the terminal Open your Proxmox node in the terminal and run this command:
pveversion --verbose 2. Shutdown all your VMs make sure they dont start on bootup 3. do updates # running commands to update and upgrade (its recomended) apt update apt upgrade # Doing this from the web interface # Click on Node server ->upupu # In the center menu -> Updates # Click on Refresh ->refresh # Click on Upgrade 4.
Posts
Install HAProxy on Ubuntu VM in Proxmox
1. Get install Instructions choose the version you want to install https://haproxy.debian.net/
We decided to go with :
I am running : Ubuntu Jammy (22.04 LTS) and I want to install HAProxy version 2.8-stable (LTS) .
2. How to install the HAproxy on Ubuntu 22.04 through PPA repository sudo su - apt install --no-install-recommends software-properties-common add-apt-repository ppa:vbernat/haproxy-2.8 Now we will update the packages to update the list of repositories of Ubuntu:
Posts
MySQL Create DB Dump DB Restore DB
1. Create DB Run these commands
# Login to DB mysql -u root -p<ROOT_PASSWORD> # Create database create database [DATABASE_NAME] 2. Dump DB Run these commands
sudo mysqldump -u [user] -p [database_name] > [filename].sql 3. Restore DB from Dump Run this command
# To restore your dump using the command below mysql -u [user] -p [database_name] < [filename].sql
Posts
Install Semaphore in Your Homelab
1. Documentation Ansible Semaphore: Administration-guide: Installation
2. Installation We are going to install Semaphore on an Ubuntu 2204 LTS Server First we need a database we will install MariaDB Then we will install Semaphore
2.1 Install MariaDB Run these commands
# Update Ubuntu sudo apt update # Add MariaDB Repo curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- # Once the repository is added install server and client packages sudo apt install mariadb-server mariadb-client # Secure the MariaDB database sudo mysql_secure_installation use these settings:
Posts
Kubernetes CheetSheet
http://rino.kozow.com/devops/posts/kubernetes-cheetsheet/
1. Namespaces kubectl create namespace nico kubectl delete namespace nico kubectl get namespaces kubectl get nodes --all-namespaces kubectl get pods --all-namespaces kubectl get all -n my-namespace 2. Creating Resource Objects, Containers, Deployments) kubectl create -f https://k8s.io/examples/application/deployment.yaml kubectl create deployment nginx --image=nginx kubectl create deployment redis --image=redis kubectl create deployment hasher --image=dockercons/hasher:v0.1 kubectl create deployment rng --image=dockercons/rng:v0.1 kubectl create deployment webui --image=dockercons/webui:v0.1 kubectl create deployment worker --image=dockercons/worker:v0.1 2.1 Creating Resources from Manifest files or Folders or from a Repository # create resource(s kubectl apply -f .
Posts
Create Hugo_Data_Page
Create Data YAML file nano data/logbook.yaml Put this into the file
################## # logbook.yaml # ################## --- items: - id: 1 "maidenhead_location": "KG44dd58" "power": "100" "band": "20M" "mode": "J3E" "antenna": "20M End Fed halfwave" "date": "2022-12-16" "time_sast": "17:19" "frequency_mhz": "14.225" "callsign": "V51WW" "name": "Wynand" "location": "Nr Etosha" "sent_rst": "59+10dB" "received_rst": "57" "notes": "we had a great and long QSO" - id: 2 "maidenhead_location": "KG44dd58" "power": "100" "band": "20M" "mode": "J3E" "antenna": "20M End Fed halfwave" "date": "2022-12-16" "time_sast": "17:19" "frequency_mhz": "14.