# Helm — comandos essenciais

## Instalação e gerenciamento
```bash
# Adicionar repositório
helm repo add stable https://charts.helm.sh/stable
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update

# Instalar chart
helm install my-release bitnami/nginx --namespace ingress --create-namespace

# Com values customizados
helm install my-release bitnami/postgresql \
  --set auth.postgresPassword=secretpassword \
  --set primary.persistence.size=10Gi

# Com values file
helm install my-release ./my-chart -f values-production.yaml

# Upgrade
helm upgrade my-release bitnami/nginx --reuse-values

# Rollback
helm rollback my-release 1

# Ver releases
helm list -A

# Ver values de um release
helm get values my-release
```

## Debugging
```bash
# Dry run
helm install my-release ./my-chart --dry-run --debug

# Template rendering
helm template my-release ./my-chart > rendered.yaml

# Lint
helm lint ./my-chart
```