cinny.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. ---
  2. kind: Deployment
  3. apiVersion: apps/v1
  4. metadata:
  5. name: cinny
  6. labels:
  7. app: cinny
  8. spec:
  9. replicas: 1
  10. selector:
  11. matchLabels:
  12. app: cinny
  13. template:
  14. metadata:
  15. labels:
  16. app: cinny
  17. spec:
  18. dnsPolicy: ClusterFirst
  19. dnsConfig:
  20. nameservers:
  21. - 8.8.8.8
  22. containers:
  23. - name: cinny
  24. image: ghcr.io/cinnyapp/cinny:v4.6.0
  25. #command: ["/bin/bash", "-c", "--"]
  26. #args: ["while true; do sleep 3; done;"]
  27. ports:
  28. - name: web
  29. containerPort: 80
  30. volumeMounts:
  31. - name: "cinny-config"
  32. mountPath: "/app/config.json"
  33. subPath: "config-json"
  34. readOnly: no
  35. volumes:
  36. - name: "cinny-config"
  37. configMap:
  38. defaultMode: 0777
  39. name: "cinny-config"
  40. ---
  41. apiVersion: v1
  42. kind: Service
  43. metadata:
  44. name: cinny
  45. spec:
  46. type: ClusterIP
  47. ports:
  48. - name: web
  49. port: 80
  50. selector:
  51. app: cinny
  52. ---
  53. apiVersion: traefik.containo.us/v1alpha1
  54. kind: IngressRoute
  55. metadata:
  56. name: cinny-ingress-route
  57. namespace: default
  58. spec:
  59. entryPoints:
  60. - web
  61. routes:
  62. - match: ((Host(`cinny`)||Host(`cinny.dezendorf.net`)))
  63. kind: Rule
  64. priority: 1
  65. services:
  66. - name: cinny
  67. port: 80
  68. ---
  69. apiVersion: traefik.containo.us/v1alpha1
  70. kind: IngressRoute
  71. metadata:
  72. name: cinny-websecure-route
  73. namespace: default
  74. spec:
  75. entryPoints:
  76. - websecure
  77. routes:
  78. - match: Host(`cinny.dezendorf.net`)
  79. kind: Rule
  80. services:
  81. - name: cinny
  82. port: 80
  83. tls:
  84. certResolver: myresolver
  85. ---
  86. apiVersion: v1
  87. kind: ConfigMap
  88. metadata:
  89. name: cinny-config
  90. namespace: default
  91. data:
  92. config-json: |
  93. {
  94. "defaultHomeserver": 1,
  95. "homeserverList": [
  96. "matrix.dezendorf.net"
  97. ],
  98. "allowCustomHomeservers": true,
  99. "featuredCommunities": {
  100. "openAsDefault": false,
  101. "spaces": [
  102. "#cinny-space:matrix.org",
  103. "#community:matrix.org",
  104. "#space:envs.net",
  105. "#science-space:matrix.org",
  106. "#libregaming-games:tchncs.de",
  107. "#mathematics-on:matrix.org"
  108. ],
  109. "rooms": [
  110. "#cinny:matrix.org",
  111. "#freesoftware:matrix.org",
  112. "#pcapdroid:matrix.org",
  113. "#gentoo:matrix.org",
  114. "#PrivSec.dev:arcticfoxes.net",
  115. "#disroot:aria-net.org"
  116. ],
  117. "servers": ["matrix.dezendorf.net"]
  118. },
  119. "hashRouter": {
  120. "enabled": false,
  121. "basename": "/"
  122. }
  123. }