GitHub user pykenny added a comment to the discussion: Kuberentes integration 
settings/commands for Breeze environment?

Follow all the steps until step `breeze k8s deploy-airflow`, logs:

```
Default value of executor parameter LocalExecutor used.

Deploying Airflow for cluster airflow-python-3.9-v1.30.10
Deploying kind-airflow-python-3.9-v1.30.10 with airflow Helm Chart.
Copied chart sources to 
/private/var/folders/qg/0mrrt2zs53vbps1qfw7vxqq40000gq/T/chart_5b_pwgnf/chart
Deploying Airflow from 
/private/var/folders/qg/0mrrt2zs53vbps1qfw7vxqq40000gq/T/chart_5b_pwgnf/chart
I0625 11:36:10.072819   80585 envvar.go:172] "Feature gate default state" 
feature="WatchListClient" enabled=false
I0625 11:36:10.072840   80585 envvar.go:172] "Feature gate default state" 
feature="ClientsAllowCBOR" enabled=false
I0625 11:36:10.072843   80585 envvar.go:172] "Feature gate default state" 
feature="ClientsPreferCBOR" enabled=false
I0625 11:36:10.072846   80585 envvar.go:172] "Feature gate default state" 
feature="InformerResourceVersion" enabled=false
NAME: airflow
LAST DEPLOYED: Wed Jun 25 11:36:10 2025
NAMESPACE: airflow
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Thank you for installing Apache Airflow 3.1.0!

Your release is named airflow.
You can now access your dashboard(s) by executing the following command(s) and 
visiting the corresponding port at localhost in your browser:

Airflow Webserver:     kubectl port-forward svc/airflow-webserver 8080:8080 
--namespace airflow
Default Webserver (Airflow UI) Login credentials:
    username: admin
    password: admin
Default Postgres connection credentials:
    username: postgres
    password: postgres
    port: 5432

You can get Fernet Key value by running the following:

    echo Fernet Key: $(kubectl get secret --namespace airflow 
airflow-fernet-key -o jsonpath="{.data.fernet-key}" | base64 --decode)

###########################################################
#  WARNING: You should set a static webserver secret key  #
###########################################################

You are using a dynamically generated webserver secret key, which can lead to
unnecessary restarts of your Airflow components.

Information on how to set a static webserver secret key can be found here:
https://airflow.apache.org/docs/helm-chart/stable/production-guide.html#webserver-secret-key
Deployed kind-airflow-python-3.9-v1.30.10 with airflow Helm Chart.

Airflow for Python 3.9 and K8S version v1.30.10 has been successfully deployed.

The KinD cluster name: airflow-python-3.9-v1.30.10
The kubectl cluster name: kind-airflow-python-3.9-v1.30.10.


Kubeconfig file in: 
/Users/pyhsieh/dev_repo/airflow_k/.build/.k8s-clusters/airflow-python-3.9-v1.30.10/.kubeconfig


KinD Cluster API server URL: http://localhost:24308
Connecting to localhost:13832. Num try: 1
Error when connecting to localhost:13832 : ('Connection aborted.', 
RemoteDisconnected('Remote end closed connection without response'))
Sleeping for 5 seconds.
(...)
Connecting to localhost:13832. Num try: 25
Error when connecting to localhost:13832 : ('Connection aborted.', 
RemoteDisconnected('Remote end closed connection without response'))
More than 120 passed. Exiting.

Airflow API server is not available at port 13832. Run `breeze k8s 
deploy-airflow --python 3.9 --kubernetes-version v1.30.10` to (re)deploy airflow


NEXT STEP: You might now run tests or interact with airflow via shell (kubectl, 
pytest etc.) or k9s commands:


breeze k8s tests

breeze k8s shell

breeze k8s k9s
```

Know something's broken because when using the k9s command I saw part of the 
components are not in normal state:

<img width="1345" alt="image" 
src="https://github.com/user-attachments/assets/ff623712-b439-4c1a-b1fe-da7c166dc906";
 />


Then try redeploy again with command `breeze k8s deploy-airflow --python 3.9 
--kubernetes-version v1.30.10` and it failed without useful information:

```
Deploying Airflow for cluster airflow-python-3.9-v1.30.10
Deploying kind-airflow-python-3.9-v1.30.10 with airflow Helm Chart.
Copied chart sources to 
/private/var/folders/qg/0mrrt2zs53vbps1qfw7vxqq40000gq/T/chart_2atzjmkh/chart
Deploying Airflow from 
/private/var/folders/qg/0mrrt2zs53vbps1qfw7vxqq40000gq/T/chart_2atzjmkh/chart
I0625 12:09:33.307494   82192 envvar.go:172] "Feature gate default state" 
feature="InformerResourceVersion" enabled=false
I0625 12:09:33.307523   82192 envvar.go:172] "Feature gate default state" 
feature="WatchListClient" enabled=false
I0625 12:09:33.307526   82192 envvar.go:172] "Feature gate default state" 
feature="ClientsAllowCBOR" enabled=false
I0625 12:09:33.307529   82192 envvar.go:172] "Feature gate default state" 
feature="ClientsPreferCBOR" enabled=false
Error: INSTALLATION FAILED: cannot re-use a name that is still in use
```

GitHub link: 
https://github.com/apache/airflow/discussions/52131#discussioncomment-13568891

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscr...@airflow.apache.org

Reply via email to