Skip to content

Instantly share code, notes, and snippets.

@non-static
Last active December 1, 2019 08:04
Show Gist options
  • Select an option

  • Save non-static/bc923bcff7ab0712b570e72d02c3abf1 to your computer and use it in GitHub Desktop.

Select an option

Save non-static/bc923bcff7ab0712b570e72d02c3abf1 to your computer and use it in GitHub Desktop.
Run a temp docker image with kubectl
#!/bin/bash
# It is goint to create a new pod with all sidecars injected.
kubectl run [-n <namespace>] -i --rm --restart=Never busybox --image=odise/busybox-curl -- sh -c "curl -i -X POST -d 'body=parameters' 172.17.0.4:80/post"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment