SHARE
TWEET

Untitled

a guest Oct 12th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Exec into a pod
  2. `kubectl exec POD_NAME --namespace=NAMESPACE -i -t -- sh`
  3.  
  4. ## Get a configmap
  5.  
  6.  
  7. Linux:
  8. ```
  9. kubectl get configmaps SERVICE -o yaml --namespace=NAMESPACE |  sed 's/\\n/\n/g'
  10. ```
  11.  
  12. Osx:
  13. ```
  14. kubectl get configmaps SERVICE -o yaml --namespace=NAMESPACE | sed 's/\\n/\
  15. /g'
  16. ```
RAW Paste Data
Top