Tumgik
Text
kubernetes cheat sheet PC JQ6I#
๐Ÿ’พ โ–บโ–บโ–บ DOWNLOAD FILE ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ See the helpful list of each commonly used category or component of Kubernetes (K8S) with appropriate kubectl commands for quick reference! This cheatsheet will serve as a quick reference to make commands on many common Kubernetes components and resources. You can use the full command for an object. See also: Kubectl overview and JsonPath guide. Creating Objects. $ kubectl create -f ./ # create resource(s) in a json or. Kubectl Cheat Sheet: 10 Critical Commands & Examples. The kubectl command line tool can help you perform almost any action on your Kubernetes cluster. 9 All rights reserved. All other trademarks are the property of their respective owners. Often you know what you want to do, you just can't remember the vocabulary or syntax for how to do it. This Kubernetes cheat sheet is designed to help solve that problem. Kubernetes provides a way to orchestrate containers to provide a robust, cloud native environment. So rather than: kubectl get pods You can use: kubectl get deployments Now let's look at getting started. Get Started Setting up a Kubernetes environment is straightforward. Setup Kubernetes with k0s There are many ways to create a Kubernetes cluster; in this case we are assuming you are using k0s with a single-node configuration. Install kubectl You can get kubectl, the standard Kubernetes client, in multiple ways. It also, however, provides alternative ways to accomplish most of these tasks without actually using kubectl. You can download and install Lens here , then use the kubectl tool from the terminal. Create or apply changes to a resource kubectl apply -f. Types of services First, it's important to understand and remember the different types of services, because each has a different set of behaviors. NodePort enables you to create a service that's available from outside the cluster by exposing the service on the same port for every node. For example, the same service might be available on host1. LoadBalancer requires coordination with your cloud provider's load balancer, which automatically routes requests to the service. For this reason, not all distributions of Kubernetes will support LoadBalancer services. Port vs targetport One aspect of Kubernetes networking that frequently gets confusing is the notion of port versus targetPort. Here's the difference: port: the port receiving the request targetPort: the container port receiving the request Think of the request like an arrow flying into a container. Learn Containers 5 Minutes at a Time. View schedule. What is the Software Defined Data Center?
1 note ยท View note