shaowenchen `[root@harbor kubesphere]# kubectl describe pods ks-account-7d57dc95fc-tq4px -n kubesphere-system
Name: ks-account-7d57dc95fc-tq4px
Namespace: kubesphere-system
Priority: 0
Node: k8s-node01/192.168.0.25
Start Time: Tue, 16 Jun 2020 15:19:34 +0800
Labels: app=ks-account
pod-template-hash=7d57dc95fc
tier=backend
version=v2.1.1
Annotations: <none>
Status: Pending
IP: 172.7.25.9
Controlled By: ReplicaSet/ks-account-7d57dc95fc
Init Containers:
wait-redis:
Container ID: docker://b20370e653b91190df3bcdb3eb426f2cfdc74dd263f960eec4b516178855c789
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: Terminated
Reason: Completed
Exit Code: 0
Started: Tue, 16 Jun 2020 15:19:35 +0800
Finished: Tue, 16 Jun 2020 15:20:45 +0800
Ready: True
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kubesphere-token-pgwxp (ro)
wait-ldap:
Container ID: docker://93029d91719f5e50b412025e991f3e450b5dcc887903f15778e95efebdcaa79c
Image: alpine:3.10.4
Image ID: docker-pullable://alpine@sha256:7c3773f7bcc969f03f8f653910001d99a9d324b4b9caa008846ad2c3089f5a5f
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: Running
Started: Tue, 16 Jun 2020 15:20:46 +0800
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kubesphere-token-pgwxp (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-pgwxp (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-pgwxp:
Type: Secret (a volume populated by a Secret)
SecretName: kubesphere-token-pgwxp
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 2m43s default-scheduler Successfully assigned kubesphere-system/ks-account-7d57dc95fc-tq4px to k8s-node01
Normal Pulled 2m42s kubelet, k8s-node01 Container image “alpine:3.10.4” already present on machine
Normal Created 2m42s kubelet, k8s-node01 Created container wait-redis
Normal Started 2m42s kubelet, k8s-node01 Started container wait-redis
Normal Pulled 91s kubelet, k8s-node01 Container image “alpine:3.10.4” already present on machine
Normal Created 91s kubelet, k8s-node01 Created container wait-ldap
Normal Started 91s kubelet, k8s-node01 Started container wait-lda`