apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    app: git-sync
  name: git-sync
spec:
  replicas: 1
  selector:
    matchLabels:
      app: git-sync
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: git-sync
    spec:
      containers:
      - image: nginx:latest
        name: nginx
        resources: {}
        volumeMounts:
        - name: workdir
          mountPath: /usr/share/nginx/html
      initContainers:
      - image: registry.k8s.io/git-sync/git-sync:v3.6.2
        name: gitsync
        args:
        - --repo=nutzer26@1:/home/nutzer01/content_repo.git
        - --root=/tmp/git/root
        - --ssh
        - --one-time
        volumeMounts:
        - name: git-secret
          mountPath: /etc/git-secret
        - name: workdir
          mountPath: "/tmp/git/root"
        securityContext:
          runAsUser: 65533
      volumes:
      - name: workdir
        emptyDir: {}
      - name: claim-pvc2
        secret:
          secretName: git-creds
          defaultMode: 0400
      securityContext:
        fsGroup: 65533
status: {}