
Using `kubectl run` to create pods
Using `kubectl expose` to create services for a particular pod or resources with replicaSet's such as deployments and statefulSets
Summary of the `kubectl set` method.
Using `kubectl set env` to set environment vars on resources
Using `kubectl set image` to change the image on a resource such as a pod or a deployment
Using `kubectl set resources` to set the CPU and Memory of pods
Using `kubectl set selector` to set the selector of available resources
Using `kubectl set serviceaccount` to change the service account of resources
Using `kubectl set subject` to update the user, group, or service account in a role binding or cluster role binding
Discussing the top level `kubectl create` command
Using `kubectl create deployment` to create a deployment or manifests
Using `kubectl create configmap` to create a configmap or manifests
Using `kubectl create job` to create a job or manifests
Using `kubectl create cronjob` to create a cronjob or manifests
Using `kubectl create namespace` to create a namespace or manifests
Using `kubectl create secret` to create a secret or manifests
Using `kubectl create serviceaccount` to create a serviceaccount or manifests
Using `kubectl explain` to fill in gaps in knowledge of your kubernetes scripts
Using `kubectl get` to get and interrogating kubernetes resources as lists or individual items
Using `kubectl edit` to edit resources on the fly
Using `kubectl delete` for deleting resources in kubernetes.
Using `kubectl rollout` view history, rollback and view status
Using `kubectl scale` to scale replicaset objects such as deployments
Using `kubectl autoscale` to set up an autoscaler
The kubectl certificate command is used to approve or deny a certificate signing request.
The `kubectl top` command is used to display Resource (CPU/Memory) usage.
The `kubectl cordon` command is used to mark a node as unschedulable. This command is aimed at nodes and will not allow anything to be scheduled on a node that has been cordoned. After cordoning the status will be "Ready,SchedulingDisabled"
The `kubectl uncordon` will allow pods to be rescheduled back on node after it was cordoned
The `kubectl drain` command, drains a node of its resources
The `kubectl cluster-info` to get information on the cluster and debug information
The `kubectl taint` command, taints a node so that you can control what resources attach to it, primarily by using tolerations
The `kubectl describe` command is used to show details about a resource in the cluster in a more readable format.
The `kubectl logs` command is used to print the logs from a container in a pod.
The `kubectl attach` command is a convenient way to attach to a running container. It allows you to attach to the standard input, tty, and error streams of a running container.
The kubectl exec command is used to run commands on a container within a pod.
The `kubectl port-forward` command is used to forward a port from a pod to your local machine. This is a great way to access a service running in a pod without exposing it to the internet. This will also allow you to use your local tools to interact with the service.
The `kubectl cp` command is used to copy files and directories to and from containers and your machine.
The `kubectl debug` allows you to create debug containers and pods for the purpose of problem-solving.
The `kubectl events` is a command that is used to get the events that are happening in the cluster. This is useful when you are trying to debug an issue in the cluster.
A brief introduction to `kubectl auth`
The `kubectl auth` can-i command is used to determine if a user can perform a certain action.
The `kubectl auth reconcile` command is used to reconcile rules for RBAC role, role binding, cluster role, and cluster role binding objects. This is prefered over merge because of the extra rules on merging that are provided.
The kubectl auth whoami command is used to get the current user and the groups that the user is part of.
Welcome to “Mastering Kubectl with Kubernetes: A Complete Reference Guide”
Are you ready to take your Kubernetes skills to the next level? This comprehensive course is designed to be your ultimate guide to mastering Kubernetes using Kubectl, the powerful command-line tool that is essential for managing Kubernetes clusters.
What You’ll Learn:
Fundamentals of Kubernetes: Understand the core concepts and architecture of Kubernetes.
Kubectl Basics: Get hands-on experience with basic Kubectl commands and their usage.
Advanced Kubectl Techniques: Dive into advanced commands and scripting to automate complex tasks.
Real-World Applications: Learn how to apply your skills in real-world scenarios, from deployment to scaling and troubleshooting.
Best Practices: Discover best practices for managing and maintaining Kubernetes clusters efficiently.
Why This Course?
Comprehensive Coverage: From beginner to advanced, this course covers everything you need to know about Kubernetes and Kubectl.
Hands-On Learning: Engage in practical exercises and projects that reinforce your learning.
Expert Instructors: Learn from an industry expert with years of experience in Kubernetes and cloud-native technologies.
Whether you’re a developer, system administrator, or DevOps engineer, this course will equip you with the skills and knowledge to effectively manage Kubernetes clusters using Kubectl. Enroll now and start your journey to becoming a Kubernetes expert!