Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to curl a service inside a pod in kubernetes?

# Create a pod which here's named curl

kubectl curl --image=radial/busyboxplus:curl -it

# It will show a command prompt. Then run:

curl [your_service_name]

# After this, to repeat the curl, you just need to:

kubectl exec -it curl -- /bin/sh

# And make the curl [your_service_name]

# When finished, delete the pod:

kubectl delete pod curl
Comment

PREVIOUS NEXT
Code Example
Shell :: how to push existing git repository 
Shell :: nano duplicate line or copy paste line 
Shell :: apache uninstall ubuntu ssh 
Shell :: command to delete a directory in linux 
Shell :: how to exclude .ide directory in gitignore 
Shell :: ansible become_method sudo example 
Shell :: terminals for ubuntu 20.04 
Shell :: ????l2tp ubuntu terminal 
Shell :: corewar 42 github 
Shell :: go mod donwload from github 
Shell :: evans cycles womens gravel bikes 
Shell :: ned red installation guide ubuntu 
Shell :: sudo yum install rh-python38 
Shell :: get-adcomputer servers only 
Php :: php check folder exists and create 
Php :: how remove from string in php 
Php :: how to check laravel version 
Php :: laravel random string 
Php :: migrate specific table laravel 
Php :: remove last comma from string php 
Php :: wordpress get theme uri 
Php :: how to validate an email field using php 
Php :: php file_get_contents follow redirect 
Php :: a2dismod 
Php :: how console log laravel 
Php :: laravel ui auth 
Php :: You must enable the openssl extension in your php.ini to load information from https://repo.packagist.org 
Php :: php check if object has key 
Php :: laravel blade uppercase 
Php :: file delete in laravel 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =