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

Kafka controller: cannot increase persistence volume size #21787

Closed
cinimins opened this issue Dec 28, 2023 · 1 comment
Closed

Kafka controller: cannot increase persistence volume size #21787

cinimins opened this issue Dec 28, 2023 · 1 comment
Assignees
Labels
kafka solved tech-issues The user has a technical issue about an application

Comments

@cinimins
Copy link

Name and Version

bitnami/kafka 26.4.4

What architecture are you using?

amd64

What steps will reproduce the bug?

When increasing the value controller.persistence.size and triggering an helm upgrade I get the following error:

Error: UPGRADE FAILED: cannot patch "kafka-controller" with kind StatefulSet: StatefulSet.apps "kafka-controller" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden

This used to work before when I used brokers and zookeeper, and doesn't seem to work with controllers anymore.

Are you using any custom parameters or values?

fullnameOverride: "kafka"

controller:
  pdb:
    create: true
    maxUnavailable: 1
  replicaCount: 3
  persistence:
    size: 2Gi

sasl:
  enabledMechanisms: PLAIN,SCRAM-SHA-512
  interBrokerMechanism: SCRAM-SHA-512
  controllerMechanism: PLAIN
  client:
    users:
      - "admin"
    passwords:
      - "admin"

extraConfig: |-
  authorizer.class.name=org.apache.kafka.metadata.authorizer.StandardAuthorizer
  super.users=User:controller_user;User:admin

externalAccess:
  enabled: true

kraft:
  enabled: true

What is the expected behavior?

No response

What do you see instead?

Error: UPGRADE FAILED: cannot patch "kafka-controller" with kind StatefulSet: StatefulSet.apps "kafka-controller" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden

Additional information

No response

@cinimins cinimins added the tech-issues The user has a technical issue about an application label Dec 28, 2023
@github-actions github-actions bot added the triage Triage is needed label Dec 28, 2023
@cinimins cinimins changed the title Controller: cannot increase persistence volume size Kafka controller: cannot increase persistence volume size Dec 28, 2023
@github-actions github-actions bot removed the triage Triage is needed label Jan 2, 2024
@juan131
Copy link
Contributor

juan131 commented Jan 3, 2024

Hi @cinimins

This isn't a problem with the Bitnami Kafka chart but a K8s limitation to update a statefulset's volumeClaimTemplates, see:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kafka solved tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

4 participants