Type to search…

Pod

Kubernetes executa pods, que són grups de contenidors que sempre s'executen junts al mateix node i al mateix espai de noms.

Introducció

De la mateixa manera que Compose ens permet executar un grup de contenidors estretament relacionats, kubernetes utilitza pods.

La majoria de pods només tenen un contenidor, però un contenidor sempre s’ha d’executar dins d’un pod.

Minikube

Minikube és una eina que et permet utilitzar Kubernetes en un únic node per realitzar proves o com a entorn de desenvolupament.

Crea una màquina Linux i instal·la Docker

shell
connect-wsl k8s -new
install-docker

Instal·la l’última versió estable de minikube utilitzant el paquet Debian:

shell
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb

Configura minikube perquè tingui més “potència”:

shell
$ minikube config set cpus 8
$ minikube config set memory 8096
$ minikube config view
- cpus: 8
- memory: 8096

Inicia el clúster:

shell
$ minikube start
😄  minikube v1.35.0 on Ubuntu 24.04 (amd64)
  Automatically selected the docker driver. Other choices: none, ssh

  Exiting due to MK_USAGE: Docker has only 7777MB memory but you specified 8096MB

You're reading a preview.

Sign in to read the full article. Any account opens 10 free articles a month; students and teachers read their course pages without limit.

Sign in