Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Fix bug in kubelet config
Browse files Browse the repository at this point in the history
  • Loading branch information
errm committed Dec 23, 2018
1 parent 03f011c commit 173d694
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pkg/system/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ authorization:
cacheAuthorizedTTL: 5m0s
cacheUnauthorizedTTL: 30s
clusterDomain: cluster.local
clusterDNS: "172.20.0.10"
clusterDNS: [172.20.0.10]
cgroupDriver: cgroupfs
featureGates:
RotateKubeletServerCertificate: true
serverTLSBootstrap: true
kubeReserved:
cpu: "70m"
memory: "1024Mi"
maxPods: "27"
cpu: 70m
memory: 1024Mi
maxPods: 27
evictionHard:
memory.available: 100Mi
nodefs.available: 10%
Expand Down
8 changes: 4 additions & 4 deletions pkg/system/templates/etc/kubernetes/kubelet/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ authorization:
cacheAuthorizedTTL: 5m0s
cacheUnauthorizedTTL: 30s
clusterDomain: cluster.local
clusterDNS: "{{.Node.ClusterDNS}}"
clusterDNS: [{{.Node.ClusterDNS}}]
cgroupDriver: cgroupfs
featureGates:
RotateKubeletServerCertificate: true
serverTLSBootstrap: true
{{- if and .Node.ReservedCPU .Node.ReservedMemory }}
kubeReserved:
cpu: "{{.Node.ReservedCPU}}"
memory: "{{.Node.ReservedMemory}}"
cpu: {{.Node.ReservedCPU}}
memory: {{.Node.ReservedMemory}}
{{ end -}}
maxPods: "{{.Node.MaxPods}}"
maxPods: {{.Node.MaxPods}}
evictionHard:
memory.available: 100Mi
nodefs.available: 10%
Expand Down

0 comments on commit 173d694

Please sign in to comment.