Skip to content

Commit 8c0741c

Browse files
dprotasoOmer Bsnneji
authored
include documentation about certificate class annotation (#4272)
* include documentation about certificate class annotation * fix mispelling * Update docs/developer/serving/services/certificate-class.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update docs/developer/serving/services/certificate-class.md Co-authored-by: Samia Nneji <snneji@vmware.com> * Update docs/developer/serving/services/certificate-class.md Co-authored-by: Samia Nneji <snneji@vmware.com> Co-authored-by: Omer B <obensaadon@vmware.com> Co-authored-by: Samia Nneji <snneji@vmware.com>
1 parent ffb93b2 commit 8c0741c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

config/nav.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ nav:
6969
- Creating a Service: developer/serving/services/creating-services.md
7070
- Service metrics: developer/serving/services/service-metrics.md
7171
- Configuring private Services: developer/serving/services/private-services.md
72-
- Configuring Services custom ingress class: developer/serving/services/ingress-class.md
72+
- Configuring ingress class: developer/serving/services/ingress-class.md
73+
- Configuring certificate class: developer/serving/services/certificate-class.md
7374
- Configuring custom domains: developer/serving/services/custom-domains.md
7475
- Using a custom TLS certificate for DomainMapping: developer/serving/services/byo-certificate.md
7576
- Configure resource requests and limits: developer/serving/services/configure-requests-limits-services.md
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Configuring a custom certificate class for a Service
2+
3+
When autoTLS is enabled and Knative Services are created, a certificate class (`certificate.class`) is automatically chosen based on the value in the `config-network` ConfigMap located inside the `knative-serving` namespace. This ConfigMap is part of Knative Serving installation. If the certificate class is not specified, this defaults to `cert-manager.certificate.networking.knative.dev`. After `certificate.class` is configured, it is used for all Knative Services unless it is overridden with a `certificate.class` annotation.
4+
5+
## Using the certificate class annotation
6+
7+
Generally it is recommended for Knative Services to use the default `certificate.class`. However, in scenarios where there are multiple certificate providers, you might want to specify different certificate class annotations for each Service.
8+
9+
You can configure each Service to use a different certificate class by specifying the `networking.knative.dev/certificate.class` annotation.
10+
11+
To add a certificate class annotation to a Service, run the following command:
12+
```bash
13+
kubectl annotate kservice <service-name> networking.knative.dev/certifcate.class=<certificate-provider>
14+
```
15+
Where:
16+
17+
- `<service-name>` is the name of the Service that you are applying the annotation to.
18+
- `<certificate-provider>` is the type of certificate provider that is used as the certificate class for the Service.
19+

0 commit comments

Comments
 (0)