cluster

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

pantalaimon.yaml (1990B)


      1 apiVersion: v1
      2 data:
      3   pantalaimon.conf: |
      4     [Default]
      5     LogLevel = Debug
      6     SSL = True
      7 
      8     [local-matrix]
      9     Homeserver = https://matrix.midnightthoughts.space
     10     ListenAddress = 0.0.0.0
     11     ListenPort = 8008
     12     SSL = True
     13     UseKeyring = False
     14     IgnoreVerification = True
     15 kind: ConfigMap
     16 metadata:
     17   name: pantalaimon-freifunk-config
     18   namespace: matrix
     19 ---
     20 apiVersion: apps/v1
     21 kind: Deployment
     22 metadata:
     23   name: pantalaimon-freifunk
     24   namespace: matrix
     25 spec:
     26   replicas: 1
     27   selector:
     28     matchLabels:
     29       app: pantalaimon-freifunk
     30   strategy:
     31     rollingUpdate:
     32       maxSurge: 25%
     33       maxUnavailable: 25%
     34     type: RollingUpdate
     35   template:
     36     metadata:
     37       labels:
     38         app: pantalaimon-freifunk
     39     spec:
     40       containers:
     41         - image: ghcr.io/mtrnord/cluster/pantalaimon:0.10.5
     42           imagePullPolicy: IfNotPresent
     43           livenessProbe:
     44             failureThreshold: 3
     45             httpGet:
     46               path: /_matrix/client/v3/login
     47               port: 8008
     48             initialDelaySeconds: 5
     49             periodSeconds: 30
     50             successThreshold: 1
     51             timeoutSeconds: 10
     52           name: pantalaimon-freifunk-container
     53           readinessProbe:
     54             httpGet:
     55               path: /_matrix/client/v3/login
     56               port: 8008
     57             initialDelaySeconds: 5
     58             periodSeconds: 30
     59           securityContext:
     60             allowPrivilegeEscalation: false
     61             capabilities:
     62               drop:
     63                 - ALL
     64             readOnlyRootFilesystem: true
     65             #runAsNonRoot: true
     66           volumeMounts:
     67             - mountPath: /data/pantalaimon.conf
     68               name: config-volume
     69               subPath: pantalaimon.conf
     70             - mountPath: /data
     71               name: storage
     72       volumes:
     73         - configMap:
     74             name: pantalaimon-freifunk-config
     75           name: config-volume
     76         - name: storage
     77           persistentVolumeClaim:
     78             claimName: pantalaimon-freifunk-v2