The module configuration
| Настройка модуля
|
yaml
apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
name: vertical-pod-autoscaler
spec:
version: 1
enabled: true
settings:
nodeSelector:
node-role/example: “”
tolerations:
- key: dedicated
operator: Equal
value: example
| yaml
apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
name: vertical-pod-autoscaler
spec:
version: 1
enabled: true
settings:
nodeSelector:
node-role/example: “”
tolerations:
- key: dedicated
operator: Equal
value: example
|
The basic VerticalPodAutoscaler custom resource example
| Пример минимального custom resource VerticalPodAutoscaler
|
yaml
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: my-app-vpa
spec:
targetRef:
apiVersion: “apps/v1”
kind: StatefulSet
name: my-app
| yaml
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: my-app-vpa
spec:
targetRef:
apiVersion: “apps/v1”
kind: StatefulSet
name: my-app
|
The advanced VerticalPodAutoscaler custom resource example
| Пример полного custom resource VerticalPodAutoscaler
|
yaml
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: my-app-vpa
spec:
targetRef:
apiVersion: “apps/v1”
kind: Deployment
name: my-app
updatePolicy:
updateMode: “Auto”
resourcePolicy:
containerPolicies:
- containerName: hamster
minAllowed:
memory: 100Mi
cpu: 120m
maxAllowed:
memory: 300Mi
cpu: 350m
mode: Auto
| yaml
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: my-app-vpa
spec:
targetRef:
apiVersion: “apps/v1”
kind: Deployment
name: my-app
updatePolicy:
updateMode: “Auto”
resourcePolicy:
containerPolicies:
- containerName: hamster
minAllowed:
memory: 100Mi
cpu: 120m
maxAllowed:
memory: 300Mi
cpu: 350m
mode: Auto
|