-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
volumeMounts in PodConfiguration are being overridden #55
Comments
I see that Maybe @GaneshSPatil or @varshavaradarajan have some idea? |
Hi @alexfrancavilla, this appears to be a defect in the elastic agent implementation to me. We'll take a look and keep this issue updated on the fix. |
@arvindsv - Its okay to mount any directory for docker. I checked that that worked. @alexfrancavilla - do you mind sharing the go-server logs? I want to check if there are any errors. One thing that I did run into while checking the volume mounts was the the material update would be stuck with a prompt to add github to known hosts. This would be present in the logs. I got the following prompt -
This will be followed by If you have got a similar prompt, you can solve this by mounting the known-hosts file. |
Here is the version I have working
kubernetes secret created this way
|
@varshavaradarajan Sorry for the late response. I can't provide the logs anymore since they're gone already. My solution was to build my own agent image on top of your official agent image which includes the key as well as a prepared known_hosts file (through ssh-keyscan). This setup runs fine and I haven't a changed a thing until now. |
Working solution as proposed: apiVersion: v1 Problem was mount path with "/" at end. |
Hi everyone,
in order to access private git repositories through SSH I was trying to mount a Secret or ConfigMap under
/home/go/.ssh
which contains everything that is required to SSH into our GitLab repositories (private keypair, prefilled known_hosts).Basically what I did is the same what the
images/profile-with-pod-yaml.png
image is showing on theinstall.md
page in this repo, but with a different directory. Is this intentional behaviour on the.ssh
directory or am I facing a bug? (yes the secret exists and contains all data, tested it with a busybox mounting the directory in the same way)Here is my pod configuration from the elastic agent profile:
Output of
kubectl describe -n infra pod/k8s-ea-77f0a914-7877-494f-9fb6-872044ab3b5a
, which is the elastic agent pod. As you can see no extra volume was mounted:And the output of
kubectl get po -n infra k8s-ea-77f0a914-7877-494f-9fb6-872044ab3b5a -o yaml
, which correctly outputs my pod configuration template in the annotation, but is missing the actual mount in the spec down below:The text was updated successfully, but these errors were encountered: