Skip to content

Commit

Permalink
Fix 1.9.x versions of Kubernetes.
Browse files Browse the repository at this point in the history
This was a silly typo on my part.
  • Loading branch information
dlorenc committed May 10, 2018
1 parent d7c90bc commit fe971d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/minikube/bootstrapper/kubeadm/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ nodeName: {{.NodeName}}
{{end}}`))

var kubeletSystemdTemplate = template.Must(template.New("kubeletSystemdTemplate").Parse(`
[Unit]
{{if or (eq .ContainerRuntime "cri-o") (eq .ContainerRuntime "cri")}}Wants=crio.service{{else}}Wants=docker.socket{{end}}
[Service]
ExecStart=
ExecStart=/usr/bin/kubelet {{.ExtraOptions}} {{if .FeatureGates}}--feature-gates={{.FeatureGates}}{{end}}
[Install]
{{if or (eq .ContainerRuntime "cri-o") (eq .ContainerRuntime "cri")}}Wants=crio.service{{else}}Wants=docker.socket{{end}}
`))

const kubeletService = `
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/bootstrapper/kubeadm/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ var versionSpecificOpts = []VersionedExtraOption{
NewUnversionedOption(Kubelet, "bootstrap-kubeconfig", "/etc/kubernetes/bootstrap-kubelet.conf"),
{
Option: util.ExtraOption{
Component: Apiserver,
Component: Kubelet,
Key: "require-kubeconfig",
Value: "true",
},
Expand Down

0 comments on commit fe971d8

Please sign in to comment.