Docker & Kubernetes for Developers · Lezione

Gestire i manifest Kubernetes con i chart Helm

Confezioni, parametrizzi e versioni i manifest Kubernetes usando Helm, per ottenere deployment ripetibili, configurabili e facili da aggiornare o ripristinare.

Lezione 4 di 413 passaggi

Gestire i manifest Kubernetes con i chart Helm è una lezione Docker & Kubernetes for Developers gratuita su CoddyKit. Questa è la lezione 4 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Docker & Kubernetes for Developers, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Docker & Kubernetes for Developers include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

The Manifest Sprawl Problem

Real apps need many YAML files, often duplicated per environment. Copy-paste leads to drift and mistakes. Helm packages and templates these manifests.

What Is a Chart

A Helm chart is a bundle of templated Kubernetes manifests plus default values and metadata, the unit Helm installs and upgrades.

Chart Structure

A chart has a predictable layout.

mychart/
  Chart.yaml
  values.yaml
  templates/
    deployment.yaml
    service.yaml

Templating With Values

Templates use Go templating to inject values, so one chart serves many configurations.

spec:
  replicas: {{ .Values.replicaCount }}
  template:
    spec:
      containers:
        - name: web
          image: {{ .Values.image.repository }}:{{ .Values.image.tag }}

The values.yaml Defaults

Defaults live in values.yaml and can be overridden at install time.

replicaCount: 2
image:
  repository: myapp
  tag: "1.0"

Installing a Release

An installed chart is a release. Override values inline or with a file.

helm install web ./mychart --set replicaCount=3
helm install web ./mychart -f prod-values.yaml

Upgrading and Rolling Back

Helm tracks release revisions so upgrades and rollbacks are first-class.

helm upgrade web ./mychart --set image.tag=2.0
helm rollback web 1

Inspecting Rendered Output

Render templates locally without applying to verify the result before shipping.

helm template web ./mychart -f prod-values.yaml

Chart Repositories

Charts are shared via repositories. Add a repo and install community charts directly.

helm repo add bitnami https://charts.bitnami.com/bitnami
helm install pg bitnami/postgresql

Helm in GitOps Pipelines

In CI/CD you bump image.tag in a values file, commit it, and the pipeline (or Argo CD/Flux) runs helm upgrade, keeping deploys declarative and auditable.

Helpers and _helpers.tpl

Reusable template snippets live in templates/_helpers.tpl, keeping naming and labels consistent across resources.

Quick Check

Test what you have learned.

Recap

You learned that Helm packages templated manifests into charts, drives them with values.yaml, manages releases with versioned upgrade/rollback, shares charts via repos, and fits naturally into GitOps pipelines.

Gratis per iniziare

Impara Docker & Kubernetes for Developers con un tutor IA — gratis

Scrivi ed esegui vero codice nel tuo browser, ricevi aiuto istantaneo da un tutor IA disponibile 24/7, e riprendi da dove hai lasciato sul web o nell'app.

Corsi
12
Lezioni
48

Domande Frequenti

La lezione «Gestire i manifest Kubernetes con i chart Helm» è gratuita?

Sì — il testo completo di «Gestire i manifest Kubernetes con i chart Helm» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Docker & Kubernetes for Developers, passa a CoddyKit PRO. Il corso Docker & Kubernetes for Developers include 4 lezioni in totale.

Cosa imparerò in «Gestire i manifest Kubernetes con i chart Helm»?

Confezioni, parametrizzi e versioni i manifest Kubernetes usando Helm, per ottenere deployment ripetibili, configurabili e facili da aggiornare o ripristinare. Eserciti Docker & Kubernetes for Developers con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare Docker & Kubernetes for Developers?

Non è richiesta alcuna esperienza precedente. Docker & Kubernetes for Developers su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 4 di 4.

Quanto tempo richiede la lezione «Gestire i manifest Kubernetes con i chart Helm»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione Docker & Kubernetes for Developers?

Sì. Ogni lezione Docker & Kubernetes for Developers include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Integrazione di Docker nelle pipeline CI
  2. Distribuzioni automatizzate con Kubernetes CD
  3. Introduzione a GitOps con Kubernetes
  4. Gestire i manifest Kubernetes con i chart Helm
← Torna a Docker & Kubernetes for Developers