BobDu commented on issue #26971:
URL: https://github.com/apache/airflow/issues/26971#issuecomment-1274397891

   Verified #26415 - Add default flower_url_prefix in helm chart values
   
   ```
   ingress:
     web:
       enabled: true
       hosts:
       - name: "airflow2-dev.example.com"
       ingressClassName: "nginx"
     flower:
       enabled: true
       path: "/flower"
       hosts:
         - name: "airflow2-dev.example.com"
       ingressClassName: "nginx"
   ```
   
   and not custom define `config.celery.flower_url_prefix`
   
   ```
   # bobdudu @ BobDu in ~ 
   $ kubectl -n airflow2 get cm airflow-airflow-config -o yaml              
   apiVersion: v1
   data:
     airflow.cfg: |-
       [celery]
       flower_url_prefix = /flower
       worker_concurrency = 16
   
       [celery_kubernetes_executor]
       kubernetes_queue = kubernetes
   
       [core]
       colored_console_log = False
       dags_folder = /opt/airflow/dags
       executor = CeleryExecutor
       load_examples = False
       remote_logging = False
   
       [elasticsearch]
       json_format = True
       log_id_template = {dag_id}_{task_id}_{execution_date}_{try_number}
   
       [elasticsearch_configs]
       max_retries = 3
       retry_timeout = True
       timeout = 30
   
       [kerberos]
       ccache = /var/kerberos-ccache/cache
       keytab = /etc/airflow.keytab
       principal = [email protected]
       reinit_frequency = 3600
   
       [kubernetes]
       airflow_configmap = airflow-airflow-config
       airflow_local_settings_configmap = airflow-airflow-config
       multi_namespace_mode = False
       namespace = airflow2
       pod_template_file = /opt/airflow/pod_templates/pod_template_file.yaml
       worker_container_repository = 
385382614844.dkr.ecr.ap-east-1.amazonaws.com/airflow2
       worker_container_tag = v0.3
   
       [logging]
       colored_console_log = False
       remote_logging = False
   
       [metrics]
       statsd_host = airflow-statsd
       statsd_on = True
       statsd_port = 9125
       statsd_prefix = airflow
   
       [scheduler]
       run_duration = 41460
       standalone_dag_processor = False
       statsd_host = airflow-statsd
       statsd_on = True
       statsd_port = 9125
       statsd_prefix = airflow
   
       [webserver]
       enable_proxy_fix = True
       rbac = True
     airflow_local_settings.py: ""
   kind: ConfigMap
   metadata:
     annotations:
       meta.helm.sh/release-name: airflow
       meta.helm.sh/release-namespace: airflow2
     creationTimestamp: "2022-09-13T07:43:46Z"
     labels:
       app.kubernetes.io/managed-by: Helm
       chart: airflow-1.7.0
       component: config
       heritage: Helm
       release: airflow
       tier: airflow
     name: airflow-airflow-config
     namespace: airflow2
     resourceVersion: "757685511"
     uid: 86c10cea-11c4-40d5-8ec9-4a7f8a822464
   ```
   
   No problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to