imfreedom/k8s-cluster

Move 50-hub.imfreedom.org to kustomize

2021-06-17, Gary Kramlich
20da8b38faa3
Move 50-hub.imfreedom.org to kustomize
# this manifest contains an ingress that does path based matching to route to
# individual services that are runnings the docs via a simple http server.
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: docs-strip-prefix
spec:
stripPrefix:
forceSlash: false
prefixes:
- /gplugin/latest
- /gplugin-gtk/latest
- /libgnt/latest
- /libgnt/next
- /libpurple/latest
- /pidgin/2.x.y
- /talkatu/latest
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: docs-pidgin-im
spec:
entryPoints:
- https
routes:
- match: Host(`docs.pidgin.im`) && PathPrefix(`/pidgin/2.x.y`)
kind: Rule
services:
- name: docs-pidgin-2-x-y
port: 3000
middlewares:
- name: docs-strip-prefix
- name: common-headers
- name: hsts-headers
- match: Host(`docs.pidgin.im`) && PathPrefix(`/gplugin/latest`)
kind: Rule
services:
- name: docs-gplugin-latest
port: 3000
middlewares:
- name: docs-strip-prefix
- name: common-headers
- name: hsts-headers
- match: Host(`docs.pidgin.im`) && PathPrefix(`/gplugin-gtk/latest`)
kind: Rule
services:
- name: docs-gplugin-gtk-latest
port: 3000
middlewares:
- name: docs-strip-prefix
- name: common-headers
- name: hsts-headers
- match: Host(`docs.pidgin.im`) && PathPrefix(`/libgnt/latest`)
kind: Rule
services:
- name: docs-libgnt-latest
port: 3000
middlewares:
- name: docs-strip-prefix
- name: common-headers
- name: hsts-headers
- match: Host(`docs.pidgin.im`) && PathPrefix(`/libpurple/latest`)
kind: Rule
services:
- name: docs-libpurple-latest
port: 3000
middlewares:
- name: docs-strip-prefix
- name: common-headers
- name: hsts-headers
- match: Host(`docs.pidgin.im`) && PathPrefix(`/libgnt/next`)
kind: Rule
services:
- name: docs-libgnt-next
port: 3000
middlewares:
- name: docs-strip-prefix
- name: common-headers
- name: hsts-headers
- match: Host(`docs.pidgin.im`) && PathPrefix(`/talkatu/latest`)
kind: Rule
services:
- name: docs-talkatu-latest
port: 3000
middlewares:
- name: docs-strip-prefix
- name: common-headers
- name: hsts-headers
tls:
secretName: docs-tls
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: docs-tls
spec:
secretName: docs-tls
issuerRef:
name: letsencrypt
commonName: docs.pidgin.im
dnsNames:
- docs.pidgin.im
---