Compare commits
No commits in common. "36a4adc02bd15daed3d86af656a7eab87d2b4aa3" and "7fbe57fc90e9547cf7b67d772d2544075ef97ca2" have entirely different histories.
36a4adc02b
...
7fbe57fc90
@ -33,10 +33,9 @@ spec:
|
|||||||
runAsUser: 991
|
runAsUser: 991
|
||||||
runAsGroup: 991
|
runAsGroup: 991
|
||||||
fsGroup: 991
|
fsGroup: 991
|
||||||
fsGroupChangePolicy: "OnRootMismatch"
|
|
||||||
containers:
|
containers:
|
||||||
- name: mastodon-web
|
- name: mastodon-web
|
||||||
image: ghcr.io/mastodon/mastodon:v4.3.8
|
image: ghcr.io/mastodon/mastodon:v4.3.7
|
||||||
command: ["bundle", "exec", "puma", "-C", "config/puma.rb"]
|
command: ["bundle", "exec", "puma", "-C", "config/puma.rb"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
@ -122,7 +121,7 @@ spec:
|
|||||||
- mountPath: "/mastodon/public/system"
|
- mountPath: "/mastodon/public/system"
|
||||||
name: mastodon-data
|
name: mastodon-data
|
||||||
- name: mastodon-streaming
|
- name: mastodon-streaming
|
||||||
image: ghcr.io/mastodon/mastodon-streaming:v4.3.8
|
image: ghcr.io/mastodon/mastodon-streaming:v4.3.7
|
||||||
command: ["node", "./streaming/index.js"]
|
command: ["node", "./streaming/index.js"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4000
|
- containerPort: 4000
|
||||||
@ -148,7 +147,7 @@ spec:
|
|||||||
- name: REDIS_PORT
|
- name: REDIS_PORT
|
||||||
value: "6379"
|
value: "6379"
|
||||||
- name: mastodon-sidekiq
|
- name: mastodon-sidekiq
|
||||||
image: ghcr.io/mastodon/mastodon:v4.3.8
|
image: ghcr.io/mastodon/mastodon:v4.3.7
|
||||||
command: ["bundle", "exec", "sidekiq"]
|
command: ["bundle", "exec", "sidekiq"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9395
|
- containerPort: 9395
|
||||||
@ -216,48 +215,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: "/mastodon/public/system"
|
- mountPath: "/mastodon/public/system"
|
||||||
name: mastodon-data
|
name: mastodon-data
|
||||||
volumes:
|
|
||||||
- name: mastodon-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: mastodon-pvc
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: redis
|
|
||||||
namespace: mastodon
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: redis
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: redis
|
|
||||||
spec:
|
|
||||||
affinity:
|
|
||||||
podAffinity:
|
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- weight: 100
|
|
||||||
podAffinityTerm:
|
|
||||||
labelSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- key: cnpg.io/cluster
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- mastodon-db
|
|
||||||
- key: cnpg.io/instanceRole
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- primary
|
|
||||||
topologyKey: "kubernetes.io/hostname"
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
|
||||||
fsGroupChangePolicy: "OnRootMismatch"
|
|
||||||
containers:
|
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis:7.4.2
|
image: redis:7.4.2
|
||||||
ports:
|
ports:
|
||||||
@ -266,6 +223,9 @@ spec:
|
|||||||
- mountPath: "/data"
|
- mountPath: "/data"
|
||||||
name: redis-data
|
name: redis-data
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: mastodon-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: mastodon-pvc
|
||||||
- name: redis-data
|
- name: redis-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: redis-pvc
|
claimName: redis-pvc
|
||||||
|
@ -14,12 +14,14 @@ spec:
|
|||||||
storage: 50Gi
|
storage: 50Gi
|
||||||
storageClassName: redundant-storage-class
|
storageClassName: redundant-storage-class
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: redis-pvc
|
name: redis-pvc
|
||||||
namespace: mastodon
|
namespace: mastodon
|
||||||
|
labels:
|
||||||
|
recurring-job.longhorn.io/source: enabled
|
||||||
|
recurring-job-group.longhorn.io/standard-pvc: enabled
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
|
@ -4,7 +4,7 @@ metadata:
|
|||||||
name: redis-svc
|
name: redis-svc
|
||||||
namespace: mastodon
|
namespace: mastodon
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis
|
app.kubernetes.io/name: mastodon
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
@ -12,4 +12,4 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 6379
|
targetPort: 6379
|
||||||
selector:
|
selector:
|
||||||
app: redis
|
app: mastodon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user