Closed lkrzyzanek closed 3 years ago
Adding cacert into operator is realtivelly easy - see bellow.
But the issue is that init and api containers needs to be customized by operator.
The operator uses default Java cacerts file located in $JAVA_HOME/lib/security/cacerts.
cacerts
$JAVA_HOME/lib/security/cacerts
To override it follow these steps:
sudo $JAVA_HOME/bin/keytool -import -trustcacerts -alias redhat-it -file RH-IT-Root-CA.crt -cacerts
kubectl create secret -n websitecd generic websitecd-operator-cacerts --from-file=$JAVA_HOME/lib/security/cacerts
volumeMounts
volumes
JAVA_OPTIONS
kubectl apply -n websitecd -f manifests/install.yaml
The preferred way is to use images layering and build own images. Java doesn't need to be customised because it uses system CA certificates.
Adding cacert into operator is realtivelly easy - see bellow.
But the issue is that init and api containers needs to be customized by operator.
How to customize cacerts in operator
The operator uses default Java
cacerts
file located in$JAVA_HOME/lib/security/cacerts
.To override it follow these steps:
cacerts
volumeMounts
,volumes
andJAVA_OPTIONS
in install.yaml manifest and apply.