Created
February 21, 2018 07:53
-
-
Save tyndyll/4670b7990b572987535d94415b72cb75 to your computer and use it in GitHub Desktop.
Getting Latest Kubernetes Deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ Desktop kubectl get deployments kubia -o yaml | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "3" | |
creationTimestamp: 2018-02-20T20:05:14Z | |
generation: 4 | |
labels: | |
app: kubia-go | |
name: kubia | |
namespace: default | |
resourceVersion: "8024" | |
selfLink: /apis/extensions/v1beta1/namespaces/default/deployments/kubia | |
uid: 5d2b1458-1679-11e8-96ce-0800273403fe | |
spec: | |
progressDeadlineSeconds: 600 | |
replicas: 3 | |
revisionHistoryLimit: 2 | |
selector: | |
matchLabels: | |
app: kubia-go | |
strategy: | |
rollingUpdate: | |
maxSurge: 25% | |
maxUnavailable: 25% | |
type: RollingUpdate | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: kubia-go | |
name: kubia-go | |
spec: | |
containers: | |
- image: tyndyll/kubia-go:v1 | |
imagePullPolicy: IfNotPresent | |
name: kubia-go | |
resources: {} | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
terminationGracePeriodSeconds: 30 | |
status: | |
availableReplicas: 3 | |
conditions: | |
- lastTransitionTime: 2018-02-20T20:05:14Z | |
lastUpdateTime: 2018-02-20T20:10:15Z | |
message: ReplicaSet "kubia-94f74b6c5" has successfully progressed. | |
reason: NewReplicaSetAvailable | |
status: "True" | |
type: Progressing | |
- lastTransitionTime: 2018-02-21T07:49:56Z | |
lastUpdateTime: 2018-02-21T07:49:56Z | |
message: Deployment has minimum availability. | |
reason: MinimumReplicasAvailable | |
status: "True" | |
type: Available | |
observedGeneration: 4 | |
readyReplicas: 3 | |
replicas: 3 | |
updatedReplicas: 3 | |
➜ Desktop kubectl set image deployment kubia \ | |
kubia-go=tyndyll/kubia-go:v2 \ | |
--record | |
deployment "kubia" image updated | |
➜ Desktop kubectl get deployments kubia -o yaml | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "4" | |
kubernetes.io/change-cause: kubectl set image deployment kubia kubia-go=tyndyll/kubia-go:v2 | |
--record=true | |
creationTimestamp: 2018-02-20T20:05:14Z | |
generation: 6 | |
labels: | |
app: kubia-go | |
name: kubia | |
namespace: default | |
resourceVersion: "8176" | |
selfLink: /apis/extensions/v1beta1/namespaces/default/deployments/kubia | |
uid: 5d2b1458-1679-11e8-96ce-0800273403fe | |
spec: | |
progressDeadlineSeconds: 600 | |
replicas: 3 | |
revisionHistoryLimit: 2 | |
selector: | |
matchLabels: | |
app: kubia-go | |
strategy: | |
rollingUpdate: | |
maxSurge: 25% | |
maxUnavailable: 25% | |
type: RollingUpdate | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: kubia-go | |
name: kubia-go | |
spec: | |
containers: | |
- image: tyndyll/kubia-go:v2 | |
imagePullPolicy: IfNotPresent | |
name: kubia-go | |
resources: {} | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
terminationGracePeriodSeconds: 30 | |
status: | |
availableReplicas: 3 | |
conditions: | |
- lastTransitionTime: 2018-02-21T07:49:56Z | |
lastUpdateTime: 2018-02-21T07:49:56Z | |
message: Deployment has minimum availability. | |
reason: MinimumReplicasAvailable | |
status: "True" | |
type: Available | |
- lastTransitionTime: 2018-02-20T20:05:14Z | |
lastUpdateTime: 2018-02-21T07:52:04Z | |
message: ReplicaSet "kubia-6f948949b6" is progressing. | |
reason: ReplicaSetUpdated | |
status: "True" | |
type: Progressing | |
observedGeneration: 6 | |
readyReplicas: 3 | |
replicas: 4 | |
unavailableReplicas: 1 | |
updatedReplicas: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment