...
Show log of specific container
...
With the following command you can get the log files of the Smartfacts platform (pod “sfit-platform”). If you deployed with a namespace named other than “smartfacts”, adjust the value of the second variable “ns”.
If you have to call “kubectl” with “sudo”:
Code Block |
---|
pod=genoslc ns=smartfacts sudo bash -c 'kubectl logs $(kubectl get pods -n $ns | grep $pod | cut -d " " -f1) -n $ns' |
If “sudo” is not required:
Code Block |
---|
pod=genoslc ns=smartfacts bash -c 'kubectl logs $(kubectl get pods -n $ns | grep $pod | cut -d " " -f1) -n $ns' |
If you need to get the logs of another pod, change the value of the variable “pod” at the beginning of the line. Available pod names for the Smartfacts installation are the following:
value for pod variable | POD |
---|---|
sfit-platform | The Smartfacts platform |
sfit-spa | The Smartfacts SPA |
mongodb | The mongodb database |
genoslc | The OSLC Connector for Smartfacts |
keycloak | The keycloak pod (identity provider for PoC installations with dummy users) |
Show certtool logs
Show certtool output from Job
...