matrix.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ---
  2. kind: Deployment
  3. apiVersion: apps/v1
  4. metadata:
  5. name: matrix
  6. labels:
  7. app: matrix
  8. spec:
  9. replicas: 1
  10. selector:
  11. matchLabels:
  12. app: matrix
  13. template:
  14. metadata:
  15. labels:
  16. app: matrix
  17. spec:
  18. containers:
  19. - name: matrix
  20. image: ghcr.io/element-hq/synapse
  21. env:
  22. - name: SYNAPSE_SERVER_NAME
  23. value: "matrix.dezendorf.net"
  24. ports:
  25. - name: web
  26. containerPort: 8008
  27. ---
  28. apiVersion: v1
  29. kind: Service
  30. metadata:
  31. name: matrix
  32. spec:
  33. type: ClusterIP
  34. ports:
  35. - name: web
  36. port: 8008
  37. selector:
  38. app: matrix
  39. ---
  40. apiVersion: traefik.containo.us/v1alpha1
  41. kind: IngressRoute
  42. metadata:
  43. name: matrix-ingress-route
  44. namespace: default
  45. spec:
  46. entryPoints:
  47. - web
  48. routes:
  49. - match: ((Host(`matrix`)||Host(`matrix.dezendorf.net`)))
  50. kind: Rule
  51. priority: 1
  52. services:
  53. - name: matrix
  54. port: 8008
  55. ---
  56. apiVersion: traefik.containo.us/v1alpha1
  57. kind: IngressRoute
  58. metadata:
  59. name: matrix-websecure-route
  60. namespace: default
  61. spec:
  62. entryPoints:
  63. - websecure
  64. routes:
  65. - match: Host(`matrix.dezendorf.net`)
  66. kind: Rule
  67. services:
  68. - name: matrix
  69. port: 8008
  70. tls:
  71. certResolver: myresolver