#14394·talos

`KubeAPIServerConfig` is missing `extraVolumes` from the deprecated `.cluster.apiServer`

Author: wind0rCreated Sep 16, 2026Updated Sep 25, 2026

Component: kube-apiserver.

We cannot configure an authentication token webhook with the v1.14 config documents. kube-apiserver needs a kubeconfig file at a path it can read:

--authentication-token-webhook-config-file=/path/to/kubeconfig.yaml

The flag can be set via KubeAPIServerConfig.extraArgs, but there is no way to make the file visible inside the static pod, because KubeAPIServerConfig has no equivalent of .cluster.apiServer.extraVolumes. The two are mutually exclusive (V1Alpha1ConflictValidate), so the old section cannot be kept for just this one mount.

We hit this with aws-iam-authenticator, which we use for kubectl access to our other clusters.

Example configuration

Works with the 1.13 style:

yaml
cluster:
  apiServer:
    extraArgs:
      authentication-token-webhook-config-file: /var/lib/aws-iam-authenticator/kubeconfig.yaml
    extraVolumes:
      - hostPath: /var/lib/aws-iam-authenticator
        mountPath: /var/lib/aws-iam-authenticator
        readonly: true

The 1.14 equivalent sets the flag but cannot mount the file, so kube-apiserver does not start:

yaml
apiVersion: v1alpha1
kind: KubeAPIServerConfig
extraArgs:
  authentication-token-webhook-config-file: /var/lib/aws-iam-authenticator/kubeconfig.yaml
# no extraVolumes -> kube-apiserver cannot read the file

The file has to exist before the cluster is up: kube-apiserver will not start without it, so it cannot be created by a workload running on that cluster.

Question

Given that extraVolumes is not coming back: would you accept Talos owning the file instead, rendered into KubernetesAPIServerConfigDir the way authentication-config.yaml and auditpolicy.yaml already are? That also lets Talos set 0400 / uid 65534 rather than leaving a credential world-readable.

We have a working narrow implementation (a `KubeAuthenticationWebhoo document holding the kubeconfig inline, with Talos managing the file and the flag) and can open it as a PR if that is the direction you want.

Another open Question is how aws-iam-authenticator should write the KubeAuthenticationWebhook resource.

Environment

  • Talos: v1.14 / v1.15 (main)
  • Kubernetes: any
  • Platform: any