-
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: explain the example a bit (#2)
- Loading branch information
1 parent
b74cbf1
commit 8da098a
Showing
3 changed files
with
83 additions
and
6 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 |
---|---|---|
@@ -1 +1,74 @@ | ||
# kargo-pipelines | ||
# kargo-pipelines | ||
|
||
Reusable deployment chart which clones a deployment across multiple stage environments and wires it up to be controlled through kargo and argo. | ||
|
||
Deploy the `example/kargo-demo/kargo-pipeline.yaml` root argo application to create a `kargo-demo` parent namespace along with `kargo-demo-dev-0`, `kargo-demo-dev-1`, and `kargo-demo-uat` deployment namespaces. | ||
|
||
Kargo will manage promoting freight onto deployment branches named for their stage such as `deployment/kargo-demo-dev-0`. | ||
|
||
In the chart values where you specify the named stages, argo applications will be created by default and kargo pipelines will be created. | ||
|
||
By setting `enabled: false` on a stage it will still appear in kargo and have it's deployment branch managed, but no argo app will actually be spawned. | ||
|
||
```yaml | ||
# A list of stages to spawn and their dependencies | ||
stages: | ||
- name: "dev-0" | ||
- name: "dev-1" | ||
enabled: false | ||
- name: "uat" | ||
enabled: false | ||
freightFrom: | ||
- "dev-0" | ||
- "dev-1" | ||
``` | ||
![](docs/kargo-demo.png) | ||
--- | ||
Requires argo and kargo creds to be placed on the cluster. These should come from vault in practice. | ||
```yaml | ||
# Argocd git cred | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
metadata: | ||
name: kargo-demo-argo-repo | ||
namespace: argocd | ||
labels: | ||
argocd.argoproj.io/secret-type: repo | ||
stringData: | ||
url: https://github.com/SwanseaUniversityMedical/kargo-pipelines.git | ||
username: example | ||
password: xxx | ||
--- | ||
# Kargo git cred (annoyingly different) | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
metadata: | ||
name: kargo-demo-kargo-repo | ||
namespace: kargo-demo | ||
labels: | ||
kargo.akuity.io/cred-type: git | ||
stringData: | ||
repoURL: https://github.com/SwanseaUniversityMedical/kargo-pipelines.git | ||
username: example | ||
password: xxx | ||
--- | ||
# Kargo oci image cred | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
metadata: | ||
name: kargo-demo-kargo-registry | ||
namespace: kargo-demo | ||
labels: | ||
kargo.akuity.io/cred-type: image | ||
stringData: | ||
repoURL: harbor.ukserp.ac.uk/dlm/airflow/dags | ||
username: example | ||
password: xxx | ||
``` |
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