You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* xref:../microshift_networking/microshift-configuring-routes.adoc#nw-ingress-creating-a-route-via-an-ingress_microshift-configuring-routes[Creating a route through an Ingress object]
Copy file name to clipboardExpand all lines: modules/microshift-ingress-controller-create-cert-secret.adoc
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,27 @@
8
8
= Creating a secret for the ingress controller certificateSecret
9
9
10
10
[role="_abstract"]
11
-
To serve a custom default certificate through the ingress controller in {microshift-short}, you can create a TLS secret containing your certificate chain and private key, then set the `certificateSecret` value in the configuration file to that secret name.
11
+
To secure network traffic with your own certificate, you must create a TLS secret and update the configuration file. This process configures a custom default certificate for the {microshift-short} ingress router.
12
12
13
13
[NOTE]
14
14
====
15
-
Any in-use certificates is automatically integrated with the {microshift-short} built-in OAuth server.
15
+
Any in-use certificates automatically integrate with the {microshift-short} built-in OAuth server.
16
16
====
17
17
18
+
To configure application-level certificates for a Kubernetes Ingress object by using the `spec.tls` field, follow the procedure in "Creating a route through an Ingress object".
19
+
18
20
.Prerequisites
19
21
20
-
* You have root access to {microshift-short}.
21
-
* You installed the {oc-first}.
22
-
* Your private key is not encrypted or you have decrypted it for importing into {microshift-short}.
22
+
* Root access to the {microshift-short} host.
23
+
* Installation of the {oc-first}.
24
+
* A decrypted, non-password-protected TLS private key in Privacy-Enhanced Mail (PEM) format.
25
+
* A PEM-encoded TLS certificate.
26
+
* A valid certificate for the {microshift-short} apps wildcard where the `subjectAltName` extension includes DNS names covering `*.apps.<nodename>.<domain>`.
27
+
28
+
[NOTE]
29
+
====
30
+
This procedure only applies to the default ingress router certificate, `ingress.certificateSecret`.
31
+
====
23
32
24
33
.Procedure
25
34
@@ -44,7 +53,7 @@ The certificate must include the `subjectAltName` extension showing `*.apps.<nod
44
53
45
54
. Update the `certificateSecret` parameter value in the {microshift-short} configuration YAML with the newly created secret.
46
55
47
-
. Complete any other configurations you require, then start or restart {microshift-short} by running one the following commands:
56
+
. Complete any other configurations you require, then start or restart {microshift-short} by running one of the following commands:
Copy file name to clipboardExpand all lines: modules/nw-ingress-creating-a-route-via-an-ingress.adoc
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,15 @@
10
10
[role="_abstract"]
11
11
To integrate ecosystem components that require Ingress resources, configure an Ingress object. {product-title} automatically manages the lifecycle of the corresponding route objects, creating and deleting them to ensure seamless connectivity.
12
12
13
+
.Prerequisites
14
+
15
+
* If clients must receive a full certificate chain, you must combine the PEM-encoded leaf certificate and intermediates into a single file. Place the leaf certificate first, followed by each issuer in chain order.
16
+
* You confirmed the private key matches the leaf certificate in the `tls.crt` key.
17
+
* You confirmed the `tls.key` key has only the private key for the leaf certificate.
18
+
* The certificate Subject Alternative Name (SAN), or the subject CN if no SAN is present, covers every hostname set in `spec.rules[].host` and `spec.tls[].hosts`. These values must match for the same host.
19
+
* The private key is not password-encrypted. You must decrypt the key before you create the TLS secret so that {product-title} can read the key material.
20
+
* You created a `Secret` of type `kubernetes.io/tls` in the same namespace as the `Ingress`. The `secretName` must match the `spec.tls[].secretName` field. If you have not created the secret, you must do so before you apply the `Ingress` object.
21
+
13
22
.Procedure
14
23
15
24
. Define an Ingress object in the {product-title} console or by entering the `oc create` command:
0 commit comments