lemur icon indicating copy to clipboard operation
lemur copied to clipboard

Kubernetes plugin question

Open aaronmell opened this issue 6 years ago • 5 comments

I added a certificate and a Kubernetes endpoint. The certificate doesn't show up in Kubernetes and I can't seem to find any logs why. Where can I find information about why it failed to place the certs in kubernetes? I'm running the app as docker containers and attempting to load the cert into EKS

aaronmell avatar Oct 02 '18 03:10 aaronmell

Are you using the UI or API? Is there anything in lemur.log?

kevgliss avatar Oct 03 '18 21:10 kevgliss

cc @mik373

kevgliss avatar Oct 03 '18 22:10 kevgliss

I am having the same experience. Lemur is running in a Kubernetes cluster, trying to deploy to the same cluster. The SFTP destination is working, but I get no feedback at all from the Kuberentes destination. There are no messages about it in the pod logs or the lemur.log file in the container. I'm interacting with lemur through the UI.

wfhartford avatar Dec 04 '18 21:12 wfhartford

I took a closer look at the Kubernetes plugin code and there are some pretty serious issues with it, mostly related to incompatible types. I'm not a python expert, but my guess is that the plugin worked in python 2 but fails in python 3. I've made a few changes that make the plugin work. They're pretty ugly at this stage, but I'll clean up my fixes and submit a PR.

There are a few functional changes I would like to make as well. Would a separate PR which makes the following changes be accepted?

  • Allow configuration of Kubernetes certificate and token as file paths, better supporting lemur running inside Kubernetes.
  • Default the Kubernetes namespace to the namespace Lemur is running in if it is running in Kubernetes.
  • Configurable deployment of private keys so that the plugin only deploys certificates by default.

wfhartford avatar Dec 07 '18 18:12 wfhartford

@aaronmell The problem with the Kubernetes plugin should be fixed by #2219 and further improved by #2229. If you still have any interest in Lemur & Kubernetes, I would love any feedback you have.

wfhartford avatar Dec 12 '18 22:12 wfhartford