Skip to content

helmChart values.yaml with log persistence enabled follow the documentation cause errors #28734

@minnieshi

Description

@minnieshi

Official Helm Chart version

1.7.0 (latest released)

Apache Airflow version

2.4.1

Kubernetes Version

v1.22.6

Helm Chart configuration

see below

Docker Image customisations

No response

What happened

Airflow official chart 1.7 (default airflow app version 2.4.1) onto Kubernetes cluster (created by KinD, also tried in AKS Azure Kubernetes, same results), attempt to enable log persistence like the documentation here: https://airflow.apache.org/docs/helm-chart/stable/manage-logs.html#celery-worker-log-persistence
says one can enable the log persistence.

details are below:

I had installed airflow see above info, successfully and trying now to upgrade it to use PVC (the SC, PV, PVC have been created successfully, as the state shows Bound) for DAGs and LOGs.
but the helm upgrade fails with failure message (
Error: UPGRADE FAILED: cannot patch "airflow-worker" with kind StatefulSet: StatefulSet.apps "airflow-worker" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden
)
the section which are ‘new’ in the values2.yaml is below
which essentially came from above link enable log persistence

logs:
  persistence:
    enabled: true
    existingClaim: airflow-logs-pvc

I do not really understand why the airflow-worker was a StatefulSet before, and i do not understand why asking for persistence dags, logs would cause this error;

versions

$ kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.24.1
Kustomize Version: v4.5.4
Server Version: v1.22.6
WARNING: version difference between client (1.24) and server (1.22) exceeds the supported minor version skew of +/-1

What you think should happen instead

No response

How to reproduce

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions