i have 3 nodes
kubectl get nodes
NAME STATUS ROLES AGE VERSION
a1 Ready master 133m v1.18.6-gke.6600
a2 Ready master 132m v1.18.6-gke.6600
a3 Ready master 132m v1.18.6-gke.6600
so the status of that nodes is Ready I want to stop first node and again restart that nodes
i tried with
kubectl cordon a1
NAME STATUS ROLES AGE VERSION
a1 Ready,SchedulingDisabled master 138m v1.18.6-gke.6600
a2 Ready master 137m v1.18.6-gke.6600
a3 Ready master 137m v1.18.6-gke.6600
but my backend is still working and although if icordon all the nodes in that case also my backend is working i want my backend service will be stop and again resume i also tried with
kubectl drain a1
error: unable to drain node "abm-cp2", aborting command...
There are pending nodes to be drained:
a2
error: cannot delete DaemonSet-managed Pods (use --ignore-daemonsets to ignore): kube-system/anetd-4pr9j, kube-system/etcd-defrag-8fs99, kube-system/kube-proxy-8cgpf, kube-system/localpv-mlfnf, kube-system/metallb-speaker-ljsdv, kube-system/node-exporter-dfrnq, kube-system/stackdriver-log-forwarder-t5s88