a guest Jul 11th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # find the pod name for mongodb-enterprise-operator  using selectors
  2. K8_OPERATOR_POD_NAME=$(kubectl -n mongodb get pods --selector=app=mongodb-enterprise-operator --output=jsonpath='{.items[0]}')
  3. # display the mongodb-enterprise-operator logs from mongodb namespace
  4. kubectl -n mongodb logs $K8_OPERATOR_POD_NAME
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand