I’m using bitnami nginx image on my kubernetes cluster. I want to see the debug logs of nginx.
Does someone know how to enable debug logs in helm chart?
Reference : https://bitnami.com/stack/nginx/helm
There is no configuration available in bitnami helm chart using that you can start debug logs for nginx.
Nothing in values.yaml. so just changing configuration via --set and debug log won't start.
But you can set Nginx configuration and save logs in a file inside folder and access it.
Related
i install Grafana/loki in K8s cluster , now i want to change loki configuration ... how to change it ? how show yaml files which helm install ?
I am new to Loki but all i want to do is to use it as simply as possible with helm.
I want to get the logs of my app witch is in kubernetes, but it seems that there is no instructions on how to do that. All I find is how to install Loki and to add it to Grafana as a datasource but I don't think that's what Loki is made for.
I simply want to track my app's logs in kubernetes so I am using Loki helm chart and all I can find about a custom config is this line:
Deploy with custom config
helm upgrade --install loki grafana/loki-stack --set "key1=val1,key2=val2,..."
After installing Loki you can set it as a data source for Grafana.
For more details you can follow this example :Logging in Kubernetes with Loki and the PLG Stack
I hope that this can help you to resolve your issue .
I have an application that is deployed on kubernetes cluster. Accessing this application using rancher namespace. By specifying this namespace I am getting "get pods", and all information.
Now, this application I want to control from the helm. what do I need to do?
I have installed helm where my kubectl installation is there.
If you want to "control" applications on Kubernetes cluster with Helm, you should start with helm charts. You can create some if one is not already available. Once you have chart(s), you can target the Kubernetes cluster with the cluster's KUBECONFIG file.
If I had a Helm chart like my-test-app and a Kubernetes cluster called my-dev-cluster.
With Helm I can:
deploy - install
helm install test1 my-test-app/ --kubeconfig ~/.kubeconfigs/my-dev-cluster.kubeconfig
update - upgrade
helm upgrade test1 my-test-app/ --kubeconfig ~/.kubeconfigs/my-dev-cluster.kubeconfig
remove - uninstall
helm uninstall test1 my-test-app/ --kubeconfig ~/.kubeconfigs/my-dev-cluster.kubeconfig
Where my-dev-cluster.kubeconfig is the kubeconfig file for my cluster in ~/.kubeconfigs directory. Or you can set the path using KUBECONFIG environment variable.
I am trying to install ingress-nginx in minikube on windows. I remember when I did this earlier by following below this link, it had a mandatory step to install deployables -
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml
But I don't see this anymore valid. If you see installation guide it does not have any step before provider specific commands.
So can someone help to clarify if am missing anything? how would ingress-nginx-controller get created without executing above command which itself is missing in the page?
Minikube already has nginx ingress packaged as an add-on part of Minikube installation. You just need to enable it via
minikube addons enable ingress
I've deployed Prometheus and Grafana via helm by issuing the following command.
helm install --name prom --namespace monitoring stable/Prometheus-operator
I've managed to use kubectl to port forward to grafana, and I can view the interface just fine.
However, most of my pods are not generating any data points. I've tried re-deploying the workloads as I figured maybe that was necessary for Prometheus to start picking up the metrics. I can select the pods in the workloads in Grafana drop-down menus so they are being detected, but they are not generating any data points or populating the graphs.
What do I need to do to make this happen?
Thanks in advance.