mirror of https://github.com/fluxcd/flux2.git
Merge 204a8fbbd7
into 55542a8086
commit
db743e5309
@ -0,0 +1,52 @@
|
||||
► Deployment/default/podinfo created
|
||||
► HorizontalPodAutoscaler/default/podinfo drifted
|
||||
|
||||
spec.behavior.scaleDown.policies.0.periodSeconds
|
||||
± value change
|
||||
- 16
|
||||
+ 15
|
||||
|
||||
spec.behavior.scaleUp.policies
|
||||
- two list entries removed: + two list entries added:
|
||||
- type: Pods - type: Pods
|
||||
periodSeconds: 16 periodSeconds: 15
|
||||
value: 5 value: 5
|
||||
- type: Percent - type: Percent
|
||||
periodSeconds: 16 periodSeconds: 15
|
||||
value: 100 value: 100
|
||||
|
||||
spec.metrics
|
||||
- two list entries removed:
|
||||
- type: Pods
|
||||
pods:
|
||||
metric:
|
||||
name: podinfo_http_requests_total
|
||||
target:
|
||||
type: AverageValue
|
||||
averageValue: 3
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: 98
|
||||
|
||||
+ two list entries added:
|
||||
- type: Pods
|
||||
pods:
|
||||
metric:
|
||||
name: podinfo_http_requests_total
|
||||
target:
|
||||
type: AverageValue
|
||||
averageValue: 2
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: 99
|
||||
|
||||
|
||||
► Service/default/podinfo created
|
||||
► Secret/default/podinfo-token-77t89m9b67 created
|
||||
► Secret/default/db-user-pass-bkbd782d2c created
|
@ -0,0 +1,48 @@
|
||||
apiVersion: autoscaling/v2beta2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
labels:
|
||||
kustomize.toolkit.fluxcd.io/name: podinfo
|
||||
kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }}
|
||||
name: podinfo
|
||||
namespace: default
|
||||
spec:
|
||||
behavior:
|
||||
scaleDown:
|
||||
policies:
|
||||
- periodSeconds: 16
|
||||
type: Percent
|
||||
value: 99
|
||||
selectPolicy: Max
|
||||
stabilizationWindowSeconds: 60
|
||||
scaleUp:
|
||||
policies:
|
||||
- periodSeconds: 16
|
||||
type: Pods
|
||||
value: 5
|
||||
- periodSeconds: 16
|
||||
type: Percent
|
||||
value: 100
|
||||
selectPolicy: Max
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: podinfo
|
||||
minReplicas: 2
|
||||
maxReplicas: 4
|
||||
metrics:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
target:
|
||||
type: Utilization
|
||||
# scale up if usage is above
|
||||
# 99% of the requested CPU (100m)
|
||||
averageUtilization: 98
|
||||
- type: Pods
|
||||
pods:
|
||||
metric:
|
||||
name: podinfo_http_requests_total
|
||||
target:
|
||||
averageValue: "3"
|
||||
type: AverageValue
|
Loading…
Reference in New Issue