cluster

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

web.yaml (1811B)


      1 apiVersion: apps/v1
      2 kind: Deployment
      3 metadata:
      4   name: wanderer-web
      5   namespace: wanderer
      6 spec:
      7   replicas: 1
      8   selector:
      9     matchLabels:
     10       app: wanderer-web
     11   strategy:
     12     type: Recreate
     13   template:
     14     metadata:
     15       labels:
     16         app: wanderer-web
     17     spec:
     18       containers:
     19         - name: web
     20           image: flomp/wanderer-web:latest
     21           ports:
     22             - containerPort: 3000
     23           env:
     24             - name: ORIGIN
     25               value: "https://wanderer.mtrnord.blog"
     26             - name: PUBLIC_POCKETBASE_URL
     27               value: "http://wanderer-db:8090"
     28             - name: MEILI_URL
     29               value: "http://wanderer-search:7700"
     30             - name: MEILI_MASTER_KEY
     31               valueFrom:
     32                 secretKeyRef:
     33                   name: wanderer-secrets
     34                   key: MEILI_MASTER_KEY
     35             - name: PUBLIC_DISABLE_SIGNUP
     36               value: "true"
     37             - name: PUBLIC_PRIVATE_INSTANCE
     38               value: "true"
     39             - name: BODY_SIZE_LIMIT
     40               value: "Infinity"
     41           volumeMounts:
     42             - name: uploads
     43               mountPath: /app/uploads
     44           livenessProbe:
     45             httpGet:
     46               path: /
     47               port: 3000
     48             initialDelaySeconds: 15
     49             periodSeconds: 15
     50             failureThreshold: 10
     51           readinessProbe:
     52             httpGet:
     53               path: /
     54               port: 3000
     55             initialDelaySeconds: 5
     56             periodSeconds: 10
     57             failureThreshold: 10
     58       volumes:
     59         - name: uploads
     60           persistentVolumeClaim:
     61             claimName: wanderer-uploads
     62 ---
     63 apiVersion: v1
     64 kind: Service
     65 metadata:
     66   name: wanderer-web
     67   namespace: wanderer
     68 spec:
     69   selector:
     70     app: wanderer-web
     71   ports:
     72     - port: 3000
     73       targetPort: 3000