Scale down Mastodon

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-11-14 11:55:34 +00:00
parent 2e4bebc6a6
commit 244dea83ec
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 39 additions and 39 deletions

View File

@ -68,7 +68,7 @@ metadata:
configmap.reloader.stakater.com/reload: "mastodon-env" configmap.reloader.stakater.com/reload: "mastodon-env"
secret.reloader.stakater.com/reload: "mastodon" secret.reloader.stakater.com/reload: "mastodon"
spec: spec:
replicas: 2 replicas: 0
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: mastodon app.kubernetes.io/name: mastodon
@ -139,7 +139,7 @@ metadata:
configmap.reloader.stakater.com/reload: "mastodon-env" configmap.reloader.stakater.com/reload: "mastodon-env"
secret.reloader.stakater.com/reload: "mastodon" secret.reloader.stakater.com/reload: "mastodon"
spec: spec:
replicas: 2 replicas: 0
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: mastodon app.kubernetes.io/name: mastodon
@ -222,7 +222,7 @@ metadata:
configmap.reloader.stakater.com/reload: "mastodon-env" configmap.reloader.stakater.com/reload: "mastodon-env"
secret.reloader.stakater.com/reload: "mastodon" secret.reloader.stakater.com/reload: "mastodon"
spec: spec:
replicas: 2 replicas: 0
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: mastodon app.kubernetes.io/name: mastodon

View File

@ -1,41 +1,41 @@
apiVersion: policy/v1 # apiVersion: policy/v1
kind: PodDisruptionBudget # kind: PodDisruptionBudget
metadata: # metadata:
name: mastodon-web # name: mastodon-web
spec: # spec:
minAvailable: 1 # minAvailable: 1
selector: # selector:
matchLabels: # matchLabels:
app.kubernetes.io/name: mastodon # app.kubernetes.io/name: mastodon
app.kubernetes.io/instance: "k8s.social" # app.kubernetes.io/instance: "k8s.social"
app.kubernetes.io/component: web # app.kubernetes.io/component: web
--- # ---
apiVersion: policy/v1 # apiVersion: policy/v1
kind: PodDisruptionBudget # kind: PodDisruptionBudget
metadata: # metadata:
name: mastodon-streaming # name: mastodon-streaming
spec: # spec:
minAvailable: 1 # minAvailable: 1
selector: # selector:
matchLabels: # matchLabels:
app.kubernetes.io/name: mastodon # app.kubernetes.io/name: mastodon
app.kubernetes.io/instance: "k8s.social" # app.kubernetes.io/instance: "k8s.social"
app.kubernetes.io/component: streaming # app.kubernetes.io/component: streaming
--- # ---
apiVersion: policy/v1 # apiVersion: policy/v1
kind: PodDisruptionBudget # kind: PodDisruptionBudget
metadata: # metadata:
name: mastodon-sidekiq # name: mastodon-sidekiq
spec: # spec:
minAvailable: 1 # minAvailable: 1
selector: # selector:
matchLabels: # matchLabels:
app.kubernetes.io/name: mastodon # app.kubernetes.io/name: mastodon
app.kubernetes.io/instance: "k8s.social" # app.kubernetes.io/instance: "k8s.social"
app.kubernetes.io/component: sidekiq # app.kubernetes.io/component: sidekiq
--- # ---