Zum Inhalt springen
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
Referenzen Technologien Blog Know-how Tools
Über uns Zusammenarbeit Karriere
CS EN DE
Lassen Sie uns sprechen

Vertical Pod Autoscaler

12. 04. 2021 1 Min. Lesezeit intermediate

Cloud Pokročilý

Vertical Pod Autoscaler

KubernetesVPAAutoscaling 3 min čtení

Automatické nastavení CPU a memory pro kontejnery. Doporučení a auto-update.

Módy

  • Off — jen doporučení (bezpečné pro start)
  • Initial — nastaví při vytvoření podu
  • Auto — průběžně aktualizuje (restartuje pody)

Konfigurace

apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
  name: api-vpa
spec:
  targetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: api
  updatePolicy:
    updateMode: "Off"  # Jen doporučení
  resourcePolicy:
    containerPolicies:
      - containerName: app
        minAllowed: {cpu: 100m, memory: 128Mi}
        maxAllowed: {cpu: 4, memory: 8Gi}

Shrnutí

VPA doplňuje HPA. Začněte v Off módu, analyzujte doporučení, pak nastavte správné requests.

Potřebujete pomoct s implementací?

Náš tým má zkušenosti s návrhem a implementací moderních architektur. Rádi vám pomůžeme.

Nezávazná konzultace

Teilen:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.