The “docker container” command is an essential part of the Docker ecosystem and is used to manage Docker containers. Docker containers are lightweight and isolated environments that encapsulate an application and its dependencies, allowing for consistent and reproducible execution across different systems. The “docker container” command provides a set of subcommands that enable users to […]
Kubernetes
“docker commit” Command Examples
The “docker commit” command is a feature of Docker that allows users to create a new Docker image based on the changes made to a running container. It provides a convenient way to capture and save modifications made to a container’s file system or configuration as a new reusable image. The primary purpose of the […]
“docker build” Command Examples
The “docker build” command is a fundamental component of Docker, a popular containerization platform. It allows users to build a Docker image based on the instructions defined in a Dockerfile. The main purpose of the “docker build” command is to automate the process of creating Docker images. A Docker image is a lightweight, standalone, and […]
dexter: Tool for authenticating the kubectl users with OpenId Connect
“dexter” is a tool designed to facilitate the authentication of users in the Kubernetes command-line tool, “kubectl,” using the OpenID Connect (OIDC) authentication protocol. It provides a seamless way to authenticate and authorize users accessing Kubernetes clusters through the OIDC standard. With “dexter,” users can authenticate themselves using their OpenID Connect credentials, which typically involve […]
crictl: Command-line for CRI-compatible container runtimes
The “crictl” command-line tool is designed to interact with container runtimes that adhere to the Container Runtime Interface (CRI) specification. It provides a convenient way to manage and inspect containers, pods, images, and other resources in CRI-compatible container runtimes from the command line. Here are some key features and functionalities of the “crictl” command: Container […]
kubectl: command not found
The Kubernetes command-line tool, kubectl is used to run commands against Kubernetes clusters. You’ll use kubectl to inspect and manage your service’s cluster resources and view logs. Some commonly used commands for retrieving information about a Kubernetes cluster are as follows: kubectl get shows information about the specified API object. kubectl describe gives more detail […]
Kubernetes Command Line Reference (Cheatsheet)
Creating Objects Create resource: $ kubectl apply -f ./<file_name>.yaml Create from multiple files: $ kubectl apply -f ./<file_name_1>.yaml -f ./<file_name_2>.yaml Create all files in directory: $ kubectl apply -f ./<directory_name> Create from url: $ kubectl apply -f https://<url> Create pod: $ kubectl run <pod_name> –image <image_name> Create pod, then expose it as service: $ kubectl […]
“Error: Could Not Find A Ready Tiller Pod” – helm error
The Problem Getting “Error: could not find a ready tiller pod” error when trying various helm commands. > helm version Client: &version.Version{SemVer:”v2.14.3″, GitCommit:”0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085″, GitTreeState:”clean”} Error: could not find a ready tiller pod The Solution This error is caused due to wrong configuration or version mismatch. Follow the procedure to install helm and tiller using the […]
How to schedule master node running pod/service as worker node
Question: How to Schedule Master Node to Run Pod Workloads Like the Worker Node? By default, only the worker node can run the pod workloads and the master is only responsible for the scheduling and configuration. $ kubectl get nodes -o json | jq .items[].spec.taints [ { “effect”: “NoSchedule”, “key”: “node-role.kubernetes.io/master” } ] $ kubectl […]
How To Access Kubernetes Dashboard Externally
Following is an alternative workaround to access Dashboard externally. 1. kubernetes-dashboard is a service file which provides dash-board functionality, to edit this we need to edit dashboard service and change service “type” from ClusterIP to NodePort: [root@kubeXXXX]# kubectl -n kube-system edit service kubernetes-dashboard # Please edit the object below. Lines beginning with a ‘#’ will […]