Home > Storage > PowerFlex > White Papers > SUSE Rancher and RKE Kubernetes cluster using CSI Driver on DELL EMC PowerFlex > Steps to install SUSE Rancher server on the Kubernetes cluster
1. Run the following command to add the Helm chart repository that contains charts to install Rancher:
$ helm repo add rancher-latest https://releases.rancher.com/server-charts/latest |
2. Run the following command to create a namespace for SUSE Rancher as cattle-system:
$ kubectl create ns cattle-system |
3. Run the following command to create and apply a namespace for certificate manager as cert-manager:
$ kubectl create ns cert-manager $ kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.2.0/cert-manager.crds.yaml |
4. Run the following command to add the Jetstack repo to helm. Jetstack cert-manager helps with management and issue of TLS certificates from various issuing sources:
$ helm repo add jetstack https://charts.jetstack.io |
5. Run the following command to add the Rancher stable repo to helm and update helm:
$ helm repo add rancher-stable https://releases.rancher.com/server-charts/stable $ helm repo update |
6. The cert-manager is a Kubernetes add-on to automate the management and issue of TLS certificates from various issuing sources. SUSE Rancher relies on cert-manager to issue certificates generated by SUSE Rancher CA or to request the encrypted certificates. Run the following command to use helm to install the cert-manager:
$ helm install cert-manager jetstack/cert-manager -n cert-manager --version v1.2.0 –wait |
7. Run the following command to check the cert-manager namespace for running pods to verify that it is deployed correctly:
$ kubectl get pods -n cert-manager NAME READY STATUS RESTARTS AGE cert-manager-75cf57777c-ztw9f 1/1 Running 0 2m2s cert-manager-cainjector-f54c57bf8-wkc2z 1/1 Running 0 2m2s cert-manager-webhook-76794c6967-84gb6 1/1 Running 0 2m2s
|
8. Run the following command to create a configuration file (rancher-values.yaml) for SUSE Rancher server, specifying the hostname and other details. In the following example, ranchersles15sp2 is the hostname:
$ cat << EOF > rancher-values.yaml hostname: ranchersles15sp2.testlab.com replicas: 1 EOF |
For more information about configurable options, see Rancher Helm Chart Options.
9. Run the following command to install SUSE Rancher with Helm:
$ helm install rancher rancher-stable/rancher -n cattle-system –-version v2.5.7 -f rancher-values.yaml NAME: rancher LAST DEPLOYED: Tue Mar 16 11:05:11 2021 NAMESPACE: cattle-system STATUS: DEPLOYED .. .. NOTES: Rancher Server has been installed.
NOTE: Rancher may take several minutes to fully initialize. Please standby while Certificates are being issued and Ingress comes up.
Check out Rancher docs at https://rancher.com/docs/rancher/v2.x/en/
Browse to https://ranchersles15sp2.testlab.com
Happy Containering! $
|
10. Run the following command to check the cattle-system namespace for running pods to verify that the namespace is deployed correctly:
$ kubectl get pods –-namespace cattle-system NAME READY STATUS RESTARTS AGE rancher-7f4df87477-mfcxc 1/1 Running 1 36d rancher-webhook-b5b7b76c4-r9nwn 1/1 Running 1 36d
|
Result: Rancher is up and running.
11. Go to https://ranchersles15sp2.testlab.com to access the functional SUSE Rancher server as shown below: