Incorrect Kubernetes namespace in Airflow container retrieval instructions
Title: Incorrect Kubernetes namespace in Airflow container retrieval instructions
Description:
The provided instructions for accessing the Airflow web container refer to the wrong Kubernetes namespace. The documentation currently indicates the namespace as airflow
whereas the setup instructions establish it as airflow2
. This is minor bug but gets me every time I try to deploy (and was not obvious the first time I deployed).
Details:
In the provided documentation, users are instructed to set up Airflow in the airflow2
namespace:
# Create Namespace
NAMESPACE=airflow2
kubectl create namespace $NAMESPACE
However, subsequent instructions to retrieve the Airflow web container are using the airflow
namespace:
# Get Airflow web container
AIRFLOW_WEB_CONTAINER=$(kubectl get pod -n airflow | grep "web" | cut -f 1 -d " ")
$ AIRFLOW_WEB_CONTAINER=$(kubectl get pod -n airflow | grep "web" | cut -f 1 -d " ")
No resources found in airflow namespace.
Expected Behavior: The instructions should be consistent, with both referring to the same Kubernetes namespace.
Actual Behavior: There's an inconsistency between setup instructions and the container retrieval instructions in terms of the namespace used.
Steps to Reproduce:
- Follow the provided instructions to set up Airflow.
- Attempt to retrieve the Airflow web container using the given command.
- Observe the mismatch in namespace usage.
Suggested Fix:
Update the container retrieval instructions to use the airflow2
namespace:
# Get Airflow web container
AIRFLOW_WEB_CONTAINER=$(kubectl get pod -n airflow2 | grep "web" | cut -f 1 -d " ")