忘记贴这个输出了,现在补上。
对这行感到陌生
Annotations: kubernetes.io/limit-ranger: LimitRanger plugin set: memory request for container pd; memory limit for container pd
Name: basic-pd-0
Namespace: tidb-cluster
Priority: 0
Node: node193.169.203.15/193.169.203.15
Start Time: Thu, 25 Aug 2022 17:30:40 +0800
Labels: app.kubernetes.io/component=pd
app.kubernetes.io/instance=basic
app.kubernetes.io/managed-by=tidb-operator
app.kubernetes.io/name=tidb-cluster
controller-revision-hash=basic-pd-766b5cb86
statefulset.kubernetes.io/pod-name=basic-pd-0
Annotations: kubernetes.io/limit-ranger: LimitRanger plugin set: memory request for container pd; memory limit for container pd
prometheus.io/path: /metrics
prometheus.io/port: 2379
prometheus.io/scrape: true
Status: Running
IP: 10.0.5.139
IPs:
IP: 10.0.5.139
Controlled By: StatefulSet/basic-pd
Containers:
pd:
Container ID: docker://fc892a76a59b1eef82f45e9c54281aeee3495601e874d3ca3ad9ff6f2dafe597
Image: pingcap/pd:v5.2.1
Image ID: docker-pullable://pingcap/pd@sha256:e9766de6a85d3f262ac016e9a2421c8099f445eb70aba0741fbf8b7932ea117d
Ports: 2380/TCP, 2379/TCP
Host Ports: 0/TCP, 0/TCP
Command:
/bin/sh
/usr/local/bin/pd_start_script.sh
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: Error
Exit Code: 2
Started: Thu, 25 Aug 2022 22:17:37 +0800
Finished: Thu, 25 Aug 2022 22:17:52 +0800
Ready: False
Restart Count: 58
Limits:
memory: 24Gi
Requests:
memory: 4Gi
Environment:
NAMESPACE: tidb-cluster (v1:metadata.namespace)
PEER_SERVICE_NAME: basic-pd-peer
SERVICE_NAME: basic-pd
SET_NAME: basic-pd
TZ: UTC
Mounts:
/etc/pd from config (ro)
/etc/podinfo from annotations (ro)
/usr/local/bin from startup-script (ro)
/var/lib/pd from pd (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-8ntz6 (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
pd:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: pd-basic-pd-0
ReadOnly: false
annotations:
Type: DownwardAPI (a volume populated by information about the pod)
Items:
metadata.annotations -> annotations
config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: basic-pd-3731616
Optional: false
startup-script:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: basic-pd-3731616
Optional: false
default-token-8ntz6:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-8ntz6
Optional: false
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Pulled 38m (x52 over 4h48m) kubelet Container image "pingcap/pd:v5.2.1" already present on machine
Warning BackOff 3m48s (x1242 over 4h48m) kubelet Back-off restarting failed container