blob: 5b80598813f4c2ace6957c667c2b3fba1b57be31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---
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 :
{{< highlight sh >}}
kubectl taint nodes --all node-role.kubernetes.io/master-
{{< /highlight >}}
Getting dns in your pods :
{{< highlight sh >}}
add --cluster-dns=10.96.0.10 to /etc/conf.d/kubelet
{{< /highlight >}}
|