Aggregation API server with custom or non resource URLs to server static content

rustyRhino
Wed, 07 May 2025 08:15:56 +0000
General Discussions

Cluster information:

Kind setup running sample-apiserver example with some custom URLs to serve static content for a PoC.

Kubernetes version: Latest

From within the pod, the custom URL can be accessed but not from outside.

root@wardle-server-68d5f8c49f-kthxp:/# curl -k https://127.0.0.1/v3/hello -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"
Helloworldroot@wardle-server-68d5f8c49f-kthxp:/#
root@wardle-server-68d5f8c49f-kthxp:/#

I looked at what is present in Antrea antrea/pkg/apiserver/apiserver.go at f707fa976cd4b3110bcd64bbf6eaf64f05c557f4 · antrea-io/antrea · GitHub but not able to understand how to access those URLs.

1 post - 1 participant