mirror of
https://github.com/outbackdingo/home-ops.git
synced 2026-01-28 10:19:05 +00:00
feat: proxy to internal minio server
This commit is contained in:
5
cluster/apps/networking/traefik/external/kustomization.yaml
vendored
Normal file
5
cluster/apps/networking/traefik/external/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- minio.yaml
|
||||
40
cluster/apps/networking/traefik/external/minio.yaml
vendored
Normal file
40
cluster/apps/networking/traefik/external/minio.yaml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: minio
|
||||
namespace: networking
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`s.${SECRET_DOMAIN}`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: minio
|
||||
port: 443
|
||||
middlewares:
|
||||
- name: cloudflare
|
||||
tls:
|
||||
secretName: "${SECRET_DOMAIN/./-}-tls"
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: minio
|
||||
namespace: networking
|
||||
spec:
|
||||
type: ExternalName
|
||||
externalName: s3.${SECRET_DOMAIN}
|
||||
---
|
||||
apiVersion: externaldns.k8s.io/v1alpha1
|
||||
kind: DNSEndpoint
|
||||
metadata:
|
||||
name: minio
|
||||
namespace: networking
|
||||
spec:
|
||||
endpoints:
|
||||
- dnsName: "s.${SECRET_DOMAIN}"
|
||||
recordType: CNAME
|
||||
targets:
|
||||
- "ipv4.${SECRET_DOMAIN}"
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
@@ -5,4 +6,5 @@ resources:
|
||||
- service-monitor.yaml
|
||||
- tls-store
|
||||
- dashboard
|
||||
- external
|
||||
- middlewares
|
||||
|
||||
Reference in New Issue
Block a user