Skip to content

Commit

Permalink
Merge pull request #125 from utilitywarehouse/tls-config
Browse files Browse the repository at this point in the history
Move TLS config to config file from flags
  • Loading branch information
george-angel authored May 19, 2020
2 parents 6955c85 + 4e1c408 commit 1f40ad9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions resources/master-kubelet-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ clusterDomain: "cluster.local"
${feature_gates == "" ? "" : "featureGates:\n ${feature_gates}"}
serializeImagePulls: false
staticPodPath: "/etc/kubernetes/manifests"
tlsCertFile: "/etc/kubernetes/ssl/kubelet.pem"
tlsPrivateKeyFile: "/etc/kubernetes/ssl/kubelet-key.pem"
cgroupDriver: systemd
2 changes: 0 additions & 2 deletions resources/master-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ ExecStart=${kubelet_binary_path} \
--cni-conf-dir=/etc/cni/net.d \
${cloud_provider == "" ? "" : "--cloud-provider=${cloud_provider}"} \
--lock-file=/var/run/lock/kubelet.lock \
--tls-cert-file=/etc/kubernetes/ssl/kubelet.pem \
--tls-private-key-file=/etc/kubernetes/ssl/kubelet-key.pem \
--exit-on-lock-contention \
--v=0
Restart=always
Expand Down
2 changes: 2 additions & 0 deletions resources/node-kubelet-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ clusterDomain: "cluster.local"
${feature_gates == "" ? "" : "featureGates:\n ${feature_gates}"}
serializeImagePulls: false
staticPodPath: "/etc/kubernetes/manifests"
tlsCertFile: "/etc/kubernetes/ssl/kubelet.pem"
tlsPrivateKeyFile: "/etc/kubernetes/ssl/kubelet-key.pem"
cgroupDriver: systemd

# Resource allocation
Expand Down
2 changes: 0 additions & 2 deletions resources/node-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ ExecStart=${kubelet_binary_path} \
%{ if taints != "" } --register-with-taints=${taints} \
%{ endif ~}
--lock-file=/var/run/lock/kubelet.lock \
--tls-cert-file=/etc/kubernetes/ssl/kubelet.pem \
--tls-private-key-file=/etc/kubernetes/ssl/kubelet-key.pem \
--v=0
Restart=always
RestartSec=10
Expand Down

0 comments on commit 1f40ad9

Please sign in to comment.