Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  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. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement