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
kind: HorizontalPodAutoscaler
metadata:
name: mastodon-web
namespace: mastodon
labels:
app.kubernetes.io/name: mastodon
app.kubernetes.io/instance: "k8s.social"
app.kubernetes.io/component: web
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: mastodon-web
minReplicas: 2
maxReplicas: 6
metrics:
- type: Resource
resource:
name: cpu
target:
averageUtilization: 80
type: Utilization
---
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: mastodon-sidekiq
namespace: mastodon
labels:
app.kubernetes.io/name: mastodon
app.kubernetes.io/instance: "k8s.social"
app.kubernetes.io/component: sidekiq
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: mastodon-sidekiq
minReplicas: 2
maxReplicas: 6
metrics:
- type: Resource
resource:
name: cpu
target:
averageUtilization: 80
type: Utilization
---
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: mastodon-streaming
namespace: mastodon
labels:
app.kubernetes.io/name: mastodon
app.kubernetes.io/instance: "k8s.social"
app.kubernetes.io/component: streaming
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: mastodon-streaming
minReplicas: 2
maxReplicas: 6
metrics:
- type: Resource
resource:
name: cpu
target:
averageUtilization: 80
type: Utilization
---
# apiVersion: autoscaling/v2beta2
# kind: HorizontalPodAutoscaler
# metadata:
# name: mastodon-web
# namespace: mastodon
# labels:
# app.kubernetes.io/name: mastodon
# app.kubernetes.io/instance: "k8s.social"
# app.kubernetes.io/component: web
# spec:
# scaleTargetRef:
# apiVersion: apps/v1
# kind: Deployment
# name: mastodon-web
# minReplicas: 2
# maxReplicas: 6
# metrics:
# - type: Resource
# resource:
# name: cpu
# target:
# averageUtilization: 80
# type: Utilization
# ---
# apiVersion: autoscaling/v2beta2
# kind: HorizontalPodAutoscaler
# metadata:
# name: mastodon-sidekiq
# namespace: mastodon
# labels:
# app.kubernetes.io/name: mastodon
# app.kubernetes.io/instance: "k8s.social"
# app.kubernetes.io/component: sidekiq
# spec:
# scaleTargetRef:
# apiVersion: apps/v1
# kind: Deployment
# name: mastodon-sidekiq
# minReplicas: 2
# maxReplicas: 6
# metrics:
# - type: Resource
# resource:
# name: cpu
# target:
# averageUtilization: 80
# type: Utilization
# ---
# apiVersion: autoscaling/v2beta2
# kind: HorizontalPodAutoscaler
# metadata:
# name: mastodon-streaming
# namespace: mastodon
# labels:
# app.kubernetes.io/name: mastodon
# app.kubernetes.io/instance: "k8s.social"
# app.kubernetes.io/component: streaming
# spec:
# scaleTargetRef:
# apiVersion: apps/v1
# kind: Deployment
# name: mastodon-streaming
# minReplicas: 2
# maxReplicas: 6
# metrics:
# - type: Resource
# resource:
# name: cpu
# target:
# averageUtilization: 80
# type: Utilization
# ---

View File

@ -68,6 +68,7 @@ metadata:
configmap.reloader.stakater.com/reload: "mastodon-env"
secret.reloader.stakater.com/reload: "mastodon"
spec:
replicas: 5
selector:
matchLabels:
app.kubernetes.io/name: mastodon
@ -138,6 +139,7 @@ metadata:
configmap.reloader.stakater.com/reload: "mastodon-env"
secret.reloader.stakater.com/reload: "mastodon"
spec:
replicas: 3
selector:
matchLabels:
app.kubernetes.io/name: mastodon
@ -220,6 +222,7 @@ metadata:
configmap.reloader.stakater.com/reload: "mastodon-env"
secret.reloader.stakater.com/reload: "mastodon"
spec:
replicas: 4
selector:
matchLabels:
app.kubernetes.io/name: mastodon