Assignment 3
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.
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
Now testing-node:
Now pods Status:
Now Cluster status:
kubernetes
defauIt • Q Search + *
Workloads n
Cluster Role Bindings ==
Cron Jobs
Name Created 1’
Daemon
Deployments
storage-provisioner 16 minutes ago ;
Jobs
Replica Sets
kubeadm: node-autoapprove-bootstrap 16 minutes ago ;
Replication Controllers
lngresses
system:coredns 16 minutes ago ;
Services
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
Secrets u
Storage Classes
Cluster
Pods