Skip to content

Instantly share code, notes, and snippets.

@sarjarapu
Created July 11, 2018 20:56
Show Gist options
  • Save sarjarapu/b7228aa19c2a85400276c57a5c700feb to your computer and use it in GitHub Desktop.
Save sarjarapu/b7228aa19c2a85400276c57a5c700feb to your computer and use it in GitHub Desktop.
A kubectl command to recreate the MongoDB Enterprise Operator pod
# delete the existing pod after fixing the issue
kubectl -n mongodb delete pod $K8_OPERATOR_POD_NAME
sleep 5
# display all the resources in the namespace
kubectl -n ${K8_NAMESPACE} get all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment