@@ -92,15 +92,14 @@ Namespace: default
92
92
Selector: tier=frontend
93
93
Labels: app=guestbook
94
94
tier=frontend
95
- Annotations: kubectl.kubernetes.io/last-applied-configuration:
96
- {"apiVersion":"apps/v1","kind":"ReplicaSet","metadata":{"annotations":{},"labels":{"app":"guestbook","tier":"frontend"},"name":"frontend",...
95
+ Annotations: <none>
97
96
Replicas: 3 current / 3 desired
98
97
Pods Status: 3 Running / 0 Waiting / 0 Succeeded / 0 Failed
99
98
Pod Template:
100
99
Labels: tier=frontend
101
100
Containers:
102
101
php-redis:
103
- Image: gcr.io/google_samples/ gb-frontend:v3
102
+ Image: us-docker.pkg.dev/google-samples/containers/gke/ gb-frontend:v5
104
103
Port: <none>
105
104
Host Port: <none>
106
105
Environment: <none>
@@ -109,9 +108,9 @@ Pod Template:
109
108
Events:
110
109
Type Reason Age From Message
111
110
---- ------ ---- ---- -------
112
- Normal SuccessfulCreate 117s replicaset-controller Created pod: frontend-wtsmm
113
- Normal SuccessfulCreate 116s replicaset-controller Created pod: frontend-b2zdv
114
- Normal SuccessfulCreate 116s replicaset-controller Created pod: frontend-vcmts
111
+ Normal SuccessfulCreate 13s replicaset-controller Created pod: frontend-gbgfx
112
+ Normal SuccessfulCreate 13s replicaset-controller Created pod: frontend-rwz57
113
+ Normal SuccessfulCreate 13s replicaset-controller Created pod: frontend-wkl7w
115
114
```
116
115
117
116
And lastly you can check for the Pods brought up:
@@ -124,16 +123,16 @@ You should see Pod information similar to:
124
123
125
124
```
126
125
NAME READY STATUS RESTARTS AGE
127
- frontend-b2zdv 1/1 Running 0 6m36s
128
- frontend-vcmts 1/1 Running 0 6m36s
129
- frontend-wtsmm 1/1 Running 0 6m36s
126
+ frontend-gbgfx 1/1 Running 0 10m
127
+ frontend-rwz57 1/1 Running 0 10m
128
+ frontend-wkl7w 1/1 Running 0 10m
130
129
```
131
130
132
131
You can also verify that the owner reference of these pods is set to the frontend ReplicaSet.
133
132
To do this, get the yaml of one of the Pods running:
134
133
135
134
``` shell
136
- kubectl get pods frontend-b2zdv -o yaml
135
+ kubectl get pods frontend-gbgfx -o yaml
137
136
```
138
137
139
138
The output will look similar to this, with the frontend ReplicaSet's info set in the metadata's ownerReferences field:
@@ -142,19 +141,19 @@ The output will look similar to this, with the frontend ReplicaSet's info set in
142
141
apiVersion : v1
143
142
kind : Pod
144
143
metadata :
145
- creationTimestamp : " 2020 -02-12T07:06:16Z "
144
+ creationTimestamp : " 2024 -02-28T22:30:44Z "
146
145
generateName : frontend-
147
146
labels :
148
147
tier : frontend
149
- name : frontend-b2zdv
148
+ name : frontend-gbgfx
150
149
namespace : default
151
150
ownerReferences :
152
151
- apiVersion : apps/v1
153
152
blockOwnerDeletion : true
154
153
controller : true
155
154
kind : ReplicaSet
156
155
name : frontend
157
- uid : f391f6db-bb9b-4c09-ae74-6a1f77f3d5cf
156
+ uid : e129deca-f864-481b-bb16-b27abfd92292
158
157
...
159
158
```
160
159
0 commit comments