delonix cluster kube

Gera manifestos Kubernetes a partir de containers.

Generates Kubernetes manifests from containers.

kube generate produz um manifesto kind: Pod a partir de um container existente — a ponte para exportar uma carga do runtime local para um cluster.

kube generate produces a kind: Pod manifest from an existing container — the bridge for exporting a workload from the local runtime to a cluster.

Usage: dlx cluster kube [OPTIONS] <COMMAND>

Commands:
  generate  Generates a `kind: Pod` from a container (or from every member of a pod) and prints it to stdout
  help      Print this message or the help of the given subcommand(s)

Options:
      --l18n <en|pt>  Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
  -h, --help          Print help

kube generate

Generates a kind: Pod from a container (or from every member of a pod) and prints it to stdout

Usage: dlx cluster kube generate [OPTIONS] <NAME>

Arguments:
  <NAME>  

Options:
      --l18n <en|pt>  Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
  -h, --help          Print help

Exemplos

Pod a partir de um container
delonix cluster kube generate web > web-pod.yaml

LaboratórioLab

Exporta um container já a correr localmente para um manifesto Kubernetes pronto a aplicar.

delonix container run -d --name web nginx
delonix cluster kube generate web > web-pod.yaml
cat web-pod.yaml

Export a container already running locally into a Kubernetes manifest ready to apply.

delonix container run -d --name web nginx
delonix cluster kube generate web > web-pod.yaml
cat web-pod.yaml

DesafioChallenge

Aplica o web-pod.yaml gerado a um cluster real criado com delonix cluster kubeadm e confirma com kubectl get pods que o pod agenda e arranca.

Apply the generated web-pod.yaml to a real cluster created with delonix cluster kubeadm and confirm with kubectl get pods that the pod schedules and starts.