Skip to content

Commit

Permalink
disable hard eviction by default
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Feb 12, 2019
1 parent 17c3fc4 commit 7001e02
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/cluster/internal/kubeadm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ apiServerExtraVolumes:
# so we need to ensure the cert is valid for localhost so we can talk
# to the cluster after rewriting the kubeconfig to point to localhost
apiServerCertSANs: [localhost]
kubeletConfiguration:
baseConfig:
evictionHard:
memory.available: "1"
nodefs.available: "0%"
nodefs.inodesFree: "0%"
imagefs.available: "0%"
`

// ConfigTemplateAlphaV3 is the kubadm config template for API version v1alpha3
Expand Down Expand Up @@ -131,6 +138,11 @@ kind: JoinConfiguration
# no-op entry that exists soley so it can be patched
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
evictionHard:
memory.available: "1"
nodefs.available: "0%"
nodefs.inodesFree: "0%"
imagefs.available: "0%"
---
# no-op entry that exists soley so it can be patched
apiVersion: kubeproxy.config.k8s.io/v1alpha1
Expand Down Expand Up @@ -169,6 +181,11 @@ kind: JoinConfiguration
# no-op entry that exists soley so it can be patched
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
evictionHard:
memory.available: "1"
nodefs.available: "0%"
nodefs.inodesFree: "0%"
imagefs.available: "0%"
---
# no-op entry that exists soley so it can be patched
apiVersion: kubeproxy.config.k8s.io/v1alpha1
Expand Down

0 comments on commit 7001e02

Please sign in to comment.