# Rancher
***Rancher*** is open source software that combines everything an organization needs to adopt and run containers in production. Built on Kubernetes, Rancher makes it easy for DevOps teams to test, deploy and manage their applications.
### Introduction
This chart bootstraps a [Rancher Server](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/) on a Kubernetes cluster using the [Helm](https://helm.sh/) package manager. For a Rancher Supported Deployment please follow our [HA install instructions](https://rancher.com/docs/rancher/v2.x/en/installation/how-ha-works/).
### Prerequisites Details
*For installations covered under [Rancher Support SLA](https://rancher.com/support-maintenance-terms/) the target cluster must be **[RKE](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/kubernetes-rke/)** or **[K3s](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/kubernetes-rke/)**.*
Make sure the node(s) for the Rancher server fulfill the following requirements:
[Operating Systems and Docker Requirements](https://rancher.com/docs/rancher/v2.x/en/installation/requirements#operating-systems-and-docker-requirements)
[Hardware Requirements](https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#hardware-requirements)
- [CPU and Memory](https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#cpu-and-memory)
- [CPU and Memory for Rancher prior to v2.4.0](https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#cpu-and-memory-for-rancher-prior-to-v2-4-0)
- [Disks](https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#disks)
[Networking Requirements](https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#networking-requirements)
- [Node IP Addresses](https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#node-ip-addresses)
- [Port Requirements](https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#port-requirements)
[Install the Required CLI Tools](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/helm-rancher/#1-install-the-required-cli-tools)
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl) - Kubernetes command-line tool.
- [helm](https://docs.helm.sh/using_helm/#installing-helm) - Package management for Kubernetes. Refer to the [Helm version requirements](https://rancher.com/docs/rancher/v2.x/en/installation/options/helm-version) to choose a version of Helm to install Rancher.
For a list of best practices that we recommend for running the Rancher server in production, refer to the [best practices section](https://rancher.com/docs/rancher/v2.x/en/best-practices/deployment-types/).
## Installing Rancher
For production environments, we recommend installing Rancher in a [high-availability Kubernetes installation](https://rancher.com/docs/rancher/v2.x/en/installation/how-ha-works/) so that your user base can always access Rancher Server. When installed in a Kubernetes cluster, Rancher will integrate with the cluster’s etcd database and take advantage of Kubernetes scheduling for high-availability.
Optional: Installing Rancher on a [Single-node](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/#optional-installing-rancher-on-a-single-node-kubernetes-cluster) Kubernetes Cluster
#### Add the Helm Chart Repository
Use [helm repo add](https://helm.sh/docs/helm/helm_repo_add/) command to add the Helm chart repository that contains charts to install Rancher. For more information about the repository choices and which is best for your use case, see Choosing a Version of Rancher.
```bash
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
```
#### Create a Namespace for Rancher
We’ll need to define a Kubernetes namespace where the resources created by the Chart should be installed. This should always be cattle-system:
```bash
kubectl create namespace cattle-system
```
#### Choose your SSL Configuration
The Rancher management server is designed to be secure by default and requires SSL/TLS configuration.
There are three recommended options for the source of the certificate used for TLS termination at the Rancher server:
- [Rancher-generated TLS certificate](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/helm-rancher/#4-choose-your-ssl-configuration)
- [Let’s Encrypt](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/helm-rancher/#4-choose-your-ssl-configuration)
- [Bring your own certificate](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/helm-rancher/#4-choose-your-ssl-configuration)
#### Install cert-manager
This step is only required to use certificates issued by Rancher’s generated CA **`(ingress.tls.source=rancher)`** or to request Let’s Encrypt issued certificates **`(ingress.tls.source=letsEncrypt)`**.
[These instructions are adapted from the official cert-manager documentation.](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/helm-rancher/#5-install-cert-manager)
#### Install Rancher with Helm and Your Chosen Certificate Option
- [Rancher to generated certificates](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/helm-rancher/#6-install-rancher-with-helm-and-your-chosen-certificate-option)
```bash
helm install rancher rancher-latest/rancher \
--namespace cattle-system \
--set hostname=rancher.my.org
```
- [Let’s Encrypt](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/helm-rancher/#6-install-rancher-with-helm-and-your-chosen-certificate-option)
```bash
helm install rancher rancher-latest/rancher \
--namespace cattle-system \
--set hostname=rancher.my.org \
--set ingress.tls.source=letsEncrypt \
--set [email protected]
```
- [Certificates from Files](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/helm-rancher/#6-install-rancher-with-helm-and-your-chosen-certificate-option)
```bash
helm install rancher rancher-latest/rancher \
--namespace cattle-system \
--set hostname=rancher.my.org \
--set ingress.tls.source=secret
```
*If you are using a Private CA signed certificate , add **--set privateCA=true** to the command:`*
```bash
helm install rancher rancher-latest/rancher \
--namespace cattle-system \
--set hostname=rancher.my.org \
--set ingress.tls.source=secret \
--set privateCA=true
```
#### Verify that the Rancher Server is Successfully Deployed
After adding the secrets, check if Rancher was rolled out successfully:
```bash
kubectl -n cattle-system rollout status deploy/rancher
Waiting for deployment "rancher" rollout to finish: 0 of 3 updated replicas are available...
deployment "rancher" successfully rolled out
```
If you see the following **`error: error: deployment "rancher" exceeded its progress deadline`**, you can check the status of the deployment by running the following command:
```bash
kubectl -n cattle-system get deploy rancher
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
rancher 3 3 3 3 3m
```
It should show the same count for **`DESIRED`** and **`AVAILABLE`**.
#### Save Your Options
Make sure you save the **`--set`** options you used. You will need to use the same options when you upgrade Rancher to new versions with Helm.
#### Finishing Up
That’s it. You should have a functional Rancher server.
In a web browser, go to the DNS name that forwards traffic to your load balancer. Then you should be greeted by the colorful login page.
Doesn’t work? Take a look at the [Troubleshooting Page](https://rancher.com/docs/rancher/v2.x/en/installation/options/troubleshooting/)
***All of these intructions are defined in detailed in the [Rancher Documentation](https://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/helm-rancher/).***
### Helm Chart Options for Kubernetes Installations
The full [Helm Chart Options](https://rancher.com/docs/ra
没有合适的资源?快使用搜索试试~ 我知道了~
rancher-master.zip
共2000个文件
go:2421个
py:155个
yaml:98个
0 下载量 51 浏览量
2023-03-18
09:18:27
上传
评论
收藏 4.49MB ZIP 举报
温馨提示
简Rancher是一个开源项目,为在生产中部署容器提供了一个容器管理平台。
资源推荐
资源详情
资源评论
收起资源包目录
rancher-master.zip (2000个子文件)
zz_generated_deepcopy.go 289KB
metricExpression.go 144KB
zz_generated_pod_security_policy_template_project_binding_mock.go 77KB
zz_generated_namespaced_service_account_token_mock.go 72KB
zz_generated_project_role_template_binding_mock.go 70KB
zz_generated_cluster_role_template_binding_mock.go 70KB
zz_generated_namespaced_docker_credential_mock.go 70KB
zz_generated_deepcopy.go 70KB
zz_generated_pod_security_policy_template_mock.go 70KB
zz_generated_horizontal_pod_autoscaler_mock.go 69KB
zz_generated_cluster_registration_token_mock.go 69KB
zz_generated_source_code_provider_config_mock.go 69KB
zz_generated_cluster_template_revision_mock.go 69KB
zz_generated_multi_cluster_app_revision_mock.go 69KB
zz_generated_catalog_template_version_mock.go 68KB
zz_generated_namespaced_certificate_mock.go 68KB
zz_generated_replication_controller_mock.go 68KB
zz_generated_persistent_volume_claim_mock.go 68KB
zz_generated_project_network_policy_mock.go 67KB
zz_generated_source_code_repository_mock.go 67KB
zz_generated_source_code_credential_mock.go 67KB
zz_generated_cluster_user_attribute_mock.go 67KB
zz_generated_rke_k8s_service_option_mock.go 67KB
zz_generated_cluster_monitor_graph_mock.go 67KB
zz_generated_project_monitor_graph_mock.go 67KB
zz_generated_cis_benchmark_version_mock.go 67KB
zz_generated_service_account_token_mock.go 67KB
zz_generated_namespaced_basic_auth_mock.go 67KB
zz_generated_pod_security_policy_mock.go 66KB
zz_generated_source_code_provider_mock.go 66KB
zz_generated_cluster_role_binding_mock.go 66KB
zz_generated_project_alert_group_mock.go 66KB
zz_generated_global_dns_provider_mock.go 66KB
zz_generated_rke_k8s_system_image_mock.go 66KB
zz_generated_cluster_alert_group_mock.go 66KB
zz_generated_global_role_binding_mock.go 66KB
zz_generated_pipeline_execution_mock.go 66KB
zz_generated_namespaced_ssh_auth_mock.go 66KB
zz_generated_destination_rule_mock.go 65KB
drivers.pb.go 65KB
zz_generated_cluster_alert_rule_mock.go 65KB
zz_generated_project_alert_rule_mock.go 65KB
zz_generated_docker_credential_mock.go 65KB
zz_generated_cluster_auth_token_mock.go 65KB
zz_generated_virtual_service_mock.go 65KB
zz_generated_kontainer_driver_mock.go 65KB
zz_generated_cluster_template_mock.go 65KB
zz_generated_cloud_credential_mock.go 65KB
zz_generated_template_content_mock.go 65KB
zz_generated_template_version_mock.go 65KB
zz_generated_multi_cluster_app_mock.go 65KB
zz_generated_catalog_template_mock.go 65KB
zz_generated_pipeline_setting_mock.go 65KB
zz_generated_component_status_mock.go 65KB
zz_generated_service_monitor_mock.go 64KB
zz_generated_prometheus_rule_mock.go 64KB
zz_generated_cluster_logging_mock.go 64KB
zz_generated_project_logging_mock.go 64KB
zz_generated_cluster_catalog_mock.go 64KB
zz_generated_project_catalog_mock.go 64KB
zz_generated_fleet_workspace_mock.go 64KB
zz_generated_service_account_mock.go 64KB
zz_generated_network_policy_mock.go 64KB
zz_generated_compose_config_mock.go 64KB
zz_generated_user_attribute_mock.go 64KB
zz_generated_dynamic_schema_mock.go 64KB
zz_generated_monitor_metric_mock.go 64KB
zz_generated_resource_quota_mock.go 63KB
zz_generated_alertmanager_mock.go 63KB
zz_generated_storage_class_mock.go 63KB
zz_generated_project_alert_mock.go 63KB
zz_generated_node_template_mock.go 63KB
zz_generated_cluster_alert_mock.go 63KB
zz_generated_role_template_mock.go 63KB
zz_generated_group_member_mock.go 62KB
zz_generated_cluster_scan_mock.go 62KB
zz_generated_certificate_mock.go 62KB
zz_generated_app_revision_mock.go 62KB
zz_generated_cluster_role_mock.go 62KB
zz_generated_role_binding_mock.go 62KB
zz_generated_stateful_set_mock.go 62KB
zz_generated_prometheus_mock.go 62KB
zz_generated_preference_mock.go 62KB
zz_generated_global_role_mock.go 62KB
zz_generated_auth_config_mock.go 62KB
zz_generated_ldap_config_mock.go 62KB
zz_generated_node_driver_mock.go 62KB
zz_generated_etcd_backup_mock.go 62KB
zz_generated_api_service_mock.go 62KB
zz_generated_limit_range_mock.go 62KB
zz_generated_replica_set_mock.go 62KB
zz_generated_deployment_mock.go 62KB
zz_generated_global_dns_mock.go 61KB
zz_generated_principal_mock.go 61KB
zz_generated_cis_config_mock.go 61KB
zz_generated_saml_token_mock.go 61KB
zz_generated_basic_auth_mock.go 61KB
zz_generated_config_map_mock.go 61KB
zz_generated_namespace_mock.go 61KB
zz_generated_daemon_set_mock.go 61KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
m0_72731342
- 粉丝: 2
- 资源: 1832
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功