Rancher initial deployment¶
Rancher Installation¶
In this setup, MicroK8s is the Kubernetes distribution hosting the Rancher application along with other services like Skyline, ArgoCD, and other applications. MicroK8s provides a lightweight, single-node Kubernetes environment.
Deploy using helm¶
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
helm upgrade --install rancher rancher-stable/rancher \
--namespace cattle-system \
--create-namespace \
--set hostname=rancher.virtomat.net \
--set bootstrapPassword=admin \ # will be used at first login
--set ingress.tls.source=secret \
--set ingress.extraAnnotations."cert-manager\.io/cluster-issuer"=letsencrypt \
--set agentTLSMode=system-store
Openstack Cloud Provider¶
In some cases, we may need to install the OpenStack cloud provider into your Kubernetes cluster. This is often done when you want to enable features like:
- Load Balancers
- Persistent Volumes (using OpenStack Cinder)
- Integration with other OpenStack services
You can install the OpenStack cloud provider using a Helm chart:
helm repo add openstack-cloud-provider https://kubernetes.github.io/cloud-provider-openstack
helm repo update
helm install openstack-cloud-provider openstack-cloud-provider/openstack-cloud-controller-manager --namespace kube-system