Skip to content

Instantly share code, notes, and snippets.

@jbw976
Last active November 4, 2018 04:07
Show Gist options
  • Save jbw976/23d2a41835caf9f7475d2cab31448e89 to your computer and use it in GitHub Desktop.
Save jbw976/23d2a41835caf9f7475d2cab31448e89 to your computer and use it in GitHub Desktop.
> kubectl -n rook-minio get pod -o yaml
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
creationTimestamp: 2018-11-04T03:48:38Z
generateName: my-store-
labels:
app: minio
controller-revision-hash: my-store-5f9f9fdb85
statefulset.kubernetes.io/pod-name: my-store-0
name: my-store-0
namespace: rook-minio
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: StatefulSet
name: my-store
uid: 83621d67-dfe4-11e8-9208-080027990ffc
resourceVersion: "3268"
selfLink: /api/v1/namespaces/rook-minio/pods/my-store-0
uid: 836b4de5-dfe4-11e8-9208-080027990ffc
spec:
containers:
- args:
- server
- http://my-store-0.my-store.rook-minio/data
- http://my-store-1.my-store.rook-minio/data
- http://my-store-2.my-store.rook-minio/data
- http://my-store-3.my-store.rook-minio/data
command:
- /usr/bin/minio
env:
- name: MINIO_ACCESS_KEY
value: TEMP_DEMO_ACCESS_KEY
- name: MINIO_SECRET_KEY
value: TEMP_DEMO_SECRET_KEY
image: rook/minio:master
imagePullPolicy: IfNotPresent
name: minio
ports:
- containerPort: 9000
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
name: data
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-ch8g8
readOnly: true
dnsPolicy: ClusterFirst
hostname: my-store-0
nodeName: minikube
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
subdomain: my-store
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- name: data
persistentVolumeClaim:
claimName: data-my-store-0
- name: default-token-ch8g8
secret:
defaultMode: 420
secretName: default-token-ch8g8
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2018-11-04T03:48:38Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2018-11-04T03:48:38Z
message: 'containers with unready status: [minio]'
reason: ContainersNotReady
status: "False"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2018-11-04T03:48:38Z
message: 'containers with unready status: [minio]'
reason: ContainersNotReady
status: "False"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: 2018-11-04T03:48:38Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://5255cf5cf363f486d836f76b7900e0bb9dd1d0e59a55567cb7da01ef6c032ab3
image: build-6a9031da/minio-amd64:latest
imageID: docker://sha256:b8f09476ab3731c42598c669db8dcafa200f95874065022558a717b43e55f851
lastState:
terminated:
containerID: docker://5255cf5cf363f486d836f76b7900e0bb9dd1d0e59a55567cb7da01ef6c032ab3
exitCode: 1
finishedAt: 2018-11-04T03:51:38Z
reason: Error
startedAt: 2018-11-04T03:51:38Z
name: minio
ready: false
restartCount: 5
state:
waiting:
message: Back-off 2m40s restarting failed container=minio pod=my-store-0_rook-minio(836b4de5-dfe4-11e8-9208-080027990ffc)
reason: CrashLoopBackOff
hostIP: 10.0.2.15
phase: Running
podIP: 172.17.0.21
qosClass: BestEffort
startTime: 2018-11-04T03:48:38Z
kind: List
metadata:
resourceVersion: ""
selfLink: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment