Page MenuHomePhorge

element-deployment.yaml
No OneTemporary

Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None

element-deployment.yaml

{{- if and .Values.matrix.enabled -}}
{{- if and .Values.element.customConfig -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: element-config
data:
config.json: |
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://{{ template "kolab.websiteDomain" . }}",
"server_name": "matrix.kolab"
},
"m.identity_server": {
"base_url": "https://{{ template "kolab.websiteDomain" . }}"
}
},
"brand": "Kolab Chat"
"permalink_prefix": "https://{{ template "kolab.websiteDomain" . }}"
"disable_custom_urls": true,
"disable_guests": true,
"disable_login_language_selector": false,
"disable_3pid_login": true,
"brand": "Kolab Chat",
"integrations_ui_url": null,
"integrations_rest_url": null,
"integrations_widgets_urls": [
],
"bug_report_endpoint_url": "https://element.io/bugreports/submit",
"default_country_code": "GB",
"show_labs_settings": false,
"features": { },
"default_federate": false,
"default_theme": "light",
"room_directory": {
"servers": [
"{{ template "kolab.websiteDomain" . }}"
]
},
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false,
"https://{{ template "kolab.websiteDomain" . }}": true
},
"setting_defaults": {
"breadcrumbs": true
},
"jitsi": {}
}
---
{{- end }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: element
annotations:
alpha.image.policy.openshift.io/resolve-names: '*'
spec:
selector:
matchLabels:
app: element
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: element
spec:
containers:
- name: element
image: {{ .Values.image.elementImage }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{- toYaml .Values.element.resources | nindent 10 }}
{{- if and .Values.element.customConfig -}}
volumeMounts:
- name: config-volume
mountPath: /opt/element-web/config.json
subPath: config.json
{{- end }}
env:
- name: APP_DOMAIN
value: {{ template "kolab.websiteDomain" . }}
ports:
- containerPort: 8880
name: element
protocol: TCP
readinessProbe:
httpGet:
path: /
port: element
initialDelaySeconds: 2
periodSeconds: 3
livenessProbe:
httpGet:
path: /
port: element
initialDelaySeconds: 10
periodSeconds: 10
{{- if and .Values.element.customConfig -}}
volumes:
- name: config-volume
configMap:
name: element-config
{{- end }}
---
apiVersion: v1
kind: Service
metadata:
name: element
spec:
selector:
app: element
ports:
- name: webserver
protocol: TCP
port: 8880
targetPort: 8880
{{- end }}

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 3:08 AM (6 h, 29 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0d/16/39b64a1948fddeecce7a1d99ee9d
Default Alt Text
element-deployment.yaml (3 KB)

Event Timeline