71 lines
1.3 KiB
YAML
71 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: duplicati
|
|
spec:
|
|
ports:
|
|
- name: app
|
|
port: 8200
|
|
protocol: TCP
|
|
targetPort: 8200
|
|
clusterIP: None
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: duplicati
|
|
subsets:
|
|
- addresses:
|
|
- ip: 192.168.20.253
|
|
ports:
|
|
- name: app
|
|
port: 8200
|
|
protocol: TCP
|
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: duplicati-ingress
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`duplicati.internal.prd.durp.info`) && PathPrefix(`/`)
|
|
middlewares:
|
|
- name: whitelist
|
|
namespace: traefik
|
|
- name: authentik-proxy-provider
|
|
namespace: traefik
|
|
kind: Rule
|
|
services:
|
|
- name: duplicati
|
|
port: 8200
|
|
- match: Host(`duplicati.internal.prd.durp.info`) && PathPrefix(`/outpost.goauthentik.io`)
|
|
kind: Rule
|
|
services:
|
|
- name: ak-outpost-authentik-embedded-outpost
|
|
namespace: authentik
|
|
port: 9000
|
|
tls:
|
|
secretName: duplicati-tls
|
|
|
|
---
|
|
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: duplicati-tls
|
|
spec:
|
|
secretName: duplicati-tls
|
|
issuerRef:
|
|
name: letsencrypt-production
|
|
kind: ClusterIssuer
|
|
commonName: "duplicati.internal.prd.durp.info"
|
|
dnsNames:
|
|
- "duplicati.internal.prd.durp.info"
|