You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Project Idea: “Pod-logger” - Simple application which uses k8s api to fetch the logs from the pods in the cluster and show it on a simple ui dashboard
What I am trying to do:
Deploying podlogger as a container in a pod and trying to access k8s api through this container/pod. (So that I can get logs of any pod in cluster)
Things I tried:
Creating a sh file with all the environments and simple curl command
Works if you exec in the container and run it manually but fails to curl if tried to run via Dockerfile
Based on above, I add the environments to docker file this time and added the curl command inside the docker file args/cmd to see if it runs as the container is running.
It fails without outputting any type of logs so I am confused if it’s running or not
I created a separate service account with view access to logs and linked it to the pod, still fails to curl the k8s api - Returns the Json with status: failure
Project Idea: “Pod-logger” - Simple application which uses k8s api to fetch the logs from the pods in the cluster and show it on a simple ui dashboard
What I am trying to do:
Deploying podlogger as a container in a pod and trying to access k8s api through this container/pod. (So that I can get logs of any pod in cluster)
Things I tried:
Creating a sh file with all the environments and simple curl command
Based on above, I add the environments to docker file this time and added the curl command inside the docker file args/cmd to see if it runs as the container is running.
I created a separate service account with view access to logs and linked it to the pod, still fails to curl the k8s api - Returns the Json with status: failure
Contexts to understand the code:
pod-logger/api/controllers/controller.go
Line 33 in 11f0f27
pod-logger/api/controllers/controller.go
Line 53 in 11f0f27
pod-logger/api/controllers/controller.go
Line 13 in 11f0f27
The text was updated successfully, but these errors were encountered: