Kubernetes Flashcards

(4 cards)

1
Q

How to start minikube?

A
> minikube  start  --driver=docker
> minikube  status

How to install minikube on ubuntu 22.04 step-by-step Tutorial. ZacsTech

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to get information about k8s clusters?

A
> kubectl  cluster-info
> kubectl   get   deployment
> kubectl  get  pod
> kubectl  get  node
> kubectl  get  svc
> kubectl  get  deployment, pod, svc, ....
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the hierarchy of kubernetes structures?

A

From top to down, structures are,

  • Deployment
  • Replicaset
  • Pods
  • Containers (nodes)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to create a deployment in kubernetes?

A

You need to specify the docker image name in docker-hub that you want to run in K8s node. Say you want to run nginx webserver docker image from docker-hub,

> kubectl  create  deployment  khan_depl_1  --image=nginx

deployment name is khan_depl

Normally you should specify all deployment details in a configuration yaml file, and then apply that yaml file

YT: TechWorld with Nana, “Kubernetese YAML File Explained”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly