File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
cmd/kubeadm/app/componentconfigs Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ limitations under the License.
17
17
package componentconfigs
18
18
19
19
import (
20
+ "path/filepath"
21
+
20
22
kubeproxyconfigv1alpha1 "k8s.io/kube-proxy/config/v1alpha1"
21
23
kubeletconfigv1beta1 "k8s.io/kubelet/config/v1beta1"
22
24
kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
@@ -88,7 +90,7 @@ func DefaultKubeletConfiguration(internalcfg *kubeadmapi.ClusterConfiguration) {
88
90
// Enforce security-related kubelet options
89
91
90
92
// Require all clients to the kubelet API to have client certs signed by the cluster CA
91
- externalkubeletcfg .Authentication .X509 .ClientCAFile = kubeadmapiv1beta1 . DefaultCACertPath
93
+ externalkubeletcfg .Authentication .X509 .ClientCAFile = filepath . Join ( internalcfg . CertificatesDir , constants . CACertName )
92
94
externalkubeletcfg .Authentication .Anonymous .Enabled = utilpointer .BoolPtr (false )
93
95
94
96
// On every client request to the kubelet API, execute a webhook (SubjectAccessReview request) to the API server
You can’t perform that action at this time.
0 commit comments