Guest User

Untitled

a guest
Jul 11th, 2018
60
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].metadata.name}')
  3. # display the mongodb-enterprise-operator logs from mongodb namespace
  4. kubectl -n mongodb logs $K8_OPERATOR_POD_NAME
RAW Paste Data