cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

keydb.yaml (1320B)


      1 apiVersion: apps/v1
      2 kind: Deployment
      3 metadata:
      4   name: matrix-synapse-keydb
      5 spec:
      6   replicas: 1
      7   selector:
      8     matchLabels:
      9       app: matrix-synapse-keydb
     10   template:
     11     metadata:
     12       labels:
     13         app: matrix-synapse-keydb
     14     spec:
     15       containers:
     16         - name: matrix-synapse-keydb
     17           image: eqalpha/keydb:latest
     18           command: ["keydb-server"]
     19           args: ["/etc/keydb/keydb.conf", "--protected-mode", "no"]
     20           imagePullPolicy: Always
     21           ports:
     22             - containerPort: 6379
     23           resources:
     24             requests:
     25               memory: "128Mi"
     26               cpu: "100m"
     27             limits: {}
     28       tolerations:
     29         - key: arch
     30           operator: Equal
     31           value: arm64
     32           effect: NoSchedule
     33       livenessProbe:
     34         exec:
     35           command:
     36             - sh
     37             - -c
     38             - keydb-cli ping
     39         initialDelaySeconds: 10
     40         timeoutSeconds: 5
     41       readinessProbe:
     42         exec:
     43           command:
     44             - sh
     45             - -c
     46             - keydb-cli ping
     47         initialDelaySeconds: 10
     48         timeoutSeconds: 5
     49 ---
     50 apiVersion: v1
     51 kind: Service
     52 metadata:
     53   name: matrix-synapse-keydb
     54 spec:
     55   selector:
     56     app: matrix-synapse-keydb
     57   ports:
     58     - name: redis
     59       protocol: TCP
     60       port: 6379
     61       targetPort: 6379