Skip to content

ViktoriaAfitova/kubernetes-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React application using Kubernetes

Commands to know

Installation

Start your cluster

minikube start
kubectl
kubectl cluster-info
kubectl get nodes
kubectl get pod
kubectl get service

or

kubectl get svc
kubectl get deployment

or

kubectl get deploy
kubectl get pod --all-namespaces
kubectl get svc --all-namespaces
kubectl get deploy --all-namespaces
kubectl get namespace

Create pod just for study

kubectl run nginx-pod --image=nginx:latest --port=80
kubectl expose pod nginx-pod --type=NodePort --port=80
minikube service nginx-pod

Deleting

kubectl delete pod/nginx-pod
kubectl delete svc/nginx-pod

Manifest file (create pod, service)

  • /cd manifest
kubectl apply -f nginx-pod.yaml
kubectl apply -f nginx-service.yaml
minikube service nginx-service

Stop your cluster

minikube stop