kube/minio-clusters/external.yaml

91 lines
2.0 KiB
YAML
Raw Normal View History

2023-08-01 18:11:13 +00:00
---
2023-08-16 07:39:20 +00:00
apiVersion: codemowers.cloud/v1beta1
kind: MinioBucketClass
2023-08-01 18:11:13 +00:00
metadata:
name: external
2023-08-16 07:39:20 +00:00
annotations:
kubernetes.io/description: "External Minio cluster"
2023-08-01 18:11:13 +00:00
spec:
2023-08-16 07:39:20 +00:00
reclaimPolicy: Retain
shared: true
2023-08-01 18:11:13 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: external
namespace: minio-clusters
spec:
externalName: 172.20.9.2
ports:
- name: http
protocol: TCP
2023-08-16 07:39:20 +00:00
port: 9000
2023-08-01 18:11:13 +00:00
type: ExternalName
---
apiVersion: v1
kind: Service
metadata:
name: external-console
namespace: minio-clusters
spec:
externalName: 172.20.9.2
ports:
- name: http
protocol: TCP
2023-08-16 07:39:20 +00:00
port: 9001
2023-08-01 18:11:13 +00:00
type: ExternalName
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: external
namespace: minio-clusters
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
spec:
rules:
2023-08-16 07:39:20 +00:00
- host: external.minio-clusters.k-space.ee
2023-08-01 18:11:13 +00:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: external
port:
name: http
tls:
- hosts:
- "*.k-space.ee"
2023-08-16 07:39:20 +00:00
secretName: wildcard-tls
2023-08-01 18:11:13 +00:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: external-console
namespace: minio-clusters
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
spec:
rules:
2023-08-16 07:39:20 +00:00
- host: external-console.minio-clusters.k-space.ee
2023-08-01 18:11:13 +00:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: external-console
port:
name: http
tls:
- hosts:
- "*.k-space.ee"
2023-08-16 07:39:20 +00:00
secretName: wildcard-tls