Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubectl port forward

kubectl port-forward deployment/<deployment-name> <internal-port>:<external-port>
Comment

port forward kubernetes

kubectl port-forward --address 0.0.0.0 pod/mypod 8888:5000
Comment

kubectl port-forward pod

# Change mongo-75f59d57f4-4nd6q to the name of the Pod
kubectl port-forward mongo-75f59d57f4-4nd6q 28015:27017
Comment

kubectl port-forward

# To not choose the local port, let kubect do it for you and avoid 
# port conflics.
kubectl port-forward <pod_name> :<pod_port>
Comment

kubectl kubernetes port forward

kubectl -n kube-system port-forward $(kubectl -n kube-system get pods --selector "app.kubernetes.io/name=traefik" --output=name) 9000:9000
Comment

PREVIOUS NEXT
Code Example
Shell :: debian mark package as manually installed 
Shell :: expose deployment k8 
Shell :: how to setup a gitignore 
Shell :: create file from terminal using cat 
Shell :: git clone into path 
Shell :: git cherry pick parts of a commit 
Shell :: apache airflow install 
Shell :: github swaggo 
Shell :: cp command 
Shell :: sveltekit with tailwindcss 
Shell :: npm install, npm install for web developer 
Shell :: docker best practices 
Shell :: git fork 
Shell :: running docker image 
Shell :: bash do-while 
Shell :: create samba user ubuntu 
Shell :: gitignore specific file 
Shell :: removing a file in linux 
Shell :: install sonarqube on ubuntu 
Shell :: git warning lf will be replaced by crlf 
Shell :: jq filter by key 
Shell :: install gitlab runner 
Shell :: sync just one file between branches 
Shell :: installing statasmodels in anaconda 
Shell :: hsp hFP ubuntu "solved" 
Shell :: Linux Find word and replace text 
Shell :: Pipe script to a remote server 
Shell :: macos redirect to file with colors 
Shell :: adb link server in react native 
Shell :: permission denied while running startup.sh in linux 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =