-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: deploy Keptn via ArgoCD (#3256)
Signed-off-by: odubajDT <[email protected]> Signed-off-by: odubajDT <[email protected]> Co-authored-by: Moritz Wiesinger <[email protected]>
- Loading branch information
Showing
7 changed files
with
95 additions
and
18 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,4 @@ yourregistry | |
GOGC | ||
otelcol | ||
serviceapp | ||
finalizer |
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,50 @@ | ||
--- | ||
comments: true | ||
--- | ||
|
||
# Deploy Keptn via ArgoCD | ||
|
||
Keptn can be deployed on your Kubernetes cluster | ||
via [ArgoCD](https://argoproj.github.io/cd/). | ||
|
||
## Before you begin | ||
|
||
To successfully deploy Keptn via ArgoCD, you need to | ||
have ArgoCD installed on your cluster. | ||
You can find the | ||
[installation instructions](https://argo-cd.readthedocs.io/en/stable/operator-manual/installation/) | ||
in the ArgoCD documentation. | ||
|
||
## Creating Argo Application | ||
|
||
After successfully installing ArgoCD, you need to create | ||
an Argo Application and define the | ||
repository containing Keptn helm charts: | ||
|
||
```yaml | ||
{% include "./assets/argo-app.yaml" %} | ||
``` | ||
|
||
After applying the Application to your cluster, | ||
Argo will fetch the state of the linked repository | ||
and deploy the content via helm. | ||
|
||
You can access the ArgoCD UI to see that | ||
Keptn is up and running. | ||
|
||
![keptn argo](./assets/argo-keptn.png) | ||
|
||
> **Note** | ||
Please be aware, that you need to enable | ||
[cascading deletion](https://kubernetes.io/docs/concepts/architecture/garbage-collection/#cascading-deletion) | ||
of the application, which is disabled by default in ArgoCD. | ||
You can enable it by adding the deletion finalizers into your | ||
Argo Application, like it's done in the example above. | ||
More information about the deletion finalizers can be found | ||
[here](https://argo-cd.readthedocs.io/en/stable/user-guide/app_deletion/#about-the-deletion-finalizer). | ||
|
||
```yaml | ||
metadata: | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io # enabling cascading deletion | ||
``` |
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,26 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: keptn | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io # enabling cascading deletion | ||
spec: | ||
project: default | ||
source: | ||
repoURL: 'https://charts.lifecycle.keptn.sh' # helm chart repository | ||
chart: keptn # helm chart name | ||
targetRevision: 0.5.1 # helm chart version - use latest available here | ||
helm: | ||
parameters: | ||
- name: "commitID" | ||
value: "$ARGOCD_APP_REVISION" | ||
destination: | ||
server: 'https://kubernetes.default.svc' # server where Keptn will be deployed | ||
namespace: keptn-system # namespace where Keptn will be deployed | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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