Skip to content

Instantly share code, notes, and snippets.

@ctaggart
Created July 27, 2018 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctaggart/bd2fc91d300e785657498e5469bb1144 to your computer and use it in GitHub Desktop.
Save ctaggart/bd2fc91d300e785657498e5469bb1144 to your computer and use it in GitHub Desktop.
kubectl run myubuntu --image ubuntu --rm -ti --restart=Never --overrides='
{
"metadata": {
"labels": {
"diditwork": "itdid"
}
},
"spec": {
"containers": [
{
"stdin": true,
"tty": true,
"args": [ "bash" ],
"name": "myubuntu",
"image": "ubuntu",
"volumeMounts": [
{
"mountPath": "/home/store",
"name": "store"
}
]
}
],
"volumes": [
{
"name": "store",
"emptyDir": {}
}
]
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment