Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubernetes commands

kubectl apply -f my-manifest.yaml  	# create resource(s)
kubectl delete -f my-manifest.yaml  # delete resource(s)

kubectl get pods                # List all pods in the namespace
kubectl edit pods/<pod-name>    # Edit Pods 
kubectl describe svc/<service-name>  # Describe a Services
kubectl logs <pod-name>		 # logs from pod
kubectl port-forward svc/my-service 5000:my-service-port  # Forward Service target port to local port 5000
kubectl create deployment my-dep --image=nginx  # Create Deployment

kubectl get pods -o wide		# List all pods in ps output format with more information	
kubectl get pods --all-namespaces 	# List all pods in all namespaces
kubectl get svc              	# List all services in the namespace
kubectl get nodes				# Get list Nodes in cluster
kubectl get ns					# List Namespace
# All kubectl Commands
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands
# Cheatsheet 
https://kubernetes.io/docs/reference/kubectl/cheatsheet/
Comment

PREVIOUS NEXT
Code Example
Shell :: git create local branch 
Shell :: video trimmer ubuntu 
Shell :: checkout remote git branch 
Shell :: ps command 
Shell :: put grep output in a file 
Shell :: git gui 
Shell :: arch linux grub boot loader installed 
Shell :: kubernetes get persistent volumes 
Shell :: git config ssh protocol 
Shell :: edit commit message 
Shell :: ssh map port 
Shell :: remote add to github 
Shell :: git add ssh key 
Shell :: remove file via command line 
Shell :: redis cache start 
Shell :: pimcore setup / installation 
Shell :: how to zip folder on linux 
Shell :: how to pull from specific branch 
Shell :: powershell get-verb sorted by verb 
Shell :: ssh current directory 
Shell :: kubectl describe to yaml 
Shell :: git go back to commit 
Shell :: how to install source plugin gatsby 
Shell :: awk define string as delimiter 
Shell :: move linux 
Shell :: shell script tutorial 
Shell :: mongodb database not connected docker 
Shell :: git config path 
Shell :: .gitignore add directory 
Shell :: linux terminal show installed applications 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =