spotahome / redis-operator

Redis Operator creates/configures/manages high availability redis with sentinel automatic failover atop Kubernetes.
Apache License 2.0
1.51k stars 358 forks source link

kustomize rbac is missing leases #482

Closed lazedo closed 1 year ago

lazedo commented 1 year ago

Expected behaviour

install with kustomize

Actual behaviour

install succeeds but not functional

Steps to reproduce the behaviour

kubectl create -k ./redis

kustomization.yaml

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: operators

resources:
  - https://github.com/spotahome/redis-operator/manifests/kustomize/overlays/minimal

Environment

How are the pieces configured?

Logs

(leaderelection.go:330] error retrieving resource lock operators/redis-failover-lease: leases.coordination.k8s.io "redis-failover-lease" is forbidden: User "system:serviceaccount:operators:redis-operator" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "operators")