feat: proxy to internal minio server

This commit is contained in:
Toboshii Nakama
2021-05-25 04:33:57 -05:00
parent d04292e1a6
commit 369b2aa542
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- minio.yaml

View 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}"

View File

@@ -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