You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/concepts/pages/operations/pod_disruptions.adoc
+6-16Lines changed: 6 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,26 +136,16 @@ If you encounter this only manually deleting those pods can help out of this sit
136
136
A Pod deletion (other than evictions) does *not* respect PDBs, so the Pods can be restarted anyway.
137
137
All restarted Pods will get a new certificate, the stacklet should turn healthy again.
138
138
139
-
==== k9s
140
-
If you are using `k9s` you can start it in your terminal
139
+
=== Restore working state
140
+
Delete pods with e.g. `kubectl``.
141
141
[source, bash]
142
142
----
143
-
k9s
143
+
kubectl delete pod -l app.kubernetes.io/name=zookeeper,app.kubernetes.io/instance=simple-zk
144
+
pod "simple-zk-server-default-0" deleted
145
+
pod "simple-zk-server-default-1" deleted
146
+
pod "simple-zk-server-default-2" deleted
144
147
----
145
-
and type `0` to view all namespaces and then type e.g. `/zookeeper` and hit enter. Go with up and down to your pod and press `CTL + D` and confirm to delete the pod. Repeat with all other instances of the stuck product.
146
148
147
-
==== kubectl
148
-
List your pods with
149
-
[source, bash]
150
-
----
151
-
kubectl get pods -A
152
-
----
153
-
and copy the name of the pod you want to delete. Type
154
-
[source, bash]
155
-
----
156
-
kubectl delete pod zookeeper-server-default-0
157
-
----
158
-
to delete the instance with the name `zookeeper-server-default-0`. Repeat it for all instances of your product.
159
149
160
150
=== Preventing this situation
161
151
The best measure is to make sure that commons-operator is always running, so that it can restart the Pods before the certificates expire.
0 commit comments