Skip to content

Instantly share code, notes, and snippets.

@elsonrodriguez
Created March 17, 2016 23:23
Show Gist options
  • Save elsonrodriguez/80ab3b7cff8b926b2d19 to your computer and use it in GitHub Desktop.
Save elsonrodriguez/80ab3b7cff8b926b2d19 to your computer and use it in GitHub Desktop.
kubectl run override
time kubectl run --command --rm -i --tty java --image=java --restart=Never --overrides='{ "apiVersion": "extensions/v1beta1", "spec":{"template":{"spec": {"containers":[{"name":"java","image":"java", "imagePullPolicy":"Always"}]}}}}' -- uptime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment