Revert "remove meshtastic deploy from this repo, let it deploy itself"
This reverts commit c37c22eb4f
.
This commit is contained in:
parent
c37c22eb4f
commit
07c08e1eef
3 changed files with 47 additions and 4 deletions
|
@ -4,8 +4,8 @@ metadata:
|
||||||
name: matrix-bridge-meshtastic-deployer
|
name: matrix-bridge-meshtastic-deployer
|
||||||
namespace: meshtastic
|
namespace: meshtastic
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: ["v1"]
|
- apiGroups: ["apps"]
|
||||||
resources: ["statefulsets"]
|
resources: ["deployments"]
|
||||||
verbs: ["get", "patch"]
|
verbs: ["get", "patch"]
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
|
|
@ -3,10 +3,9 @@ kind: Kustomization
|
||||||
namespace: meshtastic
|
namespace: meshtastic
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
|
- matrix-bridge-meshtastic.yaml
|
||||||
- secrets.yaml
|
- secrets.yaml
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: matrix-bridge-meshtastic
|
- name: matrix-bridge-meshtastic
|
||||||
options:
|
|
||||||
disableNameSuffixHash: true
|
|
||||||
files:
|
files:
|
||||||
- matrix-bridge-meshtastic/config.json
|
- matrix-bridge-meshtastic/config.json
|
||||||
|
|
44
k8s/meshtastic/matrix-bridge-meshtastic.yaml
Normal file
44
k8s/meshtastic/matrix-bridge-meshtastic.yaml
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: matrix-bridge-meshtastic
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: matrix-bridge-meshtastic
|
||||||
|
serviceName: matrix-bridge-meshtastic
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: matrix-bridge-meshtastic
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: matrix-bridge-meshtastic
|
||||||
|
image: git.janky.solutions/finn/matrix-bridge-meshtastic:sha-fae2a30
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
env:
|
||||||
|
- name: MATRIX_BRIDGE_MESHTASTIC_CONFIG
|
||||||
|
value: /config/config.json
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: matrix-bridge-meshtastic
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: matrix-bridge-meshtastic
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: data
|
||||||
|
spec:
|
||||||
|
storageClassName: longhorn
|
||||||
|
accessModes: ["ReadWriteOnce"]
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
Loading…
Reference in a new issue