|
| 1 | +// Module included in the following assemblies: |
| 2 | +// * lightspeed-docs-main/configure/ols-configuring-openshift-lightspeed.adoc |
| 3 | + |
| 4 | +:_mod-docs-content-type: PROCEDURE |
| 5 | +[id="configuring-custom-tls-certificates_{context}"] |
| 6 | += Configuring custom TLS certificates |
| 7 | + |
| 8 | +Configure custom TLS certificates for secure {ols-long} service communication. |
| 9 | + |
| 10 | +.Prerequisites |
| 11 | + |
| 12 | +* You are logged in to the {ocp-product-title} web console as a user with the `cluster-admin` role. Alternatively, you are logged in to a user account that has permission to create or edit the `OLSConfig` custom resource (CR). |
| 13 | +
|
| 14 | +* You have a large language model (LLM) provider. |
| 15 | +
|
| 16 | +* You have installed the {ols-long} Operator. |
| 17 | +
|
| 18 | +* You have created the credentials secret and the `OLSconfig` CR. |
| 19 | +
|
| 20 | +.Procedure |
| 21 | + |
| 22 | +. In the {ocp-product-title} web console, click *Operators* -> *Installed Operators*. |
| 23 | + |
| 24 | +. Select *All Projects* in the *Project* dropdown at the top of the screen. |
| 25 | + |
| 26 | +. Click {ols-long} Operator. |
| 27 | + |
| 28 | +. Click *OLSConfig*, then click the `cluster` configuration instance in the list. |
| 29 | + |
| 30 | +. Click the *YAML* tab. |
| 31 | + |
| 32 | +. Modify the `OLSconfig` CR to contain the file that contains the TLS secret. |
| 33 | ++ |
| 34 | +.Example credentials secret and the `OLSconfig` CR file |
| 35 | +[source,yaml,subs="attributes,verbatim"] |
| 36 | +---- |
| 37 | +apiVersion: ols.openshift.io/v1alpha1 |
| 38 | +kind: OLSConfig |
| 39 | +metadata: |
| 40 | + name: cluster |
| 41 | +spec: |
| 42 | + ols: |
| 43 | + tlsConfig: |
| 44 | + keyCertSecretRef: |
| 45 | + name: <lightspeed_tls> <1> |
| 46 | +--- |
| 47 | +apiVersion: v1 |
| 48 | +data: |
| 49 | + tls.crt: LS0tLS1CRUd... <2> |
| 50 | + tls.key: LS0tLS1CRUd... |
| 51 | +kind: Secret |
| 52 | +metadata: |
| 53 | + name: <lightspeed_tls> |
| 54 | + namespace: <openshift_lightspeed> |
| 55 | +---- |
| 56 | +<1> Refers to the secret that contains the `tls.crt` and `tls.key` file. |
| 57 | +<2> The name of the certificate must be `tls.crt` and the name of the key must be `tls.key`. |
| 58 | + |
| 59 | +. Click *Save*. |
| 60 | + |
| 61 | +.Verification |
| 62 | + |
| 63 | +. Verify that a new pod was created in the `lightspeed-app-server` deployment by running the following command: |
| 64 | ++ |
| 65 | +[source,terminal] |
| 66 | +---- |
| 67 | +$ oc get pod -n openshift-lightspeed |
| 68 | +---- |
| 69 | ++ |
| 70 | +.Example output |
| 71 | +[source,terminal] |
| 72 | +---- |
| 73 | +NAME READY STATUS RESTARTS AGE |
| 74 | +lightspeed-app-server-5b45d6dd99-5599w 2/2 Running 2 8h |
| 75 | +lightspeed-console-plugin-88d878686-tjt5p 1/1 Running 1 8d |
| 76 | +lightspeed-operator-controller-manager-7d7cc4588-p7442 1/1 Running 9 8d |
| 77 | +lightspeed-postgres-server-5484fcfdfc-kcpjh 1/1 Running 2 8d |
| 78 | +---- |
0 commit comments