From d18e7ff9758260a57fe4176d04a3413892f66163 Mon Sep 17 00:00:00 2001 From: Zeng Xu Date: Thu, 11 May 2023 06:46:58 +0000 Subject: [PATCH] serve port 443 -> 6443 --- api-aggregation-lib/foo.kubeconfig | 2 +- api-aggregation-lib/pkg/cmd/start.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api-aggregation-lib/foo.kubeconfig b/api-aggregation-lib/foo.kubeconfig index 206b88d..70b7021 100644 --- a/api-aggregation-lib/foo.kubeconfig +++ b/api-aggregation-lib/foo.kubeconfig @@ -2,7 +2,7 @@ apiVersion: v1 clusters: - cluster: certificate-authority: ./apiserver.local.config/certificates/apiserver.crt - server: https://localhost:443 + server: https://localhost:6443 name: hello.zeng.dev-apiserver contexts: - context: diff --git a/api-aggregation-lib/pkg/cmd/start.go b/api-aggregation-lib/pkg/cmd/start.go index 0582357..35355ac 100644 --- a/api-aggregation-lib/pkg/cmd/start.go +++ b/api-aggregation-lib/pkg/cmd/start.go @@ -116,6 +116,7 @@ func NewHelloServerCommand(stopCh <-chan struct{}) *cobra.Command { opts := &Options{ SecureServing: genericoptions.NewSecureServingOptions().WithLoopback(), } + opts.SecureServing.BindPort = 6443 cmd := &cobra.Command{ Short: "Launch hello.zeng.dev-server",