Docker
From Alessandro's Wiki
Revision as of 13:26, 10 December 2024 by Xunil (talk | contribs) (Created page with "==docker== === Kubernetes === Details about all nodes: kubectl describe nodes Start container testing parameters kubectl apply --validate -f mypod.yaml Save pod configuration to file kubectl get pods/mypod -o yaml > mypod.yaml Show running pods IP address kubectl get pods -l app=<app name> -o go-template='{{range .items}}{{.status.podIP}}{{"\n"}}{{end}}' Exposes the service to the net kubectl expose deployment <app name> --port=80 --target-port=9376 Get the servic...")
docker
Kubernetes
Details about all nodes:
kubectl describe nodes
Start container testing parameters
kubectl apply --validate -f mypod.yaml
Save pod configuration to file
kubectl get pods/mypod -o yaml > mypod.yaml
Show running pods IP address
kubectl get pods -l app=<app name> -o go-template='Template:Range .itemsTemplate:.status.podIPTemplate:"\n"Template:End'
Exposes the service to the net
kubectl expose deployment <app name> --port=80 --target-port=9376
Get the services for an app
kubectl get svc <app name>