Restore custom certificates¶
For each custom certificate you backed up, you must first recreate the certificate as a Kubernetes Secret, and then reference it in your values.yaml file.
Note
You must fulfill the prerequisites before proceeding.
-
Create a Kubernetes
Secretfrom your certificate file. This example usesrabbit-certas the secret name. Replace$NAMESPACEwith your DataRobot namespace and./path/to/certificatewith the actual path to your backed-up certificate file (e.g.,rabbit-cert.pem).(Thekubectl -n $NAMESPACE create secret generic rabbit-cert --from-file=rabbit-cert.pem=./path/to/certificate/rabbit-cert.pem--from-filekey should match thepathvalue in the YAML below, e.g.,rabbit-cert.pem) -
In your
values.yamlfile, create a mapping for thisSecret. Paths define where the certificate will be mounted inside the container, within the/opt/datarobot/etc/certs/directory. For example:globals: certs: # Refers to the Kubernetes Secret created in the previous step - secret: rabbit-cert # This will be the filename at /opt/datarobot/etc/certs/rabbit-cert.pem path: rabbit-cert.pem -
Repeat this process for all custom certificates that need to be restored.