Table of Contents
#Introduction
In this tutorial, We study together K8s (Kubernetes). Let go of Kubernetes day one.
- Method installs for Kubernetes.
- Use Managed Kubernetes service from CSP.
- Install and configure Kubectl for Linux and macOS.
- Configuring Kubernetes in Minikube Windows or Linux.
- Minikube install commands.
- Create the First POD configuration in YAML.
- How to generate Pod Manifests via CLI.
Method installs for Kubernetes.
There are multiple methods to get started with a full Kubernetes Environment.
- Use the Managed Kubernetes Service.
- Install and configure Kubernetes Manually
- Use Minikube
Managed Kubernetes Service.
Provides like: AWS, GCP, IBM, and others providers.
Minikube
It’s a tool that makes it easy to run Kubernetes locally.
Minikube run a single node K8s cluster on VM on your laptop. You can try out or develop with it.
Install and configure Kubernetes Manually
It’s the Hard Way. You install and configure components of K8s.
Install Kubectl on Windows
it allows running commands against K8s clusters.
Kubectl to deploy applications, manage cluster resources, and view logs. Link here.
Download Kubectl here
Add path environment variable for K8s
Confirm kubectl command on Windows.
Install Minikube on Windows
Link here.
For example below:
From a terminal start your cluster.
K8S PODS
Kubernetes Pod is a group of one or more application containers that share resources.
- A Pod runs on a Node.
- Each Node is managed by the Master.
- A Node has multiple pods.
- A Node is a worker machine in K8s.
The command same docker vs K8s
docker run –name webserver nginx | kubectl run webserver –image=nginx |
docker exec -it webserver bash | kubectl exec -it webserver — bash |
docker stop webserver docker rm webserver | kubectl delete pod webserver |
Updating later!