apiVersion: apps/v1 kind: Deployment metadata: name: mastodon namespace: mastodon labels: app: mastodon spec: replicas: 1 selector: matchLabels: app: mastodon template: metadata: labels: app: mastodon spec: containers: - name: web image: bv11-cr01.bessems.eu/proxy/tootsuite/mastodon args: - bash - -c - 'rm -f /mastodon/tmp/pids/server.pid; bundle exec rails db:migrate; bundle exec rails s -p 3000' envFrom: - secretRef: name: secret-mastodon ports: - name: web containerPort: 3000 volumeMounts: - mountPath: /mastodon/public/system name: flexvolsmb-mastodon-system - name: api image: bv11-cr01.bessems.eu/proxy/tootsuite/mastodon args: - node - ./streaming envFrom: - secretRef: name: secret-mastodon ports: - name: api containerPort: 4000 - name: backend image: bv11-cr01.bessems.eu/proxy/tootsuite/mastodon args: - bundle - exec - sidekiq envFrom: - secretRef: name: secret-mastodon volumeMounts: - mountPath: /mastodon/public/system name: flexvolsmb-mastodon-system - name: postgres image: bv11-cr01.bessems.eu/proxy/library/postgres:14-alpine env: - name: POSTGRES_USER value: mastodon - name: POSTGRES_PASSWORD value: mastodon - name: POSTGRES_DB value: mastodon ports: - name: db containerPort: 5432 volumeMounts: - mountPath: /var/lib/postgresql/data name: flexvolsmb-mastodon-db - name: redis image: bv11-cr01.bessems.eu/proxy/library/redis:alpine # args: # - redis-server # - --requirepass # - --appendonly yes ports: - name: redis containerPort: 6379 volumeMounts: - name: flexvolsmb-mastodon-redis mountPath: /data volumes: - name: flexvolsmb-mastodon-system persistentVolumeClaim: claimName: flexvolsmb-mastodon-system - name: flexvolsmb-mastodon-db persistentVolumeClaim: claimName: flexvolsmb-mastodon-db - name: flexvolsmb-mastodon-redis persistentVolumeClaim: claimName: flexvolsmb-mastodon-redis