Added telegram bridge
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
f809edbfbd
commit
6d0483e47c
@ -492,6 +492,9 @@ spec:
|
|||||||
- name: mautrix-signal-registration
|
- name: mautrix-signal-registration
|
||||||
mountPath: /data/mautrix-signal-registration.yaml
|
mountPath: /data/mautrix-signal-registration.yaml
|
||||||
subPath: registration.yaml
|
subPath: registration.yaml
|
||||||
|
- name: mautrix-telegram-registration
|
||||||
|
mountPath: /data/mautrix-telegram-registration.yaml
|
||||||
|
subPath: registration.yaml
|
||||||
- name: synapse-config-logging
|
- name: synapse-config-logging
|
||||||
mountPath: /data/matrix.cluster.fun.log.config
|
mountPath: /data/matrix.cluster.fun.log.config
|
||||||
subPath: matrix.cluster.fun.log.config
|
subPath: matrix.cluster.fun.log.config
|
||||||
@ -541,6 +544,9 @@ spec:
|
|||||||
- name: mautrix-signal-registration
|
- name: mautrix-signal-registration
|
||||||
secret:
|
secret:
|
||||||
secretName: mautrix-signal-registration
|
secretName: mautrix-signal-registration
|
||||||
|
- name: mautrix-telegram-registration
|
||||||
|
secret:
|
||||||
|
secretName: mautrix-telegram-registration
|
||||||
- name: signing-key
|
- name: signing-key
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: chat-matrix-signing-key
|
claimName: chat-matrix-signing-key
|
||||||
|
@ -44,7 +44,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 29318
|
- port: 29328
|
||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
@ -108,7 +108,7 @@ spec:
|
|||||||
value: "UTC"
|
value: "UTC"
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 29318
|
containerPort: 29328
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: metrics
|
- name: metrics
|
||||||
containerPort: 9000
|
containerPort: 9000
|
||||||
|
143
manifests/matrix_chart/telegram_bridge.yaml
Normal file
143
manifests/matrix_chart/telegram_bridge.yaml
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: mautrix-telegram-registration
|
||||||
|
namespace: chat
|
||||||
|
annotations:
|
||||||
|
kube-1password: dancy7ogc4gjlxhfntqejgudwi
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/secret-text-key: registration.yaml
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: "mautrix-telegram"
|
||||||
|
component: registration
|
||||||
|
type: Opaque
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: mautrix-telegram-config
|
||||||
|
namespace: chat
|
||||||
|
annotations:
|
||||||
|
kube-1password: nilzdpfum35hhwijnwvasbzmcq
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/secret-text-key: config.yaml
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: "mautrix-telegram"
|
||||||
|
component: config
|
||||||
|
type: Opaque
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: mautrix-telegram
|
||||||
|
namespace: chat
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: mautrix-telegram
|
||||||
|
annotations:
|
||||||
|
prometheus.io/scrape: "true"
|
||||||
|
prometheus.io/path: "/metrics"
|
||||||
|
prometheus.io/port: "9000"
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 29318
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: mautrix-telegram
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mautrix-telegram
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: mautrix-telegram
|
||||||
|
spec:
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: mautrix-telegram
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: mautrix-telegram
|
||||||
|
spec:
|
||||||
|
serviceAccountName: default
|
||||||
|
automountServiceAccountToken: true
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
enableServiceLinks: true
|
||||||
|
initContainers:
|
||||||
|
- name: config-copy
|
||||||
|
image: bash:latest
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
args:
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
cp /secrets/* /data/
|
||||||
|
volumeMounts:
|
||||||
|
- name: mautrix-telegram-config
|
||||||
|
mountPath: /secrets/config.yaml
|
||||||
|
subPath: config.yaml
|
||||||
|
- name: mautrix-telegram-registration
|
||||||
|
mountPath: /secrets/registration.yaml
|
||||||
|
subPath: registration.yaml
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
containers:
|
||||||
|
- name: mautrix-telegram
|
||||||
|
image: "dock.mau.dev/mautrix/telegram:v0.11.3"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
env:
|
||||||
|
- name: "TZ"
|
||||||
|
value: "UTC"
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 29318
|
||||||
|
protocol: TCP
|
||||||
|
- name: metrics
|
||||||
|
containerPort: 9000
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 29318
|
||||||
|
initialDelaySeconds: 0
|
||||||
|
failureThreshold: 3
|
||||||
|
timeoutSeconds: 1
|
||||||
|
periodSeconds: 10
|
||||||
|
readinessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 29318
|
||||||
|
initialDelaySeconds: 0
|
||||||
|
failureThreshold: 3
|
||||||
|
timeoutSeconds: 1
|
||||||
|
periodSeconds: 10
|
||||||
|
startupProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 29318
|
||||||
|
initialDelaySeconds: 0
|
||||||
|
failureThreshold: 30
|
||||||
|
timeoutSeconds: 1
|
||||||
|
periodSeconds: 5
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
emptyDir: {}
|
||||||
|
- name: mautrix-telegram-config
|
||||||
|
secret:
|
||||||
|
secretName: mautrix-telegram-config
|
||||||
|
- name: mautrix-telegram-registration
|
||||||
|
secret:
|
||||||
|
secretName: mautrix-telegram-registration
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user