title: Gitsync in kubernetes not deploying properly
body: <p>I'm running gitsync container in kubernetes and trying to sync the repository from github. I have already created secret using known_hosts and ssh. However I face following error.</p>
  <blockquote>
  <p>&quot;msg&quot;=&quot;failed to sync repo, aborting&quot; &quot;error&quot;=&quot;error running command: exit status 128: &quot;Cloning into '/tmp/git'...\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n&quot;&quot;</p>
  </blockquote>
  <p>Here is my deployment file.</p>
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: gitsync-deployment
    labels:
      app: gitsync
  spec:
    replicas: 1
    selector:
      matchLabels:
        app: gitsync
    template:
      metadata:
        labels:
          app: gitsync
      spec:
        containers:
        - name: git-sync
          image: k8s.gcr.io/git-sync:v3.1.5
  #        command: [&quot;cat&quot;]
  #        args: [&quot;/etc/git-secret/ssh&quot;]
          imagePullPolicy: Always
          volumeMounts:
          - name: git-secret
            mountPath: /etc/git-secret
          env:
          - name: GIT_SYNC_REPO
            value: &quot;git@github.com:username/test.git&quot;
          - name: GIT_SYNC_SSH
            value: &quot;true&quot;
          - name: GIT_SYNC_BRANCH
            value: master
          - name: GIT_SYNC_DEST
            value: git
          - name: GIT_SYNC_DEPTH
            value: &quot;1&quot;
        volumes:
        - name: html
          emptyDir: {}
        - name: git-secret
          secret:
            secretName: git-creds
            defaultMode: 256
  </code></pre>