Open N0K0 opened 3 years ago
Hi, that might actually be solved in one of our preview versions.
Please give it a try by using the images portainerci/agent:kubernetes-edge-stacks
and portainerci/portainer:pr5276
and let us know how it's working.
Note that this is a development build and should not be used in a production environment.
Hey. Have tried swapping out the portainer server as suggested. Fixed the ports that has changed++, i still get the same issue
Running it with this command to test.
docker run -d -p 443:9443 -p 9433:9433 -p 9000:9443 -p 8000:8000 --name portainer_pr --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /etc/pki/tls/private/:/keys -v /etc/pki/tls/certs/:/certs -v portainer_data:/data portainerci/portainer:pr5276 --ssl --sslcert /certs/wild.crt --sslkey /keys/wild.key
The agent has also been swapped
FROM portainerci/agent:kubernetes-edge-stacks
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
ENV SSL_CERT_DIR=/etc/ssl/certs/
# Can't use curl++ since its a scratch container
ADD ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ADD ca-certificates.crt /usr/local/share/ca-certificates/
Any more logs i should provide for example? :)
Hi! I got an wierd issue with the edge agent.
What i can see:
What i expected:
That portainer respects the cert bundle added to /usr/local/share/ca-certificates/ As per this SO post https://stackoverflow.com/questions/40051213/where-is-golang-picking-up-root-cas-from
Or that EDGE_INSECURE_POLL would make us ignore the cert.
Misc
Docker-compose file:
Dockerfile:
Did not work without the ENV settings either