From 4637cd7f3005d9da3c87e4e324b757ba790fb095 Mon Sep 17 00:00:00 2001 From: Etienne Audet-Cobello Date: Thu, 13 Jun 2024 08:55:39 -0400 Subject: [PATCH] sort --- src/k8s/pkg/k8sd/setup/kube_apiserver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/k8s/pkg/k8sd/setup/kube_apiserver.go b/src/k8s/pkg/k8sd/setup/kube_apiserver.go index c6a881d8d..6de30ebea 100644 --- a/src/k8s/pkg/k8sd/setup/kube_apiserver.go +++ b/src/k8s/pkg/k8sd/setup/kube_apiserver.go @@ -64,6 +64,7 @@ func KubeAPIServer(snap snap.Snap, serviceCIDR string, authWebhookURL string, en args := map[string]string{ "--allow-privileged": "true", + "--anonymous-auth": "false", "--authentication-token-webhook-config-file": authTokenWebhookConfigFile, "--authorization-mode": authorizationMode, "--client-ca-file": path.Join(snap.KubernetesPKIDir(), "client-ca.crt"), @@ -72,6 +73,8 @@ func KubeAPIServer(snap snap.Snap, serviceCIDR string, authWebhookURL string, en "--kubelet-client-certificate": path.Join(snap.KubernetesPKIDir(), "apiserver-kubelet-client.crt"), "--kubelet-client-key": path.Join(snap.KubernetesPKIDir(), "apiserver-kubelet-client.key"), "--kubelet-preferred-address-types": "InternalIP,Hostname,InternalDNS,ExternalDNS,ExternalIP", + "--profiling": "false", + "--requests-timeout": "300s", "--secure-port": "6443", "--service-account-issuer": "https://kubernetes.default.svc", "--service-account-key-file": path.Join(snap.KubernetesPKIDir(), "serviceaccount.key"), @@ -80,9 +83,6 @@ func KubeAPIServer(snap snap.Snap, serviceCIDR string, authWebhookURL string, en "--tls-cert-file": path.Join(snap.KubernetesPKIDir(), "apiserver.crt"), "--tls-cipher-suites": strings.Join(apiserverTLSCipherSuites, ","), "--tls-private-key-file": path.Join(snap.KubernetesPKIDir(), "apiserver.key"), - "--anonymous-auth": "false", - "--profiling": "false", - "--requests-timeout": "300s", } switch datastore.GetType() {