Launch Your First Pod
$ cat <<EOF > /tmp/alpine.yml
apiVersion: v1
kind: Pod
metadata:
name: alpine
spec:
containers:
- name: alpine
image: alpine
EOF
$ pi create -f /tmp/alpine.yml
pod/alpineInspecting the pod
$ pi get pods alpine -o yaml
apiVersion: v1
kind: Pod
metadata:
annotations:
id: fba32f34a9b6716326445c7b39188d1856d5641fe86fb745bf5c18ba8e529124
sh_hyper_instancetype: s4
zone: gcp-us-central1-c
creationTimestamp: 2018-04-28T03:27:48Z
name: alpine
namespace: default
uid: 201c9851-4a94-11e8-a873-42010a7f0002
spec:
containers:
- image: alpine
name: alpine
resources: {}
nodeName: gcp-us-central1
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2018-04-28T03:27:48Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2018-04-28T03:27:52Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2018-04-28T03:27:48Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: hyper://e406ce32bd88321677cdb3c52f3c21329f0b4c47bd38ee17c709ffcbe1759a62
image: sha256:3fd9065eaf02feaf94d68376da52541925650b81698c53c6824d92ff63f98353
imageID: sha256:3fd9065eaf02feaf94d68376da52541925650b81698c53c6824d92ff63f98353
lastState: {}
name: alpine
ready: true
restartCount: 0
state:
running:
startedAt: 2018-04-28T03:27:52Z
phase: Running
podIP: 10.244.106.62
qosClass: Burstable
startTime: 2018-04-28T03:27:48ZInteracting with the pod
Cleaning up
How much did that cost?
Last updated