File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
content/en/docs/reference/setup-tools/kubeadm Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,17 @@ etcdctl del "" --prefix
34
34
35
35
See the [ etcd documentation] ( https://github.com/coreos/etcd/tree/master/etcdctl ) for more information.
36
36
37
+ ### Graceful kube-apiserver shutdown
38
+
39
+ If you have your ` kube-apiserver ` configured with the ` --shutdown-delay-duration ` flag,
40
+ you can run the following commands to attempt a graceful shutdown for the running API server Pod,
41
+ before you run ` kubeadm reset ` :
42
+
43
+ ``` bash
44
+ yq eval -i ' .spec.containers[0].command = []' /etc/kubernetes/manifests/kube-apiserver.yaml
45
+ timeout 60 sh -c ' while pgrep kube-apiserver >/dev/null; do sleep 1; done' || true
46
+ ```
47
+
37
48
## {{% heading "whatsnext" %}}
38
49
39
50
* [ kubeadm init] ( /docs/reference/setup-tools/kubeadm/kubeadm-init/ ) to bootstrap a Kubernetes control-plane node
You can’t perform that action at this time.
0 commit comments