Skip to content

Instantly share code, notes, and snippets.

@peterzhu2118
Created January 31, 2018 03:37
Show Gist options
  • Save peterzhu2118/99b2bc27f8cbbae4e221fbe0af3d8cbf to your computer and use it in GitHub Desktop.
Save peterzhu2118/99b2bc27f8cbbae4e221fbe0af3d8cbf to your computer and use it in GitHub Desktop.
Shopify Production Engineering Summer Internship 2k18
C:\WINDOWS\system32>kubectl describe --namespace=hello-rails deployments -n hello-rails
Name: hello-rails
Namespace: hello-rails
CreationTimestamp: Tue, 30 Jan 2018 22:07:52 -0500
Labels: app=hello-rails
Annotations: deployment.kubernetes.io/revision=1
Selector: app=hello-rails
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 1 max unavailable, 1 max surge
Pod Template:
Labels: app=hello-rails
Containers:
hello-rails:
Image: benjamincaldwell/hello-docker-rails
Port: <none>
Environment:
MYSQL_HOST: mysql.mysql-db
Mounts: <none>
Volumes: <none>
Conditions:
Type Status Reason
---- ------ ------
Available True MinimumReplicasAvailable
OldReplicaSets: <none>
NewReplicaSet: hello-rails-3976704271 (1/1 replicas created)
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason
Message
--------- -------- ----- ---- ------------- -------- ------
-------
19m 19m 1 deployment-controller Normal ScalingReplicaSet
Scaled up replica set hello-rails-3976704271 to 1
C:\WINDOWS\system32>kubectl --namespace=hello-rails describe deployments -n hello-rails
Name: hello-rails
Namespace: hello-rails
CreationTimestamp: Tue, 30 Jan 2018 22:07:52 -0500
Labels: app=hello-rails
Annotations: deployment.kubernetes.io/revision=1
Selector: app=hello-rails
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 1 max unavailable, 1 max surge
Pod Template:
Labels: app=hello-rails
Containers:
hello-rails:
Image: benjamincaldwell/hello-docker-rails
Port: <none>
Environment:
MYSQL_HOST: mysql.mysql-db
Mounts: <none>
Volumes: <none>
Conditions:
Type Status Reason
---- ------ ------
Available True MinimumReplicasAvailable
OldReplicaSets: <none>
NewReplicaSet: hello-rails-3976704271 (1/1 replicas created)
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason
Message
--------- -------- ----- ---- ------------- -------- ------
-------
19m 19m 1 deployment-controller Normal ScalingReplicaSet
Scaled up replica set hello-rails-3976704271 to 1
C:\WINDOWS\system32>kubectl --namespace=hello-rails describe pods
Name: hello-rails-3976704271-d1j3w
Namespace: hello-rails
Node: minikube/192.168.0.102
Start Time: Tue, 30 Jan 2018 22:07:52 -0500
Labels: app=hello-rails
pod-template-hash=3976704271
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"hello-rails","name":"hello-rails-3976704271","uid":"ecdc4db2-0633-11e8-be9d-00155...
Status: Running
IP: 172.17.0.3
Created By: ReplicaSet/hello-rails-3976704271
Controlled By: ReplicaSet/hello-rails-3976704271
Containers:
hello-rails:
Container ID: docker://5f4f41503e113829fb54cc4016724610fae2baaa825c8e5bf462b7f7ebbdc15e
Image: benjamincaldwell/hello-docker-rails
Image ID: docker-pullable://benjamincaldwell/hello-docker-rails@sha256:80013937f9d037e2e5406dff4ce6f16f80ae0c2f166a49629ac947cdba450696
Port: <none>
State: Running
Started: Tue, 30 Jan 2018 22:35:31 -0500
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Tue, 30 Jan 2018 22:35:06 -0500
Finished: Tue, 30 Jan 2018 22:35:13 -0500
Ready: True
Restart Count: 2
Environment:
MYSQL_HOST: mysql.mysql-db
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-zn0bh (ro)
Conditions:
Type Status
Initialized True
Ready True
PodScheduled True
Volumes:
default-token-zn0bh:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-zn0bh
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: <none>
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
28m 28m 1 default-scheduler Normal Scheduled Successfully assigned hello-rails-3976704271-d1j3w to minikube
28m 28m 1 kubelet, minikube Normal SuccessfulMountVolume MountVolume.SetUp succeeded for volume "default-token-zn0bh"
28m 28m 1 kubelet, minikube spec.containers{hello-rails} Normal Pulling pulling image "benjamincaldwell/hello-docker-rails"
28m 28m 1 kubelet, minikube spec.containers{hello-rails} Normal Pulled Successfully pulled image "benjamincaldwell/hello-docker-rails"
28m 28m 1 kubelet, minikube spec.containers{hello-rails} Normal Created Created container
28m 28m 1 kubelet, minikube spec.containers{hello-rails} Normal Started Started container
59s 59s 1 kubelet, minikube Normal SuccessfulMountVolume MountVolume.SetUp succeeded for volume "default-token-zn0bh"
59s 59s 1 kubelet, minikube Normal SandboxChanged Pod sandbox changed, it will be killed and re-created.
48s 48s 1 kubelet, minikube spec.containers{hello-rails} Warning BackOff Back-off restarting failed container
48s 48s 1 kubelet, minikube Warning FailedSync Error syncing pod
59s 33s 2 kubelet, minikube spec.containers{hello-rails} Normal Pulling pulling image "benjamincaldwell/hello-docker-rails"
57s 31s 2 kubelet, minikube spec.containers{hello-rails} Normal Pulled Successfully pulled image "benjamincaldwell/hello-docker-rails"
57s 31s 2 kubelet, minikube spec.containers{hello-rails} Normal Created Created container
56s 31s 2 kubelet, minikube spec.containers{hello-rails} Normal Started Started container
C:\WINDOWS\system32>kubectl --namespace=mysql-db describe deployments -n mysql-db
Name: mysql
Namespace: mysql-db
CreationTimestamp: Tue, 30 Jan 2018 21:56:00 -0500
Labels: app=mysql
Annotations: deployment.kubernetes.io/revision=1
Selector: app=mysql
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 1 max unavailable, 1 max surge
Pod Template:
Labels: app=mysql
Containers:
mysql:
Image: mysql
Port: <none>
Environment:
MYSQL_ALLOW_EMPTY_PASSWORD: true
Mounts: <none>
Volumes: <none>
Conditions:
Type Status Reason
---- ------ ------
Available True MinimumReplicasAvailable
OldReplicaSets: <none>
NewReplicaSet: mysql-864675043 (1/1 replicas created)
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
35m 35m 1 deployment-controller Normal ScalingReplicaSet Scaled up replica set mysql-864675043 to 1
C:\WINDOWS\system32>kubectl --namespace=mysql-db describe pods
Name: mysql-864675043-dfmld
Namespace: mysql-db
Node: minikube/192.168.0.102
Start Time: Tue, 30 Jan 2018 21:56:00 -0500
Labels: app=mysql
pod-template-hash=864675043
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"mysql-db","name":"mysql-864675043","uid":"44bc1b91-0632-11e8-be9d-00155d006604","...
Status: Running
IP: 172.17.0.2
Created By: ReplicaSet/mysql-864675043
Controlled By: ReplicaSet/mysql-864675043
Containers:
mysql:
Container ID: docker://42327135e4762c1ccb221acf4e6acc58bcc6b19be0a06964b04221fc235d1533
Image: mysql
Image ID: docker-pullable://mysql@sha256:7cdb08f30a54d109ddded59525937592cb6852ff635a546626a8960d9ec34c30
Port: <none>
State: Running
Started: Tue, 30 Jan 2018 21:56:02 -0500
Ready: True
Restart Count: 0
Environment:
MYSQL_ALLOW_EMPTY_PASSWORD: true
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-q5dg3 (ro)
Conditions:
Type Status
Initialized True
Ready True
PodScheduled True
Volumes:
default-token-q5dg3:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-q5dg3
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: <none>
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
36m 36m 1 default-scheduler Normal Scheduled Successfully assigned mysql-864675043-dfmld to minikube
36m 36m 1 kubelet, minikube Normal SuccessfulMountVolume MountVolume.SetUp succeeded for volume "default-token-q5dg3"
36m 36m 1 kubelet, minikube spec.containers{mysql} Normal Pulling pulling image "mysql"
36m 36m 1 kubelet, minikube spec.containers{mysql} Normal Pulled Successfully pulled image "mysql"
36m 36m 1 kubelet, minikube spec.containers{mysql} Normal Created Created container
36m 36m 1 kubelet, minikube spec.containers{mysql} Normal Started Started container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment