Rancher server - manages and provisions kubernetes clusters RKE (Rancher Kubernetes Engine) - fully compliant distribution K3s (Lightweight Kubernetes) - fully compliant distribution, newer, easier, more lightweight RKE2 - has security and compliance for government use
RKE | needs docker |
k3s | does NOT need docker |
RKE2 | does NOT need docker |
Helm - Kubernetes package manager
DaemonSet -
=================================================
Rancher Server
Run rancher server in docker:
sudo docker run –privileged -d –restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
dvm8gjkvdtbbg5hbtnl89gvx66fdlcs6649pgk6rdnl9cdqrx5dfzg https://192.168.3.231 N5TfemDT5wzbFEt0
-
installs K3s by default ( for local cluster )
- provision worker node VMs
- interact with kubctl
Create a cluster in a hosted Kubernetes provider
- Amazon EKS
- Azure AKS
- google GKE
Provision new nodes and create a cluster using RKE/RKE2/K3s
- Amazon EC2
- Azure
- DigitalOcean
- Harvester <= !
- Linode
- VMware vSphere
Use existing nodes and create a cluster using RKE/RKE2/K3s
- Custom
=================================================
RKE Install
- manual RKE install by itself without using Rancher
Install docker with rancher script:
curl https://releases.rancher.com/install-docker/
sysctl setting:
net.bridge.bridge-nf-call-iptables=1
https://github.com/rancher/rke/#latest-release $ chmod +x rke $ rke –version
Generate config, prompt:
rke config –name cluster.yml
Generate
rke config –empty –name cluster.yml
Bring it up:
rke up
Save these in a secure location:
cluster.yml kube_config_cluster.yml cluster.rkestate
=================================================
Kubernetes from Scratch
https://www.tutorialspoint.com/kubernetes/kubernetes_setup.htm