Comando:
kubectl run nginx-porta-oitenta --image=nginx --restart=Never --port=80
Teste:
kubectl describe pod nginx-porta-oitenta
Resultado:
ame: nginx-porta-oitenta
Namespace: default
Priority: 0
Node: kind-worker2/172.18.0.3
Start Time: Mon, 10 Jan 2022 15:52:22 -0300
Labels: run=nginx-porta-oitenta
Annotations: <none>
Status: Running
IP: 10.244.1.6
IPs:
IP: 10.244.1.6
Containers:
nginx-porta-oitenta:
Container ID: containerd://3c488493e838a2df67066979e6e91ac62f4ec53fda75b0d6fd31605b41c547a1
Image: nginx
Image ID: docker.io/library/nginx@sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31
Port: 80/TCP
Host Port: 0/TCP
State: Running
Started: Mon, 10 Jan 2022 15:52:34 -0300
Ready: True
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-zbc2s (ro)