Skip to content

Instantly share code, notes, and snippets.

@pauldotyu
Last active May 6, 2025 19:25
Show Gist options
  • Select an option

  • Save pauldotyu/0390da968b44035d572550e8012eadad to your computer and use it in GitHub Desktop.

Select an option

Save pauldotyu/0390da968b44035d572550e8012eadad to your computer and use it in GitHub Desktop.
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
extraMounts:
- hostPath: ./structured-auth.yaml
containerPath: /etc/kubernetes/structured-auth.yaml
kubeadmConfigPatches:
- |
kind: ClusterConfiguration
apiServer:
extraArgs:
authentication-config: /etc/kubernetes/structured-auth.yaml
extraVolumes:
- name: structured-auth
hostPath: /etc/kubernetes/structured-auth.yaml
mountPath: /etc/kubernetes/structured-auth.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment