kubesphere-system ks-account-596657f8c6-fgsgs 0/1 Init:0/2 0 22m
kubesphere-system ks-apigateway-78bcdc8ffc-cm4qd 0/1 CrashLoopBackOff 9 22m
看describe wait-redis 已经running ,但是 ready 是 false
Name: ks-account-596657f8c6-fgsgs
Namespace: kubesphere-system
Priority: 0
Node: k8s-node1/192.168.0.161
Start Time: Sun, 16 Aug 2020 14:29:04 +0800
Labels: app=ks-account
pod-template-hash=596657f8c6
tier=backend
version=v2.1.1
Annotations: <none>
Status: Pending
IP: 10.244.0.10
IPs:
IP: 10.244.0.10
Controlled By: ReplicaSet/ks-account-596657f8c6
Init Containers:
wait-redis:
Container ID: docker://4feea55dd7f676e78ce41fc9ef281767223e86c1c0b3144f09e2a954a1f6b9a0
Image: alpine:3.10.4
Image ID: docker-pullable://alpine@sha256:7c3773f7bcc969f03f8f653910001d99a9d324b4b9caa008846ad2c3089f5a5f
Port: <none>
Host Port: <none>
Command:
sh
-c
until nc -z redis.kubesphere-system.svc 6379; do echo “waiting for redis”; sleep 2; done;
State: Running
Started: Sun, 16 Aug 2020 14:30:06 +0800
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kubesphere-token-h84hp (ro)
wait-ldap:
Container ID:
Image: alpine:3.10.4
Image ID:
Port: <none>
Host Port: <none>
Command:
sh
-c
until nc -z openldap.kubesphere-system.svc 389; do echo “waiting for ldap”; sleep 2; done;
State: Waiting
Reason: PodInitializing
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kubesphere-token-h84hp (ro)
Containers:
ks-account:
Container ID:
Image: kubesphere/ks-account:v2.1.1
Image ID:
Port: 9090/TCP
Host Port: 0/TCP
Command:
ks-iam
–logtostderr=true
–jwt-secret=$(JWT_SECRET)
–admin-password=$(ADMIN_PASSWORD)
–enable-multi-login=False
–token-idle-timeout=40m
–redis-url=redis://redis.kubesphere-system.svc:6379
–generate-kubeconfig=true
State: Waiting
Reason: PodInitializing
Ready: False
Restart Count: 0
Limits:
cpu: 1
memory: 500Mi
Requests:
cpu: 20m
memory: 100Mi
Environment:
KUBECTL_IMAGE: kubesphere/kubectl:v1.0.0
JWT_SECRET: <set to the key ‘jwt-secret’ in secret ‘ks-account-secret’> Optional: false
ADMIN_PASSWORD: <set to the key ‘admin-password’ in secret ‘ks-account-secret’> Optional: false
Mounts:
/etc/ks-iam from user-init (rw)
/etc/kubesphere from kubesphere-config (rw)
/etc/kubesphere/rules from policy-rules (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kubesphere-token-h84hp (ro)
Conditions:
Type Status
Initialized False
Ready False
ContainersReady False
PodScheduled True
Volumes:
policy-rules:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: policy-rules
Optional: false
user-init:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: user-init
Optional: false
kubesphere-config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: kubesphere-config
Optional: false
kubesphere-token-h84hp:
Type: Secret (a volume populated by a Secret)
SecretName: kubesphere-token-h84hp
Optional: false
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: CriticalAddonsOnly
node-role.kubernetes.io/master:NoSchedule
node.kubernetes.io/not-ready:NoExecute for 60s
node.kubernetes.io/unreachable:NoExecute for 60s
Events:
Type Reason Age From Message
Normal Scheduled 23m default-scheduler Successfully assigned kubesphere-system/ks-account-596657f8c6-fgsgs to k8s-node1
Normal Pulling 23m kubelet, k8s-node1 Pulling image “alpine:3.10.4”
Normal Pulled 22m kubelet, k8s-node1 Successfully pulled image “alpine:3.10.4”
Normal Created 22m kubelet, k8s-node1 Created container wait-redis
Normal Started 22m kubelet, k8s-node1 Started container wait-redis
怎么办啊,求大佬解决