title: Issue setting up Git-Sync with Airflow in a Pod
body: <p>I am currently trying to setup Airflow to work in a Kubernetes like environment. For airflow to be useful, I need to be able to use the Git-Sync features so that the DAGs can be stored seperatly from the Pod, thus not being reset when the Pod downscales or restarts. I am trying to set it up with ssh.</p>
  
  <p>I have been searching for good documentation on the Airflow config or tutorials on how to set this up properly, but this has been to no avail. I would very much appreciate some help here, as I have been struggling with this for a while. </p>
  
  <p>Here is how i set the relevant config, please note I have some stand ins for links and some information due to security reasons:</p>
  
  <pre><code>git_repo = https://&lt;git-host&gt;/scm/&lt;project-name&gt;/airflow
  git_branch = develop
  git_subpath = dags
  git_sync_root = /usr/local/airflow
  git_sync_dest = dags
  git_sync_depth = 1
  git_sync_ssh = true
  git_dags_folder_mount_point = /usr/local/airflow/dags
  git_ssh_key_secret_name = airflow-secrets
  git_ssh_known_hosts_configmap_name = airflow-configmap
  dags_folder = /usr/local/airflow/
  executor = KubernetesExecutor
  dags_in_image = False
  </code></pre>
  
  <p>Here is how I have setup my origin/config repo:</p>
  
  <pre><code>-root
   |-configmaps/airflow
     |-airflow.cfg
     |-airflow-configmap.yaml
   |-environment
     |-&lt;environment specific stuff&gt;
   |-secrets
     |-airflow-secrets.yaml
   |-ssh
     |-id_rsa
     |-id_rsa.pub
   |-README.md
  </code></pre>
  
  <p>The airflow-conifgmap and secrets look like this:</p>
  
  <pre><code>apiVersion: v1
  kind: Secret
  metadata:
    name: airflow-secrets
  data:
    # key needs to be gitSshKey
    gitSshKey: &lt;base64 encoded private sshKey&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>apiVersion: v1
  kind: ConfigMap
  metadata:
    name: airflow-configmap
  data:
    known_hosts: |
        https://&lt;git-host&gt;/ ssh-rsa &lt;base64 encoded public sshKey&gt;
  
  </code></pre>
  
  <p>The repo that I am trying to sync to has the Public key set as an access key and is just a folder named dags with 1 dag inside.</p>
  
  <p>My issue is that I do not know what my issue is at this point. I have no way of knowing what part of my config has been set correctly and what part of it is set incorrectly and documentation on the subject is very lackluster. </p>
  
  <p>If there is more information that is required I will be happy to provide it. </p>
  
  <p>Thank you for your time</p>