Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make eviction and image GC settings consistent across kubeadm API versions #7364

Merged
merged 14 commits into from
Apr 2, 2020
14 changes: 10 additions & 4 deletions pkg/minikube/bootstrapper/bsutil/ktmpl/v1beta1.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,17 @@ networking:
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
imageGCHighThresholdPercent: 100
imageGCHighThresholdPercent: 70
medyagh marked this conversation as resolved.
Show resolved Hide resolved
EvictionSoft:
memory.available: "300mb"
nodefs.available: "30%"
nodefs.inodesFree: "20%"
imagefs.available: "30%"
evictionHard:
nodefs.available: "0%"
nodefs.inodesFree: "0%"
imagefs.available: "0%"
memory.available: "100mb"
nodefs.available: "10%"
nodefs.inodesFree: "5%"
imagefs.available: "10%"
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
Expand Down
33 changes: 32 additions & 1 deletion pkg/minikube/bootstrapper/bsutil/ktmpl/v1beta2.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,35 @@ networking:
dnsDomain: {{if .DNSDomain}}{{.DNSDomain}}{{else}}cluster.local{{end}}
podSubnet: "{{.PodSubnet }}"
serviceSubnet: {{.ServiceCIDR}}
`))
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
imageGCHighThresholdPercent: 70
medyagh marked this conversation as resolved.
Show resolved Hide resolved
EvictionSoft
memory.available: "300mb"
nodefs.available: "30%"
nodefs.inodesFree: "20%"
imagefs.available: "30%"
evictionHard:
memory.available: "100mb"
nodefs.available: "10%"
nodefs.inodesFree: "5%"
imagefs.available: "10%"
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
imageGCHighThresholdPercent: 70
EvictionSoft:
memory.available: "300mb"
nodefs.available: "30%"
nodefs.inodesFree: "20%"
imagefs.available: "30%"
evictionHard:
memory.available: "100mb"
nodefs.available: "10%"
nodefs.inodesFree: "5%"
imagefs.available: "10%"
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
metricsBindAddress: {{.AdvertiseAddress}}:10249
`))