forked from keptn/lifecycle-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update components section (keptn#2712)
Signed-off-by: odubajDT <[email protected]> Signed-off-by: Dubaj <[email protected]> Signed-off-by: odubajDT <[email protected]> Co-authored-by: Dubaj <[email protected]> Co-authored-by: Meg McRoberts <[email protected]> Co-authored-by: Moritz Wiesinger <[email protected]>
- Loading branch information
1 parent
1fe4f15
commit a1330ee
Showing
11 changed files
with
166 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -690,3 +690,5 @@ yml | |
YOURNAME | ||
yourregistry | ||
youtube | ||
pymdownx | ||
superfences |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.mermaid { | ||
text-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,40 @@ | ||
# Keptn Certificate Manager | ||
# Keptn Cert Manager | ||
|
||
## Keptn Cert Manager | ||
|
||
The Keptn Cert Manager automatically configures TLS certificates to | ||
The Keptn Cert Manager is a Kubernetes operator that | ||
automatically configures TLS certificates to | ||
[secure communication with the Kubernetes API](https://kubernetes.io/docs/concepts/security/controlling-access/#transport-security). | ||
You can instead | ||
[use cert-manager.io](../installation/configuration/cert-manager.md) | ||
for this purpose. | ||
|
||
Keptn includes a Mutating Webhook | ||
that requires TLS certificates to be mounted as a volume in its pod. | ||
In version 0.6.0 and later, the certificate creation | ||
is handled automatically by | ||
the [keptn-cert-manager](https://github.com/keptn/lifecycle-toolkit/blob/main/keptn-cert-manager/README.md). | ||
|
||
How it works: | ||
|
||
* The certificate is created as a secret | ||
in the `keptn-system` namespace | ||
with a renewal threshold of 12 hours. | ||
* If the certificate expires, | ||
the [keptn-cert-manager](https://github.com/keptn/lifecycle-toolkit/blob/main/keptn-cert-manager/README.md) | ||
renews it. | ||
* The Keptn `lifecycle-operator` waits for a valid certificate to be ready. | ||
* When the certificate is ready, | ||
it is mounted on an empty dir volume in the operator. | ||
|
||
`keptn-cert-manager` is a customized certificate manager | ||
that is installed with Keptn by default. | ||
It is included to simplify installation for new users | ||
and because it is much smaller than most standard certificate managers. | ||
However, Keptn is compatible with most certificate managers | ||
and can be configured to use another certificate manager if you prefer. | ||
See [Use Keptn with cert-manager.io](../installation/configuration/cert-manager.md) | ||
for instructions. | ||
|
||
## Invalid certificate errors | ||
Keptn includes mutating, validating and conversion Webhooks | ||
that require TLS certificates to be mounted as a volume. | ||
These webhooks and CRDs contain a `keptn.sh/inject-cert: "true"` label indicating that | ||
these resources require a TLS certificate. | ||
|
||
When a certificate is left over from an older version, | ||
the webhook or the operator may generate errors | ||
because of an invalid certificate. | ||
To solve this, delete the certificate and restart the operator. | ||
```mermaid | ||
graph TD; | ||
The Keptn cert-manager certificate is stored as a secret in the | ||
`keptn-system` namespace. | ||
To retrieve it: | ||
|
||
```shell | ||
kubectl get secrets -n keptn-system | ||
E((Manifests)) -- apply --> D[Kubernetes API] | ||
F[Webhook Controller] <-- watches Secret --> D | ||
style D fill:#006bb8,stroke:#fff,stroke-width:px,color:#fff | ||
style F fill:#d8e6f4,stroke:#fff,stroke-width:px,color:#006bb8 | ||
style E fill:#fff,stroke:#123,stroke-width:px,color:#006bb8 | ||
``` | ||
|
||
This returns something like: | ||
How it works: | ||
|
||
```shell | ||
NAME TYPE DATA AGE | ||
keptn-certs Opaque 5 4d23h | ||
``` | ||
* Keptn Cert Manager looks for the resources with `keptn.sh/inject-cert: "true"` label. | ||
* It creates a [secret](https://kubernetes.io/docs/concepts/configuration/secret/) | ||
(if it does not exist yet) with a TLS certificate in the | ||
Keptn installation namespace and mounts this Secret as a volume to the labelled resource. | ||
* The TLS certificate stored in the Secret has an expiration time of 12 hours and is | ||
automatically renewed. | ||
|
||
Specify the `NAME` of the Keptn certificate (`keptn-certs` in this case) | ||
to delete the Keptn certificate: | ||
If you don't want to use Keptn Cert Manager, you can instead | ||
use [cert-manager.io](../installation/configuration/cert-manager.md) | ||
for this purpose. | ||
|
||
```shell | ||
kubectl delete secret keptn-certs -n keptn-system | ||
``` | ||
## Troubleshooting | ||
|
||
When experiencing problems with setting up cert-manager.io, | ||
please refer to the | ||
[cert-manager.io troubleshooting page](https://cert-manager.io/docs/troubleshooting/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.