Rancher Server 设置
- Rancher 版本:2.7.9
- 安装选项 (Docker install/Helm Chart): Helm Chart安装
- 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:
- 在线或离线部署:
下游集群信息
- Kubernetes 版本: 1.23
- Cluster Type (Local/Downstream):
- 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等):
用户信息
- 登录用户的角色是什么? (管理员/集群所有者/集群成员/项目所有者/项目成员/自定义):
- 如果自定义,自定义权限集:
问题描述:
helm安装,安装后状态都是running,但是域名访问404
重现步骤:
- Add the Helm Chart Repository
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
kubectl create namespace cattle-system
2.Adding TLS Secrets
kubectl -n cattle-system create secret tls tls-rancher-ingress
–cert=tls.crt
–key=tls.key
- Install Rancher with Helm and Your Chosen Certificate Option
helm install rancher rancher-stable/rancher
–namespace cattle-system
–set hostname=xxx.com.cn
–set bootstrapPassword=admin
–set ingress.tls.source=secret
- Verify that the Rancher Server,rancher版本(V2.7.9)
kubectl -n cattle-system rollout status deploy/rancher
Waiting for deployment “rancher” rollout to finish: 0 of 3 updated replicas are available…
6.启动异常
[root@master deployment]# kubectl get pod -n cattle-system
NAME READY STATUS RESTARTS AGE
[root@k8s-master-test01 ~]# kubectl get pod -n cattle-system
NAME READY STATUS RESTARTS AGE
rancher-8595cd5855-26tbv 0/1 CrashLoopBackOff 7 (22s ago) 14m
rancher-8595cd5855-6krvr 0/1 CrashLoopBackOff 7 (17s ago) 14m
rancher-8595cd5855-xtv9t 0/1 Error 7 (5m40s ago) 14m
日志:
2023/11/03 07:56:53 [FATAL] error running the jail command: exit status 2