Skip to main content

Command Palette

Search for a command to run...

Kubernetes

Published
1 min readView as Markdown
S

I am Shradha Arsewar working as Associate software Engineer used to work as a Intern in Product Company (PTC). Likes to share knowledge

commands for kubernetes:

kubectl create deployment my-web-server --image=nginx
to run 100 replicas of an NGINX web server

kubectl scale deployment my-web-server --replicas=100
gives you 100 replicas of nginx, fully managed by a Deployment.

kubectl get nodes
gives the list of nodes along with status, roles, age and version.

kubectl expose deployment demo-server --port=80 type=LoadBalancer
creates a service of the deployment named ‘demoserver’ on port 80

kubectl get services
lists the services.

minikube service demo-server
makes it simple by giving you a direct URL to access your app, even on your laptop