#### 安装rancher库
```sh
$ helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
$ helm search repo --versions|grep rancher
$ helm fetch rancher-stable/rancher
```
#### 安装TLS证书
```sh
$ kubectl -n cattle-system create secret tls tls-rancher-ingress --cert=5024509__example.com.pem --key=5024509__example.com.key
```
#### 安装rancher
```sh
$ helm install rancher rancher-stable/rancher --namespace cattle-system --set hostname=trancher.example.com --set replicas=3 --set ingress.tls.source=secret
```
#### 查看部署状态
```sh
$ kubectl -n cattle-system rollout status deploy/rancher
```