Configuring Ingress parameters
Configuring Ingress parameters
To access the deployed PMF instances on the Red Hat® OpenShift® Cluster, you need to configure the ingress. Following scenarios helps one to achieve the same. Proceed as follows.
HTTP deployments
-
In the ingress section in the
deploy/crds/charts_v1_mfoperator_cr.yamlfile update the following.ingress: hostname: "myhost.mydomain.com" secret: "" sslPassThrough: false
HTTPS deployments
-
Generate tls.key and tls.crt by using the following command.
openssl genrsa -out tls.key 2048 openssl req -new -x509 -key tls.key -out tls.cert -days 360 -subj /CN=myhost.mydomain.com oc create secret tls mf-tls-secret --cert=tls.cert --key=tls.key -
Create ingress tls secret by using the following command.
kubectl create secret tls mf-tls-secret --key=tls.key --cert=tls.crt -
In the ingress section in the
deploy/crds/charts_v1_mfoperator_cr.yamlfile update the following.ingress: hostname: "myhost.mydomain.com" secret: "mf-tls-secret" sslPassThrough: false
HTTPS to backend services
-
Import
tls.crttokeystore.jksandtruststore.jks. -
Pre-create a secret with
keystore.jksandtruststore.jksby including thetls.crtcreated in the step 2 into the keystore and truststore along with keystore and truststore password using the literalsKEYSTORE_PASSWORDandTRUSTSTORE_PASSWORD. -
Provide the secret name in the keystoreSecret field of respective component in the
deploy/crds/charts_v1_mfoperator_cr.yamlfile. -
Keep the
keystore.jks,truststore.jksfiles and its passwords as follows.Example
oc create secret generic server-stores --from-file=./keystore.jks --from-file=./truststore.jks --from-literal=KEYSTORE_PASSWORD=worklight --from-literal=TRUSTSTORE_PASSWORD=worklightNote: The names of the files and literals should be the same as mentioned above. Provide this secret name in the keystoreSecret input field of respective component to override the default keystores when configuring custom resource.
-
The ingress section in the
deploy/crds/charts_v1_mfoperator_cr.yamllooks as follows.ingress: hostname: "myhost.mydomain.com" secret: "mf-tls-secret" sslPassThrough: false https: true mfpserver: keystoreSecret: "server-stores"