-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ApplicationSet to deploy AKS Cluster with Helm Chart (#56)
- Loading branch information
Showing
5 changed files
with
65 additions
and
2 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
Empty file.
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,48 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ApplicationSet | ||
metadata: | ||
name: aks-appset | ||
namespace: argocd | ||
spec: | ||
generators: | ||
- clusters: | ||
selector: | ||
matchExpressions: | ||
- key: akuity.io/argo-cd-cluster-name | ||
operator: NotIn | ||
values: [in-cluster] | ||
template: | ||
metadata: | ||
name: aks0 | ||
namespace: argocd | ||
spec: | ||
destination: | ||
namespace: default | ||
server: https://kubernetes.default.svc | ||
project: default | ||
source: | ||
repoURL: 'https://mboersma.github.io/cluster-api-charts' | ||
chart: azure-managed-cluster | ||
targetRevision: v0.2.2 | ||
helm: | ||
valuesObject: | ||
subscriptionID: '{{metadata.annotations.subscription_id}}' | ||
identity: | ||
clientID: '{{metadata.annotations.capz_identity_id}}' | ||
tenantID: '{{metadata.annotations.tenant_id}}' | ||
type: WorkloadIdentity | ||
controlplane: | ||
## SSH public key (must be valid) | ||
sshPublicKey: '{{metadata.annotations.git_public_ssh_key}}' | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
retry: | ||
limit: -1 # number of failed sync attempt retries; unlimited number of attempts if less than 0 | ||
backoff: | ||
duration: 5s # the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") | ||
factor: 2 # a factor to multiply the base duration after each failed retry | ||
maxDuration: 10m # the maximum amount of time allowed for the backoff strategy |
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