You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=============================
getting following events.
50m Warning FailedCreate statefulset/jenkins create Pod jenkins-0 in StatefulSet jenkins failed error: Pod "jenkins-0" is invalid: [spec.initContainers[0].volumeMounts[0].name: Not found: "cacerts", spec.initContainers[0].volumeMounts[1].name: Not found: "certs"]
2s Warning FailedCreate statefulset/jenkins create Pod jenkins-0 in StatefulSet jenkins failed error: Pod "jenkins-0" is invalid: spec.initContainers[0].volumeMounts[0].name: Not found: "cacerts-share"
Describe the bug
we are on chart 4.1.3
we have a need to import several custom CA and intermediate certs to our jenkins.
can you provide an example of custominitcontainer that can import multiple CA and intermediate certs (crt, pem) ?
i have tried few methods from different thread but not having success.
i have tried this one but getting errors.
master:
customInitContainers:
image: "jenkins/jenkins:lts"
imagePullPolicy: Always
env:
value: "..."
command:
&& cat /etc/ssl/certs/ca-certificates.crt /tmp/custom-ca-certs.crt > /cacerts-share/ca-certificates.crt
&& cp ${JAVA_HOME}/jre/lib/security/cacerts /cacerts-share/cacerts
&& chmod 644 /cacerts-share/cacerts
&& ${JAVA_HOME}/bin/keytool -import -trustcacerts -alias custom-ca-certs -keystore /cacerts-share/cacerts -file /tmp/custom-ca-certs.crt -noprompt -storepass changeit
volumeMounts:
mountPath: /cacerts-share
persistence:
volumes:
emptyDir: {}
mounts:
name: cacerts-share
subPath: ca-certificates.crt
name: cacerts-share
subPath: cacerts
=============================
getting following events.
50m Warning FailedCreate statefulset/jenkins create Pod jenkins-0 in StatefulSet jenkins failed error: Pod "jenkins-0" is invalid: [spec.initContainers[0].volumeMounts[0].name: Not found: "cacerts", spec.initContainers[0].volumeMounts[1].name: Not found: "certs"]
2s Warning FailedCreate statefulset/jenkins create Pod jenkins-0 in StatefulSet jenkins failed error: Pod "jenkins-0" is invalid: spec.initContainers[0].volumeMounts[0].name: Not found: "cacerts-share"
Version of Helm and Kubernetes
Chart version
4.1.3
What happened?
What you expected to happen?
import self signed CA and intermediate certs
How to reproduce it
helm upgrade jenkins jenkins/jenkins -f jenkins-values3.yaml.tls --set controller.jenkinsUrl='https://xxxxxxxxxx/'
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: