Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line 6: field constraints not found in type v1alpha4.Node #3048

Closed
bestofman opened this issue Dec 30, 2022 · 2 comments
Closed

line 6: field constraints not found in type v1alpha4.Node #3048

bestofman opened this issue Dec 30, 2022 · 2 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@bestofman
Copy link

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

@bestofman bestofman added the kind/support Categorizes issue or PR as a support question. label Dec 30, 2022
@aojea
Copy link
Contributor

aojea commented Dec 30, 2022

/close

This is a duplicate of #877 (comment)

docker containers can not emulate resources , you need VMs or fake the linux subsystem to emulate VMs with containers, that is not something we have implemented in KIND because of the complexity.

Thanks

@k8s-ci-robot
Copy link
Contributor

@aojea: Closing this issue.

In response to this:

/close

This is a duplicate of #877 (comment)

docker containers can not emulate resources , you need VMs or fake the linux subsystem to emulate VMs with containers, that is not something we have implemented in KIND because of the complexity.

Thanks

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants