apiVersion: apps/v1 kind: Deployment metadata: name: angels namespace: angels spec: replicas: 2 selector: matchLabels: app: angels template: metadata: labels: app: angels spec: containers: # 1. The Downloader - name: git-sync image: registry.k8s.io/git-sync/git-sync:v4.1.0 args: - --repo=http://192.168.2.65:3000/Darkages/Be-Not-Afraid.git - --branch=main - --rev=HEAD - --path=angels - --depth=1 - --period=10s - --root=/mnt/git - --ssl-verify=false # Uncomment these if your Gitea repo is private: # - --username=admin # - --password=admin123 volumeMounts: - name: html-content mountPath: /mnt/git # 2. The Web Server - name: nginx image: nginx:alpine ports: - containerPort: 82 volumeMounts: - name: html-content mountPath: /usr/share/nginx/html subPath: angels # Maps /mnt/git/angels to /usr/share/nginx/html volumes: - name: html-content emptyDir: {}