Home > Storage > PowerFlex > White Papers > SUSE Rancher and RKE Kubernetes cluster using CSI Driver on DELL EMC PowerFlex > Steps to install a single node Kubernetes cluster
Option1 $ curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash Option2 $ curl -sfL https://get.helm.sh/helm-v3.5.3-linux-amd64.tar.gz -o helm.tgz $ tar xf helm.tgz $ mv linux-amd64/helm /usr/local/bin/ $ chmod +x usr/local/bin/helm $ helm version |
$ curl -LO https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl $ chmod +x kubectl $ mv kubectl /usr/local/bin/ $ kubectl version |
$ curl -LO https://github.com/rancher/rke/releases/download/v1.2.6/rke_linux-amd64 |
$ mv rke_linux-amd64 rke $ chmod +x rke $ rke --version |
$ rke config --name cluster.yml [+] Cluster Level SSH Private Key Path [~/.ssh/id_rsa]: [+] Number of Hosts [1]: [+] SSH Address of host (1) [none]: 192.168.153.111 [+] SSH Port of host (1) [22]: [+] SSH Private Key Path of host (192.168.153.111) [none]: [-] You have entered empty SSH key path, trying fetch from SSH key parameter [+] SSH Private Key of host (192.168.153.111) [none]: [-] You have entered empty SSH key, defaulting to cluster level SSH key: ~/.ssh/id_rsa [+] SSH User of host (192.168.153.111) [ubuntu]: tux [+] Is host (192.168.153.111) a Control Plane host (y/n)? [y]: [+] Is host (192.168.153.111) a Worker host (y/n)? [n]: y [+] Is host (192.168.153.111) an etcd host (y/n)? [n]: y [+] Override Hostname of host (192.168.153.111) [none]: [+] Internal IP of host (192.168.153.111) [none]: [+] Docker socket path on host (192.168.153.111) [/var/run/docker.sock]: [+] Network Plugin Type (flannel, calico, weave, canal, aci) [canal]: [+] Authentication Strategy [x509]: [+] Authorization Mode (rbac, none) [rbac]: [+] Kubernetes Docker image [rancher/hyperkube:v1.20.4-rancher1]: [+] Cluster domain [cluster.local]: [+] Service Cluster IP Range [10.43.0.0/16]: [+] Enable PodSecurityPolicy [n]: [+] Cluster Network CIDR [10.42.0.0/16]: [+] Cluster DNS Service IP [10.43.0.10]: [+] Add addon manifest URLs or YAML files [no]: $ |
$ rke up INFO[0000] Running RKE version: v1.2.6 INFO[0000] Initiating Kubernetes cluster INFO[0000] [dialer] Setup tunnel for host [192.168.153.111] . . . INFO[0861] Finished building Kubernetes cluster successfully |
$ ls bin cluster.rkestate cluster.yml kube_config_cluster.yml public_html rke $ mkdir .kube $ cp kube_config_cluster.yml /$HOME/.kube/config $ chmod 700 /home/tux/.kube/config |
$ kubectl get nodes NAME STATUS ROLES AGE VERSION 192.168.153.111 Ready controlplane,etcd,worker 48m v1.20.4 |