Pin puppet master to a single Recreate replica #341
@@ -12,12 +12,13 @@ metadata:
|
|||||||
name: puppetserver-master
|
name: puppetserver-master
|
||||||
namespace: puppet
|
namespace: puppet
|
||||||
spec:
|
spec:
|
||||||
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/component: puppetserver
|
app.kubernetes.io/component: puppetserver
|
||||||
app.kubernetes.io/name: puppetserver
|
app.kubernetes.io/name: puppetserver
|
||||||
strategy:
|
strategy:
|
||||||
type: RollingUpdate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
apiVersion: autoscaling/v2
|
|
||||||
kind: HorizontalPodAutoscaler
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/component: puppetserver
|
|
||||||
app.kubernetes.io/instance: puppetserver
|
|
||||||
app.kubernetes.io/name: puppetserver
|
|
||||||
app.kubernetes.io/version: 8.8.0
|
|
||||||
name: puppetserver-masters-autoscaler
|
|
||||||
namespace: puppet
|
|
||||||
spec:
|
|
||||||
scaleTargetRef:
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
name: puppetserver-master
|
|
||||||
minReplicas: 2
|
|
||||||
maxReplicas: 5
|
|
||||||
metrics:
|
|
||||||
- resource:
|
|
||||||
name: cpu
|
|
||||||
target:
|
|
||||||
averageUtilization: 75
|
|
||||||
type: Utilization
|
|
||||||
type: Resource
|
|
||||||
behavior:
|
|
||||||
scaleUp:
|
|
||||||
stabilizationWindowSeconds: 60
|
|
||||||
policies:
|
|
||||||
- type: Percent
|
|
||||||
value: 50
|
|
||||||
periodSeconds: 15
|
|
||||||
scaleDown:
|
|
||||||
stabilizationWindowSeconds: 300
|
|
||||||
policies:
|
|
||||||
- type: Percent
|
|
||||||
value: 25
|
|
||||||
periodSeconds: 60
|
|
||||||
@@ -23,7 +23,6 @@ resources:
|
|||||||
- deployment_puppetdb.yaml
|
- deployment_puppetdb.yaml
|
||||||
- deployment_puppetserver-master.yaml
|
- deployment_puppetserver-master.yaml
|
||||||
- horizontalpodautoscaler_puppetserver-compilers-autoscaler.yaml
|
- horizontalpodautoscaler_puppetserver-compilers-autoscaler.yaml
|
||||||
- horizontalpodautoscaler_puppetserver-masters-autoscaler.yaml
|
|
||||||
- horizontalpodautoscaler_puppetserver-puppetboard-autoscaler.yaml
|
- horizontalpodautoscaler_puppetserver-puppetboard-autoscaler.yaml
|
||||||
- horizontalpodautoscaler_puppetserver-puppetdb-autoscaler.yaml
|
- horizontalpodautoscaler_puppetserver-puppetdb-autoscaler.yaml
|
||||||
- gateway_puppetboard.yaml
|
- gateway_puppetboard.yaml
|
||||||
|
|||||||
@@ -52,9 +52,9 @@ kind: VerticalPodAutoscaler
|
|||||||
metadata:
|
metadata:
|
||||||
name: puppetserver-master-vpa
|
name: puppetserver-master-vpa
|
||||||
namespace: puppet
|
namespace: puppet
|
||||||
# NOTE: this workload also has an HPA. updateMode Off is recommendation-only
|
# NOTE: the master is a pinned single replica (Recreate, no HPA) so the CA/master
|
||||||
# and does not act, so there is no HPA/VPA conflict today. Do not flip to Auto/
|
# never coexists. updateMode Off keeps this recommendation-only; do not flip to
|
||||||
# Initial without first moving the HPA off CPU/memory (VPA owns those under Auto).
|
# Auto/Initial, which would evict and briefly recreate the singleton pod.
|
||||||
spec:
|
spec:
|
||||||
targetRef:
|
targetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user