我试图理解k8s吊舱自动分配器,并有以下问题。即使是k8s文档似乎也没有提到它。
在下面的yaml中,“状态”节点是什么?任何指向文档的指针都会有很大帮助。
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: php-apache
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: php-apache
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50
- type: Pods
pods:
metric:
name: packets-per-second
target:
type: AverageValue
averageValue: 1k
- type: Object
object:
metric:
name: requests-per-second
describedObject:
apiVersion: networking.k8s.io/v1
kind: Ingress
name: main-route
target:
type: Value
value: 10k
status:
observedGeneration: 1
lastScaleTime: <some-time>
currentReplicas: 1
desiredReplicas: 1
currentMetrics:
- type: Resource
resource:
name: cpu
current:
averageUtilization: 0
averageValue: 0
- type: Object
object:
metric:
name: requests-per-second
describedObject:
apiVersion: networking.k8s.io/v1
kind: Ingress
name: main-route
current:
value: 10k发布于 2022-08-17 08:51:47
status描述由Kubernetes系统及其组件提供和更新的对象的当前状态。主节点(控制平面)持续主动地管理每个对象的实际状态,以匹配您提供的所需状态。
https://stackoverflow.com/questions/73385491
复制相似问题