Skip to content

Commit 09f5228

Browse files
Merge pull request #1457 from run-ai/Update-loca-cert
Update org-cert.md
1 parent ae7579e commit 09f5228

File tree

1 file changed

+34
-14
lines changed

1 file changed

+34
-14
lines changed

docs/admin/config/org-cert.md

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,47 @@ You will need to have the public key of the local certificate authority.
1919

2020
* Create the `runai-backend` namespace if it does not exist.
2121
* Add the public key to the `runai-backend` namespace:
22-
```
23-
kubectl -n runai-backend create secret generic runai-ca-cert \
24-
--from-file=runai-ca.pem=<ca_bundle_path>
25-
```
22+
23+
=== "Kubernetes"
24+
25+
```
26+
kubectl -n runai-backend create secret generic runai-ca-cert \
27+
--from-file=runai-ca.pem=<ca_bundle_path>
28+
```
29+
30+
=== "OpenShift"
31+
32+
```
33+
oc -n runai-backend create secret generic runai-ca-cert \
34+
--from-file=runai-ca.pem=<ca_bundle_path>
35+
```
2636

2737
* As part of the installation instructions, you need to create a secret for [runai-backend-tls](../runai-setup/self-hosted/k8s/preparations.md#domain-certificate). Use the local certificate authority instead.
2838
* Install the control plane, add the following flag to the helm command `--set global.customCA.enabled=true`
2939

3040
## Cluster Installation
3141

3242
* Create the `runai` namespace if it does not exist.
33-
* Add the public key to the `runai` namespace:
34-
```
35-
kubectl -n runai create secret generic runai-ca-cert \
36-
--from-file=runai-ca.pem=<ca_bundle_path>
37-
```
38-
* In case you're using Openshift, add the public key to the `openshift-monitoring` namespace:
39-
```
40-
kubectl -n openshift-monitoring create secret generic runai-ca-cert \
41-
--from-file=runai-ca.pem=<ca_bundle_path>
42-
```
43+
* Add the public key to the `runai` namespace. In case you're using OpenShift, add the public key also to the `openshift-monitoring` namespace:
44+
45+
46+
=== "Kubernetes"
47+
```
48+
kubectl -n runai create secret generic runai-ca-cert \
49+
--from-file=runai-ca.pem=<ca_bundle_path>
50+
kubectl label secret runai-ca-cert -n runai run.ai/cluster-wide=true run.ai/name=runai-ca-cert --overwrite;
51+
```
52+
53+
=== "OpenShift"
54+
55+
```
56+
oc -n runai create secret generic runai-ca-cert \
57+
--from-file=runai-ca.pem=<ca_bundle_path>
58+
oc -n openshift-monitoring create secret generic runai-ca-cert \
59+
--from-file=runai-ca.pem=<ca_bundle_path>
60+
oc label secret runai-ca-cert -n runai run.ai/cluster-wide=true run.ai/name=runai-ca-cert --overwrite
61+
```
62+
4363
* Install the Run:ai operator, add the following flag to the helm command `--set global.customCA.enabled=true`
4464

4565

0 commit comments

Comments
 (0)