kubectl -n logs -f <pod_name>
kubectl -n mongodb logs -f ops-manager-0
### To List All Containers in a Pod in Kubernetes Cluster | |
kubectl get pods <pod_name> -n <namespace> -o jsonpath={.spec.containers[*].name} | |
### Example | |
kubectl get pods ops-manager-0 -n test -o jsonpath={.spec.containers[*].name} | |
mongodb-ops-manager |
--- | |
apiVersion: mongodb.com/v1 | |
kind: MongoDBOpsManager | |
metadata: | |
name: ops-manager4-2-4 | |
namespace: mongodb | |
spec: | |
# the version of Ops Manager distro to use | |
version: 4.2.4 |
#!/bin/bash | |
## SSH to server | |
# Go to the log folder | |
cd /opt/bitnami/var/log | |
## grep the default username | |
sudo more pre-start.log |grep user |
#!/bin/bash | |
## SSH to server | |
# go to Jenkins home | |
cd /opt/bitnami/jenkins/jenkins_home | |
## Edit config.xml | |
### Set disableSignup to false: <disableSignup>false</disableSignup> | |
sudo sed -ic 's/\<disableSignup\>true\<\/disableSignup\>/\<disableSignup\>false\<\/disableSignup\>/' config.xml |
#!/bin/bash | |
#Use Homebrew to install jq | |
brew install jq |
#!/bin/bash | |
# | |
# the single command required to install Docker on macOS using Homebre | |
# docker installation | |
brew cask install docker | |
net: | |
tls: | |
mode: requireTLS | |
certificateKeyFile: /etc/ssl/mongodb.pem | |
systemLog: | |
destination: file | |
path: "/var/log/mongodb/mongod.log" | |
logAppend: true |