Skip to content

Ingress Class Name reqired since k8s 1.19 #425

@loomsen

Description

@loomsen

What is the bug?

Since kubernetes 1.19, the definition of ingressClassName is required. Otherwise the ingress won't be picked up by any controller.

What version of the chart are you using?:

I am using version 8.5.2

What is your Kubernetes Version?:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:18:45Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.2-eks-0389ca3", GitCommit:"8a4e27b9d88142bbdd21b997b532eb6d493df6d2", GitTreeState:"clean", BuildDate:"2021-07-31T01:34:46Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}

What is your Helm version?:

$ helm version
version.BuildInfo{Version:"v3.6.3", GitCommit:"d506314abfb5d21419df8c7e7e68012379db2354", GitTreeState:"clean", GoVersion:"go1.16.5"}```


**Please copy your custom Helm values file:**

```yaml
airflow:
  executor: KubernetesExecutor
  fernetKey: ${fernet_key}
  webserverSecretKey: ${webserver_secret_key}

  config:
    AIRFLOW__CORE__LOAD_EXAMPLES: "False"
    AIRFLOW__WEBSERVER__RBAC: "True"
    AIRFLOW__WEBSERVER__AUTHENTICATE: "True"
    AIRFLOW__WEBSERVER__EXPOSE_CONFIG: "True"
    AIRFLOW__KUBERNETES__WORKER_PODS_CREATION_BATCH_SIZE: "10"
    AIRFLOW__KUBERNETES__NAMESPACE: "airflow"
    AIRFLOW__KUBERNETES__WORKER_SERVICE_ACCOUNT_NAME: "airflow"
    AIRFLOW__KUBERNETES__DAGS_IN_IMAGE: "False"
    AZURE_CLIENT_ID: ${azure_client_id}
    AZURE_CLIENT_SECRET: ${azure_client_secret}
    AZURE_TENANT_ID: ${azure_tenant_id}

ingress:
  enabled: true
  web:
    annotations:
      cert-manager.io/cluster-issuer: letsencrypt-prod
      kubernetes.io/tls-acme: "true"
    path: ""
    tls:
      enabled: true
      secretName: "airflow-cert"

externalDatabase:
  properties: "?sslmode=prefer"

web:
  webserverConfig:
    stringOverride: |
      import os
      from airflow.configuration import conf
      from flask_appbuilder.security.manager import AUTH_OAUTH
      SQLALCHEMY_DATABASE_URI = conf.get("core", "SQL_ALCHEMY_CONN")
      basedir = os.path.abspath(os.path.dirname(__file__))
      AUTH_USER_REGISTRATION_ROLE = "Admin"
      AUTH_TYPE = AUTH_OAUTH
      AUTH_ROLES_SYNC_AT_LOGIN = True
      AUTH_USER_REGISTRATION = False
      AZURE_TENANT_ID = os.environ.get("AZURE_TENANT_ID")
      API_BASE = f"https://login.microsoftonline.com/{AZURE_TENANT_ID}/oauth2"
      ACCESS_TOKEN_URL = f"{API_BASE}/token"
      AUTHORIZE_URL = f"{API_BASE}/authorize"
      OAUTH_PROVIDERS = [
        {
          "name": "azure",
          "icon": "fa-windows",
          "token_key": "access_token",
          "remote_app": {
              "client_id": os.environ.get("AZURE_CLIENT_ID"),
              "client_secret":  os.environ.get("AZURE_CLIENT_SECRET"),
              "api_base_url": API_BASE,
              "redirect_uri": https://${airflow_domain}/oauth-authorized/azure,
              "client_kwargs": {
                  "scope": "User.read name preferred_username email profile upn",
                  "resource": os.environ.get("AZURE_CLIENT_ID"),
              },
              "request_token_url": None,
              "access_token_url": ACCESS_TOKEN_URL,
              "authorize_url": AUTHORIZE_URL,
          },
        }
      ]
  extraPipPackages:
    - Flask-OpenID
    - authlib

dags:
  gitSync:
    enabled: true
    repo: https://example.com/dags.git
    branch: main
    revision: HEAD
    depth: 1
    repoSubPath: environments/${environment_name}
    httpSecret: gitlab-credentials

workers:
  enabled: false

postgresql:
  enabled: false

flower:
  enabled: false

redis:
  enabled: false

pgbouncer:
  enabled: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugkind - things not working properlylifecycle/stalelifecycle - this is stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions