Skip to content

Commit baf6844

Browse files
committed
Serve front-proxy traffic on port 6443
On-behalf-of: SAP <[email protected]> Signed-off-by: Marvin Beckers <[email protected]>
1 parent 02e52f1 commit baf6844

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

config/samples/v1alpha1_kubeconfig.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ spec:
99
1010
groups:
1111
- kcp-users
12-
- system:masters
1312
validity: 8766h
1413
secretRef:
1514
name: sample-kubeconfig

internal/controller/kubeconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (r *KubeconfigReconciler) Reconcile(ctx context.Context, req ctrl.Request)
8989
return ctrl.Result{}, fmt.Errorf("referenced RootShard '%s' does not exist", frontProxy.Spec.RootShard.Reference.Name)
9090
}
9191
issuer = resources.GetRootShardCAName(&rootShard, operatorv1alpha1.FrontProxyClientCA)
92-
serverURL = fmt.Sprintf("https://%s:8443", rootShard.Spec.External.Hostname)
92+
serverURL = fmt.Sprintf("https://%s:6443", rootShard.Spec.External.Hostname)
9393
serverName = rootShard.Spec.External.Hostname
9494
default:
9595
return ctrl.Result{}, fmt.Errorf("no valid target for kubeconfig found")

internal/resources/frontproxy/deployment.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func DeploymentReconciler(frontproxy *operatorv1alpha1.FrontProxy, rootshard *op
6161
Ports: []corev1.ContainerPort{
6262
{
6363
Name: "https",
64-
ContainerPort: 8443,
64+
ContainerPort: 6443,
6565
Protocol: corev1.ProtocolTCP,
6666
},
6767
},
@@ -244,15 +244,15 @@ func DeploymentReconciler(frontproxy *operatorv1alpha1.FrontProxy, rootshard *op
244244
func getArgs(frontproxy *operatorv1alpha1.FrontProxy) []string {
245245

246246
args := []string{
247-
"--secure-port=8443",
247+
"--secure-port=6443",
248248
"--root-kubeconfig=/etc/kcp-front-proxy/kubeconfig/kubeconfig",
249249
"--shards-kubeconfig=/etc/kcp-front-proxy/kubeconfig/kubeconfig",
250250
"--tls-private-key-file=/etc/kcp-front-proxy/tls/tls.key",
251251
"--tls-cert-file=/etc/kcp-front-proxy/tls/tls.crt",
252252
"--client-ca-file=/etc/kcp-front-proxy/client-ca/tls.crt",
253253
"--mapping-file=/etc/kcp-front-proxy/config/path-mapping.yaml",
254254
"--service-account-key-file=/etc/kcp/tls/service-account/tls.key",
255-
"--authentication-drop-groups=system:kcp:logical-cluster-admin",
255+
//"--authentication-drop-groups=system:kcp:logical-cluster-admin",
256256
}
257257

258258
return args

internal/resources/frontproxy/service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ func ServiceReconciler(frontProxy *operatorv1alpha1.FrontProxy) reconciling.Name
4646

4747
port.Name = "https"
4848
port.Protocol = corev1.ProtocolTCP
49-
port.Port = 8443
50-
port.TargetPort = intstr.FromInt32(8443)
49+
port.Port = 6443
50+
port.TargetPort = intstr.FromInt32(6443)
5151
port.AppProtocol = ptr.To("https")
5252

5353
svc.Spec.Ports = []corev1.ServicePort{

0 commit comments

Comments
 (0)