Kubectl Reference Docs - Kubernetes
kubernetes.io › docs › referenceCreate a pod using the data in pod.json. kubectl create-f ./pod.json Create a pod based on the JSON passed into stdin. cat pod.json | kubectl create-f - Edit the data in docker-registry.yaml in JSON then create the resource using the edited data. kubectl create-f docker-registry.yaml --edit-o json Create a resource from a file or from stdin.
kubectl Cheat Sheet | Kubernetes
kubernetes.io › docs › referenceDec 05, 2021 · Will cause a service outage. kubectl replace --force -f ./pod.json # Create a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000 kubectl expose rc nginx --port = 80--target-port = 8000 # Update a single-container pod's image version (tag) to v4 kubectl get pod mypod -o yaml | sed 's/\(image ...
Kubernetes - Pod - Tutorialspoint
www.tutorialspoint.com › kubernetes › kubernetes_podMulti container pod; Single Container Pod. They can be simply created with the kubctl run command, where you have a defined image on the Docker registry which we will pull while creating a pod. $ kubectl run <name of pod> --image=<name of the image from registry> Example − We will create a pod with a tomcat image which is available on the ...