Menambahkan repository rancher pada helm
masadmin@PowerEdge-R740:~$ microk8s.helm3 repo add rancher-latest https://releases.rancher.com/server-charts/latest "rancher-latest" has been added to your repositories masadmin@PowerEdge-R740:~$
Membuat namespace untuk rancher
masadmin@PowerEdge-R740:~$ microk8s.kubectl create namespace cattle-system namespace/cattle-system created masadmin@PowerEdge-R740:~$
Update helm repository
masadmin@PowerEdge-R740:~$ microk8s.helm3 repo update Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "rancher-latest" chart repository Update Complete. ⎈Happy Helming!⎈ masadmin@PowerEdge-R740:~$
Install rancher menggunakan helm
masadmin@PowerEdge-R740:~$ microk8s.helm3 install rancher rancher-latest/rancher --version 2.8.1 --namespace cattle-system --set hostname=172.22.23.43.sslip.io --set replicas=1 --set bootstrapPassword=MauMasuk5758 NAME: rancher LAST DEPLOYED: Fri Feb 9 19:28:16 2024 NAMESPACE: cattle-system STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: Rancher Server has been installed. NOTE: Rancher may take several minutes to fully initialize. Please standby while Certificates are being issued, Containers are started and the Ingress rule comes up. Check out our docs at https://rancher.com/docs/ If you provided your own bootstrap password during installation, browse to https://172.22.23.43.sslip.io to get started. If this is the first time you installed Rancher, get started by running this command and clicking the URL it generates: ``` echo https://172.22.23.43.sslip.io/dashboard/?setup=$(kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}') ``` To get just the bootstrap password on its own, run: ``` kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}{{ "\n" }}' ``` Happy Containering! masadmin@PowerEdge-R740:~$