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

errot: ensure CRDs are installed first #6162

Open
lhy985 opened this issue Feb 26, 2025 · 3 comments
Open

errot: ensure CRDs are installed first #6162

lhy985 opened this issue Feb 26, 2025 · 3 comments
Labels
kind/question Indicates an issue that is a support question.

Comments

@lhy985
Copy link

lhy985 commented Feb 26, 2025

I used kind install kamada sucessfully, but when I using "kubectl apply -f propagationpolicy.yaml" command ,errror occurred!

What happened:
error: resource mapping not found for name: "example-policy" namespace: "" from "./yamls/propagationpolicy.yaml": no matches for kind "PropagationPolicy" in version "policy.karmada.io/v1alpha1"
ensure CRDs are installed first
What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

propagationpolicy.yaml

apiVersion: policy.karmada.io/v1alpha1
kind: PropagationPolicy
metadata:
name: example-policy # The default namespace is default.
spec:
resourceSelectors:
- apiVersion: apps/v1
kind: Deployment
name: nginx # If no namespace is specified, the namespace is inherited from the parent object scope.
placement:
clusterAffinity:
clusterNames:
- member1
Environment:

  • Karmada version:
  • kubectl-karmada or karmadactl version (the result of kubectl-karmada version or karmadactl version):
  • Others:
@lhy985 lhy985 added the kind/bug Categorizes issue or PR as related to a bug. label Feb 26, 2025
@lhy985
Copy link
Author

lhy985 commented Feb 26, 2025

❯ kubectl get clusters
error: the server doesn't have a resource type "clusters"

@RainbowMango
Copy link
Member

Please check if you are using the KUBECONFIG file of the Karmada API server.

@RainbowMango
Copy link
Member

/remove-kind bug
/kind question
I don't believe this is a bug yet.

@karmada-bot karmada-bot added kind/question Indicates an issue that is a support question. and removed kind/bug Categorizes issue or PR as related to a bug. labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Indicates an issue that is a support question.
Projects
Status: No status
Development

No branches or pull requests

3 participants