If you are using Kubernetes 1.7 and above:
kubectl taint node mymasternode node-role.kubernetes.io/master:NoSchedule-
More Related Contents:
- pod has unbound PersistentVolumeClaims
- How do I access the Kubernetes api from within a pod container?
- Expose port in minikube
- How kubectl port-forward works?
- chown: changing ownership of ‘/data/db’: Operation not permitted
- What’s the best way to share/mount one file into a pod?
- Mount local directory into pod in minikube
- Ingress vs Load Balancer
- Restart pods when configmap updates in Kubernetes?
- Invalid x509 certificate for kubernetes master
- Can a PVC be bound to a specific PV?
- How can I edit a Deployment without modify the file manually?
- Connect to local database from inside minikube cluster
- Inject node labels into Kubernetes pod
- Is it possible to Autoscale Akka
- Checking kubernetes pod CPU and memory
- Minikube expose MySQL running on localhost as service
- Adding insecure registry in containerd
- Namespace “stuck” as Terminating, How I removed it
- no matches for kind “Deployment” in version “extensions/v1beta1”
- How to rolling restart pods without changing deployment yaml in kubernetes?
- How to schedule pods restart
- What is the difference between a pod and a deployment?
- Restart container within pod
- How to get Kubernetes cluster name from K8s API
- Ingress configuration for k8s in different namespaces
- Is there a way to add arbitrary records to kube-dns?
- Kubernetes: Routing non HTTP Request via Ingress to Container
- How to Enable KubeAPI server for HPA Autoscaling Metrics
- How to know a Pod’s own IP address from inside a container in the Pod?