infra-docs-fpo/modules/sysadmin_guide/pages/sop_retrieve_ocp4_cacert.adoc

23 lines
887 B
Text
Raw Permalink Normal View History

2022-03-03 11:44:45 +00:00
= SOP Retrieve OCP4 Cluster CACERT
2022-03-03 11:44:45 +00:00
== Resources
- [1] https://pagure.io/fedora-infra/ansible/blob/main/f/roles/dhcp_server[Ansible Role DHCP Server]
2022-03-03 11:44:45 +00:00
== Retrieve CACERT
In Fedora Infra, we have Apache terminating TLS for the cluster. Connections to the api and the machineconfig server are handled by haproxy. To prevent TLS errors we must configure haproxy with the OCP4 Cluster CA Cert.
This can be retrieved once the cluster control plane has been installed, from the `os-control01` node like so:
----
oc get configmap kube-root-ca.crt -o yaml -n openshift-ingress
----
Extract this CACERT in full, and commit it to ansible at: `https://pagure.io/fedora-infra/ansible/blob/main/f/roles/haproxy/files/ocp.<ENV>-rdu3.pem`
To deploy this cert, one must be apart of the `sysadmin-noc` group. Run the following playbook:
----
sudo rbac-playbook groups/proxies.yml -t 'haproxy'
----