我的redis 是本地的 一个6978 端口的redis ,没密码,因为安装ha-redis 失败一次之后就再也没有安装了,于是手动搞了一个
接着是 describe pod 的内容
Name: ks-account-6979f89fd8-6vzct
Namespace: kubesphere-system
Priority: 0
Node: master03/10.5.8.102
Start Time: Wed, 05 Aug 2020 11:58:47 +0800
Labels: app=ks-account
pod-template-hash=6979f89fd8
tier=backend
version=v2.1.1
Annotations: kubectl.kubernetes.io/restartedAt: 2020-08-05T03:43:29Z
Status: Pending
IP: 10.244.2.81
IPs:
IP: 10.244.2.81
Controlled By: ReplicaSet/ks-account-6979f89fd8
Init Containers:
wait-redis:
Container ID: docker://44f9839194e939bfaaff08fd94c92b8c8c5b9738cb7d86d3741df25425f2bf2d
Image: alpine:3.10.4
Image ID: docker-pullable://alpine@sha256:7c3773f7bcc969f03f8f653910001d99a9d324b4b9caa008846ad2c3089f5a5f
Port: <none>
Host Port: <none>
Command:
sh
-c
until nc -z 10.5.2.11 6378; do echo "waiting for redis"; sleep 2; done;
State: Terminated
Reason: Completed
Exit Code: 0
Started: Wed, 05 Aug 2020 11:58:49 +0800
Finished: Wed, 05 Aug 2020 11:58:49 +0800
Ready: True
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kubesphere-token-lhhwj (ro)
wait-ldap:
Container ID: docker://be8c1b8f710dedb2a3820f914534e661b9d785134cc934635a794b1623762f67
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: Wed, 05 Aug 2020 11:58:49 +0800
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kubesphere-token-lhhwj (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://10.5.2.11:6378
--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-lhhwj (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-lhhwj:
Type: Secret (a volume populated by a Secret)
SecretName: kubesphere-token-lhhwj
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 <unknown> default-scheduler Successfully assigned kubesphere-system/ks-account-6979f89fd8-6vzct to master03
Normal Pulled 86s kubelet, master03 Container image "alpine:3.10.4" already present on machine
Normal Created 86s kubelet, master03 Created container wait-redis
Normal Started 85s kubelet, master03 Started container wait-redis
Normal Pulled 85s kubelet, master03 Container image "alpine:3.10.4" already present on machine
Normal Created 85s kubelet, master03 Created container wait-ldap
Normal Started 85s kubelet, master03 Started container wait-ldap