-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deployed 0798816 with MkDocs version: 1.5.2
- Loading branch information
Unknown
committed
Sep 18, 2023
0 parents
commit 0671772
Showing
723 changed files
with
594,848 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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,23 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: argocd-notifications | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: argocd | ||
|
||
source: | ||
repoURL: https://github.com/nakamasato/kubernetes-training.git | ||
targetRevision: master | ||
path: argocd/setup-notifications/overlays/slack | ||
|
||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: argocd | ||
|
||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true |
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,23 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: argocd-notifications | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: argocd | ||
|
||
source: | ||
repoURL: https://github.com/nakamasato/kubernetes-training.git | ||
targetRevision: master | ||
path: argocd/setup-notifications/base | ||
|
||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: argocd | ||
|
||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true |
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,23 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: argocd | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: argocd | ||
|
||
source: | ||
repoURL: https://github.com/nakamasato/kubernetes-training.git | ||
targetRevision: main | ||
path: contents/argocd/setup | ||
|
||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: argocd | ||
|
||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true |
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,37 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: argocd | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io # not to delete AppProject before deleting its Applications | ||
spec: | ||
description: manage argocd by argocd | ||
|
||
sourceRepos: | ||
- "*" | ||
|
||
destinations: | ||
- namespace: argocd | ||
server: https://kubernetes.default.svc | ||
|
||
clusterResourceWhitelist: | ||
- group: apiextensions.k8s.io | ||
kind: CustomResourceDefinition | ||
- group: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
- group: rbac.authorization.k8s.io | ||
kind: ClusterRoleBinding | ||
- group: '' | ||
kind: Namespace | ||
|
||
namespaceResourceBlacklist: | ||
- group: "" | ||
kind: ResourceQuota | ||
- group: "" | ||
kind: LimitRange | ||
- group: "" | ||
kind: NetworkPolicy | ||
|
||
orphanedResources: | ||
warn: false |
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,32 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: guestbook-kustomize-dev | ||
namespace: argocd | ||
labels: | ||
app: guestbook-ui | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
annotations: | ||
notifications.argoproj.io/subscribe.on-sync-succeeded.slack: argocd-notifications-guestbook-ui | ||
spec: | ||
project: dev | ||
|
||
# Source of the application manifests | ||
source: | ||
repoURL: https://github.com/nakamasato/k8s-deploy-test.git | ||
targetRevision: dev | ||
path: apps/guestbook-kustomize/overlays/dev | ||
|
||
# Destination cluster and namespace to deploy the application | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: dev | ||
|
||
# Sync policy | ||
syncPolicy: | ||
automated: | ||
prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). | ||
selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). | ||
syncOptions: | ||
- CreateNamespace=true |
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,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: dev |
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,31 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: dev | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io # not to delete AppProject before deleting its Applications | ||
spec: | ||
description: dev only allows to deploy applications in `dev` namespace | ||
|
||
sourceRepos: | ||
- "*" | ||
|
||
destinations: | ||
- namespace: dev | ||
server: https://kubernetes.default.svc | ||
|
||
clusterResourceWhitelist: | ||
- group: "*" | ||
kind: "*" | ||
|
||
namespaceResourceBlacklist: | ||
- group: "" | ||
kind: ResourceQuota | ||
- group: "" | ||
kind: LimitRange | ||
- group: "" | ||
kind: NetworkPolicy | ||
|
||
orphanedResources: | ||
warn: false |
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,32 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: kserve-test | ||
namespace: argocd | ||
labels: | ||
app: kserve-test | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
annotations: | ||
notifications.argoproj.io/subscribe.on-sync-succeeded.slack: argocd-notifications-guestbook-ui | ||
spec: | ||
project: kserve-test | ||
|
||
# Source of the application manifests | ||
source: | ||
repoURL: https://github.com/nakamasato/kubeflow-training.git | ||
targetRevision: add-kserve | ||
path: kserve | ||
|
||
# Destination cluster and namespace to deploy the application | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: kserve-test | ||
|
||
# Sync policy | ||
syncPolicy: | ||
automated: | ||
prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). | ||
selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). | ||
syncOptions: | ||
- CreateNamespace=true |
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,31 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: kserve-test | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io # not to delete AppProject before deleting its Applications | ||
spec: | ||
description: kserve-test | ||
|
||
sourceRepos: | ||
- "*" | ||
|
||
destinations: | ||
- namespace: kserve-test | ||
server: https://kubernetes.default.svc | ||
|
||
clusterResourceWhitelist: | ||
- group: "*" | ||
kind: "*" | ||
|
||
namespaceResourceBlacklist: | ||
- group: "" | ||
kind: ResourceQuota | ||
- group: "" | ||
kind: LimitRange | ||
- group: "" | ||
kind: NetworkPolicy | ||
|
||
orphanedResources: | ||
warn: false |
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,46 @@ | ||
argocdUrl: https://localhost:8080 | ||
|
||
subscriptions: | ||
# subscription for on-sync-status-unknown trigger notifications | ||
- recipients: | ||
- slack:argocd-notifications | ||
triggers: | ||
- on-created | ||
- on-deleted | ||
- on-deployed | ||
- on-health-degraded | ||
- on-sync-failed | ||
- on-sync-running | ||
- on-sync-status-unknown | ||
- on-sync-succeeded | ||
# subscription restricted to applications with matching labels only | ||
- recipients: | ||
- slack:argocd-notifications-guestbook-ui | ||
selector: app=guestbook-ui | ||
triggers: | ||
- on-sync-status-unknown | ||
- on-sync-succeeded | ||
|
||
notifiers: | ||
service.slack: | | ||
token: $slack-token | ||
username: argocd-notifications | ||
icon: ":argo:" | ||
secret: | ||
items: | ||
slack-token: dummy | ||
|
||
templates: | ||
template.app-deployed: | | ||
email: | ||
subject: New version of an application {{.app.metadata.name}} is up and running. | ||
message: | | ||
{{if eq .serviceType "slack"}}:white_check_mark:{{end}} Application {{.app.metadata.name}} is now running new version of deployments manifests. | ||
triggers: | ||
trigger.on-deployed: | | ||
- description: Application is synced and healthy. Triggered once per commit. | ||
oncePer: app.status.operationState.syncResult.revision | ||
send: | ||
- app-deployed | ||
when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy' |
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,5 @@ | ||
namespace: argocd | ||
bases: | ||
- https://raw.githubusercontent.com/argoproj-labs/argocd-notifications/v1.1.1/manifests/install.yaml | ||
patchesStrategicMerge: | ||
- https://raw.githubusercontent.com/argoproj-labs/argocd-notifications/v1.1.1/catalog/install.yaml |
33 changes: 33 additions & 0 deletions
33
argocd/setup-notifications/overlays/slack/argocd-notifications-cm.yaml
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,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argocd-notifications-cm | ||
data: | ||
# Contains centrally managed global application subscriptions | ||
context: | | ||
argocdUrl: localhost:8080 | ||
subscriptions: | | ||
# subscription for on-sync-status-unknown trigger notifications | ||
- recipients: | ||
- slack:argocd-notifications | ||
triggers: | ||
- on-created | ||
- on-deleted | ||
- on-deployed | ||
- on-health-degraded | ||
- on-sync-failed | ||
- on-sync-running | ||
- on-sync-status-unknown | ||
- on-sync-succeeded | ||
# subscription restricted to applications with matching labels only | ||
- recipients: | ||
- slack:argocd-notifications-guestbook-ui | ||
selector: app=guestbook-ui | ||
triggers: | ||
- on-sync-status-unknown | ||
- on-sync-succeeded | ||
service.slack: | | ||
token: $slack-token | ||
username: argocd-notifications | ||
icon: ":argo:" |
6 changes: 6 additions & 0 deletions
6
argocd/setup-notifications/overlays/slack/argocd-notifications-secret-sample.yaml
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,6 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: argocd-notifications-secret | ||
stringData: | ||
slack-token: xxxxx |
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,5 @@ | ||
bases: | ||
- ../../base | ||
patchesStrategicMerge: | ||
- argocd-notifications-secret.yaml | ||
- argocd-notifications-cm.yaml |
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 @@ | ||
namespace: argocd | ||
bases: | ||
- github.com/argoproj/argo-cd//manifests/cluster-install?ref=v2.8.4 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.