Rancher 在 OpenSUSE 15.4 上安装失败(牛系统 CrashLoopBackOff)

问题描述 投票:0回答:1

我对 Kubernetes 很陌生,第一次使用 Rancher 安装集群。 错误:

kubectl -n cattle-system rollout status deploy/rancher
error: deployment "rancher" exceeded its progress deadline
kubectl -n cattle-system get events
LAST SEEN   TYPE      REASON              OBJECT                                         MESSAGE
53m         Normal    Scheduled           pod/rancher-86df5b74c9-244xx                   Successfully assigned cattle-system/rancher-86df5b74c9-244xx to opensuse-rancher3
53m         Normal    Pulling             pod/rancher-86df5b74c9-244xx                   Pulling image "rancher/rancher:v2.7.1"
52m         Normal    Pulled              pod/rancher-86df5b74c9-244xx                   Successfully pulled image "rancher/rancher:v2.7.1" in 1m10.457999849s
49m         Normal    Created             pod/rancher-86df5b74c9-244xx                   Created container rancher
50m         Normal    Started             pod/rancher-86df5b74c9-244xx                   Started container rancher
32m         Warning   Unhealthy           pod/rancher-86df5b74c9-244xx                   Readiness probe failed: Get "http://10.244.2.4:80/healthz": dial tcp 10.244.2.4:80: connect: connection refused
<cut>
53m         Warning   FailedCreate        replicaset/rancher-86df5b74c9                  Error creating: pods "rancher-86df5b74c9-" is forbidden: no PriorityClass with name rancher-critical was found
53m         Normal    SuccessfulCreate    replicaset/rancher-86df5b74c9                  Created pod: rancher-86df5b74c9-244xx
53m         Normal    SuccessfulCreate    replicaset/rancher-86df5b74c9                  Created pod: rancher-86df5b74c9-b7lw9
53m         Normal    SuccessfulCreate    replicaset/rancher-86df5b74c9                  Created pod: rancher-86df5b74c9-xctzx
53m         Normal    ScalingReplicaSet   deployment/rancher                             Scaled up replica set rancher-86df5b74c9 to 3
3m10s       Warning   ErrGetKeyPair       issuer/rancher                                 Error getting keypair for CA issuer: secret "tls-rancher" not found
3m10s       Warning   ErrInitIssuer       issuer/rancher                                 Error initializing issuer: secret "tls-rancher" not found
53m         Normal    CreateCertificate   ingress/rancher                                Successfully created Certificate "tls-rancher-ingress"
53m         Normal    IssuerNotReady      certificaterequest/tls-rancher-ingress-xwkqd   Referenced issuer does not have a Ready status condition
53m         Normal    cert-manager.io     certificaterequest/tls-rancher-ingress-xwkqd   Certificate request has been approved by cert-manager.io
53m         Normal    Issuing             certificate/tls-rancher-ingress                Issuing certificate as Secret does not exist
53m         Normal    Generated           certificate/tls-rancher-ingress                Stored new private key in temporary Secret resource "tls-rancher-ingress-nv74k"
53m         Normal    Requested           certificate/tls-rancher-ingress                Created new CertificateRequest resource "tls-rancher-ingress-xwkqd"
kubectl logs rancher-86df5b74c9-244xx -n cattle-system
2023/03/30 10:38:49 [INFO] Rancher version v2.7.1 (bb1c35fc4) is starting
2023/03/30 10:38:49 [INFO] Rancher arguments {ACMEDomains:[] AddLocal:true Embedded:false BindHost: HTTPListenPort:80 HTTPSListenPort:443 K8sMode:auto Debug:false Trace:false NoCACerts:false AuditLogPath:/var/log/auditlog/rancher-api-audit.log AuditLogMaxage:10 AuditLogMaxsize:100 AuditLogMaxbackup:10 AuditLevel:0 Features: ClusterRegistry:}
2023/03/30 10:38:49 [INFO] Listening on /tmp/log.sock
2023/03/30 10:38:49 [INFO] Running in clustered mode with ID 10.244.2.4, monitoring endpoint cattle-system/rancher
2023/03/30 10:38:50 [INFO] Applying CRD features.management.cattle.io
<cut>
2023/03/30 10:38:56 [INFO] Applying CRD machinesets.cluster.x-k8s.io
2023/03/30 10:39:08 [FATAL] error running the jail command: exit status 2

任何帮助将不胜感激..可能出了什么问题?

kubernetes rancher
1个回答
0
投票

我也遇到了完全相同的问题,它显示“获取 CA 颁发者的密钥对时出错:未找到秘密“tls-rancher””。你或任何人有解决办法吗?

© www.soinside.com 2019 - 2024. All rights reserved.