Skip to content

Instantly share code, notes, and snippets.

@davoult
Created August 10, 2021 07:25
Show Gist options
  • Save davoult/6707888e5aa641e4246c53ef55787721 to your computer and use it in GitHub Desktop.
Save davoult/6707888e5aa641e4246c53ef55787721 to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: signald
name: signald
namespace: matrix
spec:
replicas: 1
selector:
matchLabels:
app: signald
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: signald
spec:
containers:
- image: finn/signald
name: signald
volumeMounts:
- mountPath: /signald
name: signald
- mountPath: /data
name: signal-data
volumes:
- name: signald
persistentVolumeClaim:
claimName: pvc-signald
- name: signal-data
persistentVolumeClaim:
claimName: pvc-signaldata
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: signal-db
name: signal-db
namespace: matrix
spec:
replicas: 1
selector:
matchLabels:
app: signal-db
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: signal-db
spec:
containers:
- image: postgres
env:
- name: POSTGRES_USER
value: mautrixsignal
- name: POSTGRES_DATABASE
value: mautrixsignal
- name: POSTGRES_PASSWORD
value: changeme
name: signal-db
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: signal-db
subPath: postgres
volumes:
- name: signal-db
persistentVolumeClaim:
claimName: pvc-signaldb
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: mautrix-signal
name: mautrix-signal
namespace: matrix
spec:
replicas: 1
selector:
matchLabels:
app: mautrix-signal
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: mautrix-signal
spec:
containers:
- image: dock.mau.dev/mautrix/signal
name: mautrix-signal
volumeMounts:
- mountPath: /data
name: signal-data
- mountPath: /signald
name: signald
volumes:
- name: signald
persistentVolumeClaim:
claimName: pvc-signald
- name: signal-data
persistentVolumeClaim:
claimName: pvc-signaldata
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: db
namespace: matrix
spec:
selector:
app: signal-db
ports:
- protocol: TCP
port: 5432
targetPort: 5432
---
apiVersion: v1
kind: Service
metadata:
name: signal
namespace: matrix
spec:
type: NodePort
selector:
app: mautrix-signal
ports:
- protocol: TCP
port: 29328
targetPort: 29328
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-signald
namespace: matrix
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-signaldata
namespace: matrix
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-signaldata
namespace: matrix
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-signaldb
namespace: matrix
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment