by Jack Wallen in Data Centers on December 8, 2020, 9:58 AM PST Kubernetes is a series of open source projects for automating the deployment, scaling, and … (@.type=="ExternalIP")].address}', # List Names of Pods that belong to Particular RC, # "jq" command useful for transformations that are too complex for jsonpath, it can be found at, '.spec.selector | to_entries | . Trang này là trang tổng quan của lệnh kubectl. This is an opinionated cheat sheet created to serve as a reference point for daily Kubernetes operations and administration done on the command line interface with kubectl.If you are preparing for CKA or CKAD exams, the cheat sheet … # create resource(s) in all manifest files in dir, # get the documentation for pod manifests, # Create multiple YAML objects from stdin, password: $(echo -n "s33msi4" | base64 -w0), # List all pods in the current namespace, with more details, '.status.containerStatuses[0].restartCount', # List PersistentVolumes sorted by capacity, # Get the version label of all pods with label app=cassandra, # Get all worker nodes (use a selector to exclude results that have a label, # named ''), '{.items[*].status.addresses[? This guide is in cheat sheet format with self-contained command-line snippets. If you have a specific, answerable question about how to use Kubernetes, ask it on # set a context utilizing a specific username and namespace. ( == "e2e")].user.password}', # set the default context to my-cluster-name, # add a new cluster to your kubeconf that supports basic auth. Print a table using the custom columns template in the file-o=json: Output a JSON formatted API object-o=jsonpath=