--- apiVersion: codemowers.io/v1alpha1 kind: ClusterBucketClass metadata: name: external spec: description: "Minio instance running on the ZFS storage box" targetNamespace: minio-clusters targetCluster: external --- apiVersion: v1 kind: Service metadata: name: external namespace: minio-clusters spec: externalName: 172.20.9.2 ports: - name: http protocol: TCP port: 80 targetPort: 9000 type: ExternalName --- apiVersion: v1 kind: Service metadata: name: external-console namespace: minio-clusters spec: externalName: 172.20.9.2 ports: - name: http protocol: TCP port: 80 targetPort: 9001 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: - host: minio-cluster-external.k-space.ee http: paths: - pathType: Prefix path: "/" backend: service: name: external port: name: http tls: - hosts: - "*.k-space.ee" --- 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: - host: minio-cluster-external-console.k-space.ee http: paths: - pathType: Prefix path: "/" backend: service: name: external-console port: name: http tls: - hosts: - "*.k-space.ee"