Removed HPAs

This commit is contained in:
Marcus Noble 2022-05-25 14:28:40 +00:00
parent f3cb290d7b
commit 89e8a2768f
2 changed files with 75 additions and 72 deletions

View File

@ -1,73 +1,73 @@
apiVersion: autoscaling/v2beta2 # apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler # kind: HorizontalPodAutoscaler
metadata: # metadata:
name: mastodon-web # name: mastodon-web
namespace: mastodon # namespace: mastodon
labels: # labels:
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
spec: # spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: mastodon-web # name: mastodon-web
minReplicas: 2 # minReplicas: 2
maxReplicas: 6 # maxReplicas: 6
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
averageUtilization: 80 # averageUtilization: 80
type: Utilization # type: Utilization
--- # ---
apiVersion: autoscaling/v2beta2 # apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler # kind: HorizontalPodAutoscaler
metadata: # metadata:
name: mastodon-sidekiq # name: mastodon-sidekiq
namespace: mastodon # namespace: mastodon
labels: # labels:
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
spec: # spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: mastodon-sidekiq # name: mastodon-sidekiq
minReplicas: 2 # minReplicas: 2
maxReplicas: 6 # maxReplicas: 6
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
averageUtilization: 80 # averageUtilization: 80
type: Utilization # type: Utilization
--- # ---
apiVersion: autoscaling/v2beta2 # apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler # kind: HorizontalPodAutoscaler
metadata: # metadata:
name: mastodon-streaming # name: mastodon-streaming
namespace: mastodon # namespace: mastodon
labels: # labels:
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
spec: # spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: mastodon-streaming # name: mastodon-streaming
minReplicas: 2 # minReplicas: 2
maxReplicas: 6 # maxReplicas: 6
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
averageUtilization: 80 # averageUtilization: 80
type: Utilization # type: Utilization
--- # ---

View File

@ -68,6 +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: 5
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: mastodon app.kubernetes.io/name: mastodon
@ -138,6 +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: 3
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: mastodon app.kubernetes.io/name: mastodon
@ -220,6 +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: 4
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: mastodon app.kubernetes.io/name: mastodon