1 Name: mysql
2 Namespace: default
3 CreationTimestamp: Tue, 01 Nov 2016 11:18:45 -0700
4 Labels: app=mysql
5 Annotations: deployment.kubernetes.io/revision=1
6 Selector: app=mysql
7 Replicas: 1 desired | 1 updated | 1 total | 0 available | 1 unavailable
8 StrategyType: Recreate
9 MinReadySeconds: 0
10 Pod Template:
11 Labels: app=mysql
12 Containers:
13 mysql:
14 Image: mysql:5.6
15 Port: 3306/TCP
16 Environment:
17 MYSQL_ROOT_PASSWORD: password
18 Mounts:
19 /var/lib/mysql from mysql-persistent-storage (rw)
20 Volumes:
21 mysql-persistent-storage:
22 Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
23 ClaimName: mysql-pv-claim
24 ReadOnly: false
25 Conditions:
26 Type Status Reason
27 ---- ------ ------
28 Available False MinimumReplicasUnavailable
29 Progressing True ReplicaSetUpdated
30 OldReplicaSets: <none>
31 NewReplicaSet: mysql-63082529 (1/1 replicas created)
32 Events:
33 FirstSeen LastSeen Count From SubobjectPath Type Reason Message
34 --------- -------- ----- ---- ------------- -------- ------ -------
35 33s 33s 1 {deployment-controller } Normal ScalingReplicaSet Scaled up replica set mysql-63082529 to 1
36
1 kubectl apply -f https://k8s.io/examples/application/mysql/mysql-deployment.yaml
2