Add Element

This commit is contained in:
Rob Watson 2022-05-11 20:21:35 +02:00
parent 952fbf0016
commit 3c3862f351
10 changed files with 200 additions and 0 deletions

View File

@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: element
labels:
app.kubernetes.io/name: element
app.kubernetes.io/instance: element
spec:
selector:
matchLabels:
app.kubernetes.io/name: element
app.kubernetes.io/instance: element
template:
metadata:
labels:
app.kubernetes.io/name: element
app.kubernetes.io/instance: element
spec:
containers:
- name: element
image: vectorim/element-web:latest
volumeMounts:
- name: config
mountPath: /app/config.json
subPath: config.json
ports:
- containerPort: 80
name: http
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
resources:
requests:
memory: "32Mi"
cpu: "50m"
limits:
memory: "64Mi"
cpu: "500m"
volumes:
- name: config
configMap:
name: element-config

View File

@ -26,3 +26,13 @@ spec:
name: invidious
port:
name: http
- host: element
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: element
port:
name: http

View File

@ -74,3 +74,6 @@ resources:
- deploy-invidious.yaml
- svc-invidious.yaml
- deploy-element.yaml
- svc-element.yaml

View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/instance: element
app.kubernetes.io/name: element
name: element
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/instance: element
app.kubernetes.io/name: element
type: ClusterIP

View File

@ -0,0 +1,54 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://matrix-client.matrix.org",
"server_name": "matrix.org"
},
"m.identity_server": {
"base_url": "https://vector.im"
}
},
"disable_custom_urls": false,
"disable_guests": false,
"disable_login_language_selector": false,
"disable_3pid_login": false,
"brand": "Element",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [
"https://scalar.vector.im/_matrix/integrations/v1",
"https://scalar.vector.im/api",
"https://scalar-staging.vector.im/_matrix/integrations/v1",
"https://scalar-staging.vector.im/api",
"https://scalar-staging.riot.im/scalar/api"
],
"bug_report_endpoint_url": "https://element.io/bugreports/submit",
"uisi_autorageshake_app": "element-auto-uisi",
"default_country_code": "GB",
"show_labs_settings": false,
"features": { },
"default_federate": true,
"default_theme": "light",
"room_directory": {
"servers": [
"matrix.org"
]
},
"piwik": {
"url": "https://piwik.riot.im/",
"whitelisted_hs_urls": ["https://matrix.org"],
"whitelisted_is_urls": ["https://vector.im", "https://matrix.org"],
"siteId": 1
},
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
},
"setting_defaults": {
"breadcrumbs": true
},
"jitsi": {
"preferred_domain": "meet.element.io"
},
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx"
}

View File

@ -10,9 +10,14 @@
value:
- hosts:
- grafana.local
- invidious.local
- element.local
- op: replace
path: /spec/rules/0/host
value: grafana.local
- op: replace
path: /spec/rules/1/host
value: invidious.local
- op: replace
path: /spec/rules/2/host
value: element.local

View File

@ -29,6 +29,9 @@ configMapGenerator:
- name: invidious-config
files:
- config.yml=invidious-config.yaml
- name: element-config
files:
- config.json=element-config.json
secretGenerator:
- name: grafana-credentials

View File

@ -0,0 +1,55 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://synapse.netflux.io"
},
"m.identity_server": {
"base_url": "https://vector.im"
}
},
"disable_custom_urls": false,
"disable_guests": false,
"disable_login_language_selector": false,
"disable_3pid_login": false,
"brand": "Element",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [
"https://scalar.vector.im/_matrix/integrations/v1",
"https://scalar.vector.im/api",
"https://scalar-staging.vector.im/_matrix/integrations/v1",
"https://scalar-staging.vector.im/api",
"https://scalar-staging.riot.im/scalar/api"
],
"bug_report_endpoint_url": "https://element.io/bugreports/submit",
"uisi_autorageshake_app": "element-auto-uisi",
"default_country_code": "GB",
"show_labs_settings": false,
"features": { },
"default_federate": true,
"default_theme": "light",
"room_directory": {
"servers": [
"matrix.org",
"gitter.im",
"privacytools.io"
]
},
"piwik": {
"url": "https://piwik.riot.im/",
"whitelisted_hs_urls": ["https://matrix.org"],
"whitelisted_is_urls": ["https://vector.im", "https://matrix.org"],
"siteId": 1
},
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
},
"setting_defaults": {
"breadcrumbs": true
},
"jitsi": {
"preferred_domain": "meet.element.io"
},
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx"
}

View File

@ -11,6 +11,7 @@
- hosts:
- grafana.netflux.io
- tube.netflux.io
- element.netflux.io
secretName: prod-ingress-tls
- op: replace
path: /spec/rules/0/host
@ -18,3 +19,6 @@
- op: replace
path: /spec/rules/1/host
value: tube.netflux.io
- op: replace
path: /spec/rules/2/host
value: element.netflux.io

View File

@ -17,6 +17,9 @@ configMapGenerator:
- name: invidious-config
files:
- config.yml=invidious-config.yaml
- name: element-config
files:
- config.json=element-config.json
secretGenerator:
- name: prometheus-credentials