24 lines
966 B
YAML
24 lines
966 B
YAML
apiVersion: kind.x-k8s.io/v1alpha4
|
|
kind: Cluster
|
|
# Configure registry for KinD.
|
|
containerdConfigPatches:
|
|
- |-
|
|
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."$REGISTRY_NAME:$REGISTRY_PORT"]
|
|
endpoint = ["http://$REGISTRY_NAME:$REGISTRY_PORT"]
|
|
# This is needed in order to support projected volumes with service account tokens.
|
|
# See: https://kubernetes.slack.com/archives/CEKK1KTN2/p1600268272383600
|
|
kubeadmConfigPatches:
|
|
- |
|
|
apiVersion: kubeadm.k8s.io/v1beta2
|
|
kind: ClusterConfiguration
|
|
metadata:
|
|
name: config
|
|
apiServer:
|
|
extraArgs:
|
|
"service-account-issuer": "kubernetes.default.svc"
|
|
"service-account-signing-key-file": "/etc/kubernetes/pki/sa.key"
|
|
nodes:
|
|
- role: control-plane
|
|
image: kindest/node:1.22.9@sha256:ad5b8404c4052781365a4e70bb7d17c5331e4177bd4a7cd214339316cd6193b6
|
|
- role: worker
|
|
image: kindest/node:1.22.9@sha256:ad5b8404c4052781365a4e70bb7d17c5331e4177bd4a7cd214339316cd6193b6 |