www/content/blog/kubernetes/single-node-cluster-taint.md

20 lines
472 B
Markdown

---
title: kubernetes single node cluster taint
date: 2020-12-06
description: How to schedule worker pods on your control plane node
tags:
- k3s
- kubernetes
---
## The solution
On a single node cluster, control plane nodes are tainted so that the cluster never schedules pods on them. To change that run :
```sh
kubectl taint nodes --all node-role.kubernetes.io/master-
```
Getting dns in your pods :
```sh
add --cluster-dns=10.96.0.10 to /etc/conf.d/kubelet
```