Created
July 25, 2017 16:47
-
-
Save javawolfpack/9b97e1e08e23a248e3d419a7e026e3e6 to your computer and use it in GitHub Desktop.
Kubectl Override JSON
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl run -i --rm --tty mpi-test --overrides=' | |
{ | |
"apiVersion": "batch/v1", | |
"spec": { | |
"template": { | |
"spec": { | |
"volumes": [ | |
{ | |
"secret": { | |
"secretName": "ssh-key-secret" | |
}, | |
"name": "ssh-keys" | |
} | |
], | |
"containers": [ | |
{ | |
"image": "javawolfpack/base-centos-mpi", | |
"volumeMounts": [ | |
{ | |
"readOnly": false, | |
"mountPath": "/home/mpi/.ssh/", | |
"name": "ssh-keys" | |
} | |
] | |
} | |
] | |
} | |
} | |
} | |
' --image=javawolfpack/base-centos-mpi --restart=Never -- bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment