Install K3S on CentOS8: Difference between revisions

From Bitbull Wiki
Jump to navigation Jump to search
Created page with " =VM Setup= ==VM requirements== Just setup a CentOS8 minimal VM with the following requirements * OS: centos8 minimal :* CPU: 2 :* MEM: 8GB (6 GB may work as well) :* DISK: 4..."
 
Line 35: Line 35:


=DNS for Wildcard Ingress=
=DNS for Wildcard Ingress=
* Create a CNAME
  *.vm-name.domain.tld -> vm-name.domain.tld
  *.vm-name.domain.tld -> vm-name.domain.tld


[[Category:K3S]]
[[Category:K3S]]
[[Category:OpenShift & K8S]]
[[Category:OpenShift & K8S]]

Revision as of 09:50, 6 May 2021

VM Setup

VM requirements

Just setup a CentOS8 minimal VM with the following requirements

  • OS: centos8 minimal
  • CPU: 2
  • MEM: 8GB (6 GB may work as well)
  • DISK: 40G (7GB used on a fresh setup)

Prepare OS

dnf -y upgrade
dnf -y install setroubleshoot-server curl lsof wget
sed -i  '/swap/d' /etc/fstab
swapoff -a
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --reload
reboot


Setup K3S

curl -sfL https://get.k3s.io | sh
cat /etc/systemd/system/k3s.service
systemctl status k3s
kubectl get nodes
# all pods in running state? fine!
kubectl get pods --all-namespaces


DNS for Wildcard Ingress

  • Create a CNAME
*.vm-name.domain.tld -> vm-name.domain.tld