distroless
distroless copied to clipboard
Add custom certs - x509 signed by unknown authority
Hello, We have our own CA In my docker file I have a step to add certs. -
FROM debian AS certs
RUN apt update && apt install curl -y
RUN curl <CERT> -o /usr/local/share/ca-certificates/<CERT> && update-ca-certificates
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
USER nonroot:nonroot
In the docker output log I see that cert was added but in the k8s controller logs I see x509 signed by unknown authority
Were you able to solve this? I am having the same problem
I'm wondering how can I import a .pem file to the Distroless image. Besides of the problem that this does not work the command from above COPY --from=certs /etc/ssl/certs /etc/ssl/certs copies all certs from the base image instead of only the ones from the .pem