0% found this document useful (0 votes)
4 views

Assignment 3

The document outlines the steps to launch a minikube cluster and manage Kubernetes Pods and Deployments using kubectl commands. It includes commands for creating nodes, checking namespaces, retrieving pod logs, and exposing services to the public internet. Additionally, it provides information on monitoring cluster status and events, as well as displaying workloads and configurations.

Uploaded by

Suresh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment 3

The document outlines the steps to launch a minikube cluster and manage Kubernetes Pods and Deployments using kubectl commands. It includes commands for creating nodes, checking namespaces, retrieving pod logs, and exposing services to the public internet. Additionally, it provides information on monitoring cluster status and events, as well as displaying workloads and configurations.

Uploaded by

Suresh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

Assignment#3

3. Launch minikube cluster and execute the commands to test the pod, container with the kubectl commands
Command: minikube start
All Packages on Kubernetes GitHub repository: registry.k8s.io/

A Kubernetes Deployment checks on the health of your Pod and restarts the Pod's Container if it terminates.
Here 1 Pod=1 container
1) Use the kubectl create command to create a Deployment that manages a Pod. The Pod runs a Container based
on the provided Docker image.

Creating a node, testing-node

A node created

To Display Namespaces
$ kubectl get ns
NAME STATUS AGE
default Active 23m
kube-node-lease Active 23m
kube-public Active 23m
kube-system Active 23m
kubernetes-dashboard Active 23m

kubectl get all -n kube-system


Now, creating test name space
Get all pods:
Command: kubectl get pods

Two pods are getting.

To get logs of Pods:


Command: kubectl logs [pod-name]
To get how many pods are deployed:
Thus, two pods are showing.
Now Status about deployments:
To get Nodes details:

To Check Cluster Events:

Commands: kubectl get events


To check configurations:
To check services by: kubectl get services
Pod to the public internet using the kubectl expose command:

To Check the created service:

To Check Cluster info:


Checking Service of Specific node:

Now testing-node:
Now pods Status:
Now Cluster status:
kubernetes
defauIt • Q Search + *

Workloads n
Cluster Role Bindings ==
Cron Jobs

Name Created 1’
Daemon

Sets kubernetes-dashboard 16 minutes ago ;

Deployments
storage-provisioner 16 minutes ago ;
Jobs

Pods kubeadm:jet-nodes 16 minutes ago ;

Replica Sets
kubeadm: node-autoapprove-bootstrap 16 minutes ago ;
Replication Controllers

Stateful Sets kubeadm: node-autoapprove-certificate-rotation 16 minutes ago ;

Service n kubeadm: node-proxies 16 minutes ago ;

lngresses
system:coredns 16 minutes ago ;
Services

minikube-rbac 16 minutes ago ;


Config and Storage

Config Maps u kubeadm: kubelet-bootstrap 16 minutes ago ;

Persistent Volume Claims u

Secrets u
cluster-admi iJ 16 minutes
Storage Classes ago
'I — 'I 0 gif 30
Cluster @
Workloads

Workload Status

Replication Controllers
Deployments Pods Replica Sets
Stateful Sets

lngresses Deployments

Name Namespace Labels Pods Created 1’ Images


Config and Sfixage
registry.k8s.io/e2e-test-images/agn
default app: testing-node 1/ 1 28 mlnutes ago
testing-node host:2.39
Config Maps u
registry.k8s.io/e2e-test-images/agn
Persistent Volume Claims n hello-node default app: hello-node 1/1 29 mlnutes ago host:2.39

Secrets u

Storage Classes

Cluster
Pods

You might also like