Keywords:
k8s kubernetes troubleshooting, debugging, debug, troubleshoot, useful, command, commands, kubectl, problem, problems
k8s kubernetes troubleshooting, debugging, debug, troubleshoot, useful, command, commands, kubectl, problem, problems
/etc/grafana/grafana.ini is the file which has grafana Admin User Password Credentials
You will see below block if user credentials are specific in Grafana /etc/grafana/grafana.ini file.
[security]
admin_user = admin
admin_password = admin
You can start a pod temporarily on specific node for testing by using kubectl command as follows:
kubectl run <name> --image=<image> --overrides='{"apiVersion": "v1", "spec": {"nodeSelector": {"kubernetes.io/hostname": "<hostname>"}}}' --restart=NeverWith above command a temporary pod with specified name and image will be started on the node specified. The pod will not start once you delete the pod since restart is specified as "Never".
For e.g. to start nginx pod using nginx image in Oracle container registry on worker1 node, your command will look as follows:
kubectl run nginx --image=container-registry.oracle.com/olcne/nginx:1.17.7 --overrides='{"apiVersion": "v1", "spec": {"nodeSelector": {"kubernetes.io/hostname": "worker1"}}}' --restart=NeverKeywords:
temporarily starting running pod pods test testing without deployment deployments yaml file files pull pulliing particular desired choice
You can start a pod temporarily for testing by using kubectl command as follows:
kubectl run <name> --image=<image> --restart=Never
With above command a temporay pod with specified name and image will be deployed. The pod will not start once you delete the pod since restart is specified as "Never"
For e.g. to start nginx pod using nginx image in Oracle container registry, your command will look as follows:
kubectl run nginx --image=container-registry.oracle.com/olcne/nginx:1.17.7 --restart=NeverKeywords:
temporarily starting running pod pods test testing without deployment deployments yaml file files pull pulliing
Below kubectl config view command can be used to view KubeConfig Settings With Certificate Chain. It will be long output.
$ kubectl config view --raw