Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Logs for pods deployed to ACI (via aci-connector) not available #2793

Closed
amit-kumar-4 opened this issue Apr 27, 2018 · 0 comments
Closed

Logs for pods deployed to ACI (via aci-connector) not available #2793

amit-kumar-4 opened this issue Apr 27, 2018 · 0 comments
Assignees

Comments

@amit-kumar-4
Copy link
Contributor

Is this a request for help?:
Yes


Is this an ISSUE or FEATURE REQUEST? (choose one):
ISSUE


What version of acs-engine?:
0.15.2


Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes

What happened:
When a pod is deployed to ACI using the aci-connector addon, we can not get it's logs using kubectl logs. This is because the ACI connector pod needs additional configuration for it to retrieve logs from ACI.

What you expected to happen:
kubectl logs retrieves logs for pods which are deployed to ACI via aci-connector.

How to reproduce it (as minimally and precisely as possible):

  • Deploy a new cluster with aci-connector addon enabled.

  • Deploy a pod binding it to the aci-connector node.

  • kubectl logs <pod-name> gives error:

    Error from server (NotFound): the server could not find the requested resource ( pods/log <pod-name>)
    

Anything else we need to know:
Related issue in VK repo: virtual-kubelet/virtual-kubelet#177
Need to generate new key+cert and adding following ENV variables in the aci-connector pod

  • APISERVER_CERT_LOCATION
  • APISERVER_KEY_LOCATION
  • KUBELET_PORT
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants