You can upload SSL certificates into the Netezza Performance Server console and engine.
Procedure
- Log in to the Red Hat OpenShift cluster.
You can log in into the Red Hat
OpenShift cluster from the command line by running the following
command.
oc login https://api.<CLUSTER_NAME>.<ROUTE53_DNS>:6443 --insecure-skip-tls-verify -u kubeadmin -p <password>
The
installation script writes the Red Hat OpenShift cluster login details to
<installation_script_execution_directory>/envs/<CLUSTER_NAME>/assets/oc_login_details.
Red Hat OpenShift creates a default user kubeadmin
with the role
cluster-admin
during installation. The password for the cluster is saved in the
<installation_script_execution_directory>/envs/<CLUSTER_NAME>/assets/auth/kubeadmin-password
file.
-
Replace the default SSL secrets with your secrets.
export NAMESPACE=<ns>
oc -n $NAMESPACE delete secret ssl-secret
oc -n $NAMESPACE create secret generic ssl-secret --from-file=cacert.pem --from-file=server-cert.pem --from-file=server-key.pem
- Restart the Netezza Performance Server
console.
oc -n $NAMESPACE delete pod -l app=console
# wait for the pod to restart, be RUNNING and Ready=1/1
# then press Ctrl-C
oc -n $NAMESPACE get pod -w -l app=console
NAME READY STATUS RESTARTS AGE
console-8696c4f97c-wbjtq 0/1 Running 0 67s
console-8696c4f97c-wbjtq 1/1 Running 0 86s
^C
- Create
Route
and A Record
entries for the
console.
export NAMESPACE=<your_namespace_name>
- Create an Red Hat OpenShift
Route.
oc create route passthrough --service=cyclops-svc --port=443 --hostname=concerto-miniconfig-console.<suffix-name> -n $NAMESPACE
concerto-miniconfig-console
refers to the
Netezza Performance Server web
console.
- Get the load balancer IP.
oc -n $NAMESPACE get svc | grep -i console | awk '{print $4}'
- Create a
A Record
in your DNS Record Management System by using the
IP from the previous substep.
- Create
A Record
and Route
entries for the Netezza Performance Server host.
- Create an Red Hat OpenShift
Route
. oc create route passthrough --service=ipshost-external --port=443 --hostname=concerto-miniconfig-nps.<suffix-name> -n $NAMESPACE
concerto-miniconfig-nps
refers to the
Netezza Performance Server web console.
- Get the load balancer IP.
oc -n $NAMESPACE get svc | grep -i ipshost-external | awk '{print $4}'
- Create an
A Record
in your DNS Record Management System by using the
IP from the previous substep.
- Bounce the Netezza Performance Server
pod.
oc -n $NAMESPACE scale deployment -l app=console --replicas=0
oc -n $NAMESPACE get pods -w -l app=console
oc -n $NAMESPACE set env deployment -l app=console CPD_HOST={cluster-name}-cpd.{ssl-cert-domain}.com
oc -n $NAMESPACE scale deployment -l app=console --replicas=1
oc -n $NAMESPACE get pods -w -l app=console
Results
You can now use the new SSL certificates to work with both the Netezza Performance Server web console and the REST server.