Commit a206fe2a authored by Sohail, Sakhir's avatar Sohail, Sakhir
Browse files

commit all

parent 7c8755b8
This diff is collapsed.
156 lvextend -L +9G /dev/mapper/ubuntu--vg-ubuntu--lv -r
160 apt-get upgrade
161 df -h
162 sudo apt remove docker docker-engine docker.io containerd runc
163 sudo apt install docker.io
164 docker --version
165 systemctl enable docker
166 systemctl start docker
167 systemctl status docker
070 vi rke2-prep-master.sh
208 chmod +x *
209 ll
210 ls
211 ls
212 ./rke2-prep-master.sh
213 ls
214 ls -l
215 ./rke2-master.sh
216 kubectl get nodes
217 #export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/var/lib/rancher/rke2/bin
218 export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/var/lib/rancher/rke2/bin
219 kubectl get nodes
220 cat /var/lib/rancher/rke2/server/node-token
224 kubectl get nodes
225 kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/relases/download/v1.5.4/cert-manager.yaml
226 ping google.com
227 ping github.com
228 kubectl apply --validate=false -f cert-manager.yaml
229 kubectl get deploy --all-namespaces
230 kubectl get po --all-namespaces
231 kubectl create namespace cattle-system
232 helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
233 helm repo update
234 helm repo list
235 helm install rancher rancher-stable/rancher --namespace cattle-system --version 2.6.3 --set hostname=tram-lv1.analyticsenclave.org --set replicas=2
236 helm install rancher rancher-stable/rancher --namespace cattle-system --version 2.6.3 --set hostname=rancher-t.analyticsenclave.org --set replicas=2
237 helm install rancher rancher-stable/rancher --namespace cattle-system --version 2.6.3 --set hostname=ranchert.analyticsenclave.org --set replicas=2
238 helm install rancher rancher-stable/rancher --namespace cattle-system --version 2.6.3 --set hostname=rancherpp.analyticsenclave.org --set replicas=2
239 helm install rancher rancher-stable/rancher --namespace cattle-system --version 2.6.3 --set replicas=2
240 kubectl get pod -A
241 kubectl get pod -A
242 kubectl get pod -A
243 kubectl get pod -A
244 kubectl get pod -A
245 kubectl get pod -A
246 kubectl getnodes
247 kubectl get nodes
248 kubectl get pod -A
249 helm --help
250 helm
251 kubectl get pod -A
252 kubectl get pod -A
253 kubectl get pod -A
254 kubectl get pod -A
255 kubectl get pod -A
256 kubectl get pod -A
257 kubectl get pod -A
258 helm uninstall rancher rancher-stable/rancher --namespace cattle-system --version 2.6.3 --set hostname=tram-lv1.analyticsenclave.org --set replicas=2
259 helm uninstall rancher rancher-stable/rancher --namespace cattle-system --set hostname=tram-lv1.analyticsenclave.org --set replicas=2
260 helm uninstall rancher rancher-stable/rancher --namespace cattle-system
261 kubectl get nodes
262 kubectl get pod -A
263 df -h
264 helm install rancher rancher-stable/rancher --namespace cattle-system --version 2.6.3 --set hostname=rancher-t.analyticsenclave.org --set replicas=2
265 helm install rancher rancher-stable/rancher --namespace cattle-system --version 2.6.3 --set hostname=rancher-t.analyticsenclave.org --set replicas=2
277 helm uninstall rancher rancher-stable/rancher --namespace cattle-system
278 kubectl delete secret -n cattle-system bootstrap-secret
#!/bin/bash
# Run the installer
curl -sfL https://get.rke2.io | sh -
# Enable the rke2-server service
systemctl enable rke2-server.service
# Start the service
systemctl start rke2-server.service
exit 127
\ No newline at end of file
#!/bin/bash
# Swap Off
sudo swapoff -a
sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab
# Helm Install on Debian based distributions
#curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
sudo apt-get install apt-transport-https --yes
#echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
#sudo apt-get install helm
# kubectl install on Debian based distributions
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl
#sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
#echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt update
#sudo apt install -y kubectl
exit 127
#!/bin/bash
# rke2 - (Worker) Node Installation
# Variables, DO NO~T FORGET TO FILL IT
SERVER_IP="10.162.35.162"
TOKEN="K1072a6c246b7e78ee745e47af4c9aa914b8908dd52facb5141fb6eb1405b498bd3::server:a3d3e6f86227beeeb52ad5dbd38a14f8"
#"K10a3554734febf9640170918a013fb5176c95868de741e6b37df1bf7ab5d66f6fe::server:c364def31225fd1af2331bf7a461e932"
# Swap Off
sudo swapoff -a
sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab
# Run the installer
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
# Enable the rke2-agent service
systemctl enable rke2-agent.service
# Configure the rke2-agent service¶
mkdir -p /etc/rancher/rke2/
echo "server: https://$SERVER_IP:9345" | sudo tee /etc/rancher/rke2/config.yaml
echo "token: $TOKEN" \ >> /etc/rancher/rke2/config.yaml
# Start the service
systemctl start rke2-agent.service
exit 127
#!/bin/bash
# rke2 - (Worker) Node Installation
# Variables, DO NO~T FORGET TO FILL IT
SERVER_IP="10.162.35.162"
TOKEN="K101284ead756228378a7c74dacf538347a7ba99f42cc6b7ba9e84e9ae8888829d3::server:d43e2f204c412fe257a7fdb95e495dad"
#"K10d3d16f8c740c853b9d354ad9f56c528a03cca464ab231fbb491619699653db17::server:b85e418aa1b74ad815b1750626a4f914"
#"K103f0c95aa3810ffd7ef27ad032c4d98cb242588ee5863271c36d814256eb4c90a::server:60f94d840eb6084d99e2b54eff9c16ba"
# Swap Off
sudo swapoff -a
sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab
# Run the installer
curl -sfL https://get.rke2.io |sh -
# Enable the rke2-agent service
systemctl enable rke2-server.service
# Configure the rke2-agent service¶
mkdir -p /etc/rancher/rke2/
echo "server: https://$SERVER_IP:9345" | sudo tee /etc/rancher/rke2/config.yaml
echo "token: $TOKEN" \ >> /etc/rancher/rke2/config.yaml
# Start the service
systemctl start rke2-server.service
exit 127
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment