From c37c22eb4f7101dbb825eebe0260e134ca5a4e91 Mon Sep 17 00:00:00 2001 From: Finn Date: Wed, 30 Oct 2024 14:59:42 -0700 Subject: [PATCH] remove meshtastic deploy from this repo, let it deploy itself --- .../matrix-bridge-meshtastic-deployer.yaml | 4 +- k8s/meshtastic/kustomization.yaml | 3 +- k8s/meshtastic/matrix-bridge-meshtastic.yaml | 44 ------------------- 3 files changed, 4 insertions(+), 47 deletions(-) delete mode 100644 k8s/meshtastic/matrix-bridge-meshtastic.yaml diff --git a/k8s/external-account-rbac/matrix-bridge-meshtastic-deployer.yaml b/k8s/external-account-rbac/matrix-bridge-meshtastic-deployer.yaml index 687a99e..e682612 100644 --- a/k8s/external-account-rbac/matrix-bridge-meshtastic-deployer.yaml +++ b/k8s/external-account-rbac/matrix-bridge-meshtastic-deployer.yaml @@ -4,8 +4,8 @@ metadata: name: matrix-bridge-meshtastic-deployer namespace: meshtastic rules: - - apiGroups: ["apps"] - resources: ["deployments"] + - apiGroups: ["v1"] + resources: ["statefulsets"] verbs: ["get", "patch"] --- apiVersion: rbac.authorization.k8s.io/v1 diff --git a/k8s/meshtastic/kustomization.yaml b/k8s/meshtastic/kustomization.yaml index 9e2c28a..0f315f8 100644 --- a/k8s/meshtastic/kustomization.yaml +++ b/k8s/meshtastic/kustomization.yaml @@ -3,9 +3,10 @@ kind: Kustomization namespace: meshtastic resources: - namespace.yaml - - matrix-bridge-meshtastic.yaml - secrets.yaml configMapGenerator: - name: matrix-bridge-meshtastic + options: + disableNameSuffixHash: true files: - matrix-bridge-meshtastic/config.json diff --git a/k8s/meshtastic/matrix-bridge-meshtastic.yaml b/k8s/meshtastic/matrix-bridge-meshtastic.yaml deleted file mode 100644 index ac837ca..0000000 --- a/k8s/meshtastic/matrix-bridge-meshtastic.yaml +++ /dev/null @@ -1,44 +0,0 @@ -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