Skip to content

Need advice/help - kubernetes deployment, gitSync fails to connect to gitlab self-hosted repo #30268

Closed Answered by hanleybrand
hanleybrand asked this question in Q&A
Discussion options

You must be logged in to vote

Update: After going down the rabbit hole of permissions, how gitsync works with hammerspace-nfs volumes and PVCs (still not entirely sure about that one), initContainers and allthethings, I ended up reading through the official Dockerfile and discovering that I had the airflow user running as as uid/gid 1000:1000 instead of 50000:0 which in retrospect is mentioned pretty clearly in the Dockerfile 🤭

So it's working now, pretty well actually

Dockerfile

USER root  

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN adduser --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password \
           --quiet "airflow" --uid  $AIRFLOW_UID --gid 0 --home "${AIRFLOW_USER_HOME_DIR}" \
    &&…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hanleybrand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants