This procedure describes how to configure Che to be able to perform HTTP requests to unrecognized resources.
Procedure
-
Save the public certificate(s) that you want to apply.
-
Create a new configMap with the certificate(s):
$ kubectl create configmap <config-map name> --from-file=<certificate file path> -n=che
To apply more then one certificate, add
--from-file=<certificate file path>key to the command. -
Define the certificates config-map name.
If Che is deployed using a Helm Chart-
Clone the che project
-
Go to
deploy/kubernetes/helm/chedirectory -
Set the
global.tls.serverTrustStoreConfigMapNameproperty to previously created config-map name. To do that, add the following option to thehelm upgradecommand:$ helm upgrade che -n che --set global.tls.serverTrustStoreConfigMapName=<config-map name> --set global.ingressDomain=<kubernetes-cluster-domain> .
<kubernetes-cluster-domain> On Minikube, use
$(minikube ip).nip.io
If Che is deployed using OperatorsSet the
serverTrustStoreConfigMapNameproperty to previously created config-map name. To do that, execute:$ kubectl patch checluster eclipse-che -n che --type=json -p '[{"op": "replace", "path": "/spec/server/serverTrustStoreConfigMapName", "value": "<config-map name>"}]' -