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

error: resource mapping not found for name: "valkey-cluster" namespace: "mynamespace" from "valkey-cluster.yaml": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1" #54

Open
arpan57 opened this issue Aug 28, 2024 · 2 comments

Comments

@arpan57
Copy link

arpan57 commented Aug 28, 2024

Hi,

On the K8S cluster I have installed valkey-operator:v0.0.11 in 'mynamespace'. The controller pod is up and running. Now I am trying to build a ValKey cluster using valkey-cluster.yaml with a little modification.
In this file I made a couple of changes

  1. Updated the namespace from 'default' to 'mynamespace'.
  2. External mages referred from docker.io to internal ones.

Step followed

$ k apply -f valkey-cluster.yaml -n mynamespace

Output:

networkpolicy.networking.k8s.io/valkey-cluster created
serviceaccount/valkey-cluster created
secret/valkey-cluster created
configmap/valkey-cluster-default created
configmap/valkey-cluster-scripts created
service/valkey-cluster-headless created
service/valkey-cluster created
statefulset.apps/valkey-cluster created
error: resource mapping not found for name: "valkey-cluster" namespace: "mynamespace" from "valkey-cluster.yaml": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first

Output of pods

❯ k get pods -n mynamespace | grep -i valkey
valkey-cluster-0                                                  0/1     Pending                 0                   88m
valkey-cluster-1                                                  0/1     Pending                 0                   88m
valkey-cluster-2                                                  0/1     Pending                 0                   88m
valkey-operator-controller-manager-b448967dd-7vdxs                1/1     Running                 0                   23h

Output of describe

❯  k describe pod valkey-cluster-1
Events:
  Type     Reason            Age                   From               Message
  ----     ------            ----                  ----               -------
  Warning  FailedScheduling  9m13s (x17 over 89m)  default-scheduler  0/19 nodes are available: 19 pod has unbound immediate PersistentVolumeClaims. preemption: 0/19 nodes are available: 19 Preemption is not helpful for scheduling.

I wonder if

error: resource mapping not found for name: "valkey-cluster" namespace: "mynamespace" from "valkey-cluster.yaml": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"

is making the pods unschedulable?

@dmolik
Copy link
Member

dmolik commented Aug 28, 2024

PDB is a red herring, it looks like the STS PVC needs to adjusted

@dmolik
Copy link
Member

dmolik commented Aug 28, 2024

the valkey-cluster.yaml is an expanded helm chart used as reference during development of the operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants