Skip to content

Minikube tarantool-controller-manager malfunction on latest version of k8s.  #4

@dodokek

Description

@dodokek

Error details

Versions

k8s version - 1.31
tarantool-operator version - 0.0.12
minikube version - 1.33.1

Error

Upon executing

helm install -n tarantool-operator operator helm-charts/tarantool-operator \
             --create-namespace \
             --set image.repository=tarantool-operator \
             --set image.tag=0.0.9

tarantool-operator node start correctly. After that node logs print out the following error:

$ kubectl logs controller-manager-7889f7fd64-spn2m -n tarantool-operator                                                                                                                                                                           [10:56:53]
2024-09-19T07:56:43.098Z  INFO  controller-runtime.metrics  metrics server is starting to listen  {"addr": ":8080"}
2024-09-19T07:56:43.099Z  INFO  setup  starting manager
I0919 07:56:43.104678       1 leaderelection.go:248] attempting to acquire leader lease tarantool-operator/0f93ee2c.tarantool.io...
2024-09-19T07:56:43.104Z  INFO  starting metrics server  {"path": "/metrics"}
I0919 07:56:58.154743       1 leaderelection.go:258] successfully acquired lease tarantool-operator/0f93ee2c.tarantool.io
2024-09-19T07:56:58.154Z  DEBUG  events  Normal  {"object": {"kind":"ConfigMap","namespace":"tarantool-operator","name":"0f93ee2c.tarantool.io","uid":"22a7a42c-0625-4fa6-aa1e-4a923473d562","apiVersion":"v1","resourceVersion":"1131806"}, "reason": "LeaderElection", "message": "controller-manager-7889f7fd64-spn2m_fa98bc7c-b5cb-4e51-8e9c-3270d99d4159 became leader"}
2024-09-19T07:56:58.155Z  DEBUG  events  Normal  {"object": {"kind":"Lease","namespace":"tarantool-operator","name":"0f93ee2c.tarantool.io","uid":"b3faa9f8-c391-4347-a223-977c0cd66764","apiVersion":"coordination.k8s.io/v1","resourceVersion":"1131807"}, "reason": "LeaderElection", "message": "controller-manager-7889f7fd64-spn2m_fa98bc7c-b5cb-4e51-8e9c-3270d99d4159 became leader"}
2024-09-19T07:56:58.155Z  INFO  controller.role  Starting EventSource  {"reconciler group": "tarantool.io", "reconciler kind": "Role", "source": "kind source: /, Kind="}
2024-09-19T07:56:58.155Z  INFO  controller.role  Starting EventSource  {"reconciler group": "tarantool.io", "reconciler kind": "Role", "source": "kind source: /, Kind="}
2024-09-19T07:56:58.155Z  INFO  controller.role  Starting EventSource  {"reconciler group": "tarantool.io", "reconciler kind": "Role", "source": "kind source: /, Kind="}
2024-09-19T07:56:58.155Z  INFO  controller.role  Starting EventSource  {"reconciler group": "tarantool.io", "reconciler kind": "Role", "source": "kind source: /, Kind="}
2024-09-19T07:56:58.155Z  INFO  controller.replicasettemplate  Starting EventSource  {"reconciler group": "tarantool.io", "reconciler kind": "ReplicasetTemplate", "source": "kind source: /, Kind="}
2024-09-19T07:56:58.155Z  INFO  controller.replicasettemplate  Starting Controller  {"reconciler group": "tarantool.io", "reconciler kind": "ReplicasetTemplate"}
2024-09-19T07:56:58.155Z  INFO  controller.role  Starting Controller  {"reconciler group": "tarantool.io", "reconciler kind": "Role"}
2024-09-19T07:56:58.155Z  INFO  controller.cluster  Starting EventSource  {"reconciler group": "tarantool.io", "reconciler kind": "Cluster", "source": "kind source: /, Kind="}
2024-09-19T07:56:58.155Z  INFO  controller.cluster  Starting EventSource  {"reconciler group": "tarantool.io", "reconciler kind": "Cluster", "source": "kind source: /, Kind="}
2024-09-19T07:56:58.155Z  INFO  controller.cluster  Starting EventSource  {"reconciler group": "tarantool.io", "reconciler kind": "Cluster", "source": "kind source: /, Kind="}
2024-09-19T07:56:58.155Z  INFO  controller.cluster  Starting Controller  {"reconciler group": "tarantool.io", "reconciler kind": "Cluster"}
2024-09-19T07:56:58.530Z  ERROR  controller-runtime.source  if kind is a CRD, it should be installed before calling Start  {"kind": "Role.tarantool.io", "error": "no matches for kind \"Role\" in version \"tarantool.io/v1alpha1\""}
2024-09-19T07:56:58.530Z  ERROR  controller.role  Could not wait for Cache to sync  {"reconciler group": "tarantool.io", "reconciler kind": "Role", "error": "failed to wait for role caches to sync: no matches for kind \"Role\" in version \"tarantool.io/v1alpha1\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start
  /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.0/pkg/internal/controller/controller.go:234

Solution

Error could be fixed by switching to older versions of k8s:

minikube start --kubernetes-version=v1.23.3 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions