--- apiVersion: apps/v1 kind: Deployment metadata: name: git-deployment namespace: default labels: app: git spec: replicas: 1 selector: matchLabels: app: git template: metadata: labels: app: git spec: containers: - image: gogs/gogs:0.13 name: gogs imagePullPolicy: IfNotPresent ports: - containerPort: 3000 volumeMounts: - name: gogs-vol mountPath: /data volumes: - name: gogs-vol hostPath: path: /mnt/gogs2/ type: Directory --- apiVersion: v1 kind: Service metadata: name: git namespace: default labels: app: git spec: type: ClusterIP selector: app: git ports: - port: 80 targetPort: 3000 --- apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: git.bodicsek.host spec: secretName: git.bodicsek.host issuerRef: name: letsencrypt-prod kind: ClusterIssuer dnsNames: - git.bodicsek.host --- apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: name: git namespace: default spec: entryPoints: - websecure routes: - kind: Rule match: Host(`git.bodicsek.host`) services: - kind: Service name: git namespace: default passHostHeader: true port: 80 tls: secretName: git.bodicsek.host