1 개요[ | ]
- kubectl describe sts
- kubectl describe statefulset
- kubectl describe statefulsets
Console
Copy
$ kubectl describe sts test
Name: test
Namespace: default
CreationTimestamp: Tue, 28 May 2019 15:09:31 +0800
Selector: app=test
Labels: app=test
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"apps/v1beta1","kind":"StatefulSet","metadata":{"annotations":{},"name":"test","namespace":"default"},"spec":{"replicas":2,"...
Replicas: 824633983536 desired | 1 total
Update Strategy: RollingUpdate
Partition: 824633984396
Pods Status: 0 Running / 0 Waiting / 0 Succeeded / 0 Failed
Pod Template:
Labels: app=test
Containers:
sts:
Image: bash:4.4
Port: <none>
Host Port: <none>
Command:
/bin/sleep
36000
Environment:
KEY2: (v1:status.hostIP)
KEY1: Value1
Mounts: <none>
Volumes: <none>
Volume Claims: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulCreate 8m8s statefulset-controller create Pod test-0 in StatefulSet test successful
Warning FailedCreate 15s (x16 over 73s) statefulset-controller create Pod test-0 in StatefulSet test failed error: Pod "test-0" is invalid: spec.containers[0].env[0].valueFrom: Invalid value: "": may not be specified when `value` is not empty
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.