| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- ---
- 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
- annotations:
- diun.enable: "true"
- diun.include_tags: '^\d+\.\d+$'
- 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.io/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
|