Kubernetes allows you to define and switch between multiple contexts. Each context includes the cluster, user, and namespace information. You can switch between contexts to change both the namespace and cluster. To list all available contexts, use: kubectl config get-contexts Output: CURRENT NAME ...
learning all you can learn about containers—this sensation that has swept over the tech industry in the last few years. By now, you have heard aboutKubernetes, by far the most popular platform for managing containers. Maybe you stumbled acrossKubernetes The Hard Wayor maybe even some Kubernetes...
they are used forselection. This means, when you want to give a Kubernetes object a reference to a group of objects in some namespace, like telling a network policy which services are allowed to communicate with each other, you use their labels. Since they represent such an open ended type...
One key area of focus is the service sector, which has traditionally been resistant to automation. However, advancements in artificial intelligence (AI) and robotics are changing this landscape. For example, self-checkout kiosks in retail stores and automated customer service chatbots are becoming i...
Change the Active Namespace By default, the active namespace is thedefaultKubernetes namespace. All Kubernetes commands use thedefaultnamespace, unless specified differently in the YAML file or in the command. While thekubectlCLI tool is excellent for basic namespace operations, switching the active...
Ideally, Kubernetes software should be able to back up specific applications, specific groups of applications, as well as the entire Kubernetes namespace. That’s not to say that it is completely different from the regular backup process – Kubernetes backups can also benefit greatly from some ...
Be sure to read the CNCF CKA Exam Curriculum to understand what’s included in the CKA exam. The curriculum may change a little bit along with every K8s release, here is the outline when I take the exam: 25% — Cluster Architecture, Installation & Configuration 15% — Workloads & Scheduli...
Once in the debug session, one can usechrootto change the apparent root directory to the one of the underlying host: Raw sh-4.4# chroot /host bash [root@node /]# cat /etc/redhat-release Red Hat Enterprise Linux CoreOS release 4.12 ...
I use kubelet as kubelet will track the status of each pod inpod_startup_latency_tracker, and kubelet will watch for the status change of each pod. Also, kubelet is usually the first layer to process the pod status and it's a stable component (compared to other components in the cluster...
When deploying Kubernetes services I get an error: The Service "my-service" is invalid:spec.ports[0].nodePort: spec.ports[0].nodePort: invalid value '2181': provided port is not in the valid range This is my service configuration: --- ki...