I am trying kind create cluster --config kind-config.yaml
to create a kind cluster using the following kind-config.yaml
file:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
constraints:
memory: "512m"
cpu: "4"
But I get this result:
ERROR: failed to create cluster: unable to decode config: yaml: unmarshal errors:
line 6: field constraints not found in type v1alpha4.Node
What I am trying to do is doing something like bellowing but for a Kind
cluster instead of minilube
:
minikube start --memory 5120 --cpus=4