diff --git a/kind/registry/second-cluster.yaml b/kind/registry/second-cluster.yaml new file mode 100644 index 0000000..ddd8fb7 --- /dev/null +++ b/kind/registry/second-cluster.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: second-cluster + namespace: argocd + labels: + env: dev +spec: + destination: + name: in-cluster + namespace: argocd + source: + path: stacks/second-cluster + repoURL: 'https://gitea.cnoe.localtest.me/giteaAdmin/edfbuilder-shoot' + targetRevision: HEAD + project: default + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/kind/stacks/second-cluster/create-new-cluster-guestbook.yaml b/kind/stacks/second-cluster/create-new-cluster-guestbook.yaml new file mode 100644 index 0000000..5509ad9 --- /dev/null +++ b/kind/stacks/second-cluster/create-new-cluster-guestbook.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: create-new-cluster-guestbook + namespace: argocd + labels: + env: dev + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + syncPolicy: + automated: + selfHeal: true + syncOptions: + - CreateNamespace=true + destination: + name: in-cluster + namespace: crossplane-system + source: + path: stacks/second-cluster/create-new-cluster-guestbook + repoURL: https://gitea.cnoe.localtest.me/giteaAdmin/edfbuilder-shoot.git + targetRevision: HEAD diff --git a/kind/stacks/second-cluster/create-new-cluster-guestbook/argocluster.yaml b/kind/stacks/second-cluster/create-new-cluster-guestbook/argocluster.yaml new file mode 100644 index 0000000..40773ed --- /dev/null +++ b/kind/stacks/second-cluster/create-new-cluster-guestbook/argocluster.yaml @@ -0,0 +1,18 @@ +apiVersion: cluster.argocd.crossplane.io/v1alpha1 +kind: Cluster +metadata: + name: argo-app-test + labels: + purpose: dev + annotations: + argocd.argoproj.io/sync-wave: "2" +spec: + forProvider: + config: + kubeconfigSecretRef: + key: kubeconfig + namespace: crossplane-system + name: argo-app-test-kubeconf + name: argo-app-test-cluster + providerConfigRef: + name: argocd-provider diff --git a/kind/stacks/second-cluster/create-new-cluster-guestbook/guestbook.yaml b/kind/stacks/second-cluster/create-new-cluster-guestbook/guestbook.yaml new file mode 100644 index 0000000..a373e8b --- /dev/null +++ b/kind/stacks/second-cluster/create-new-cluster-guestbook/guestbook.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argo-second-cluster-demo + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "3" +spec: + destination: + namespace: jojo + name: argo-app-test-cluster + project: default + source: + path: guestbook + repoURL: https://github.com/argoproj/argocd-example-apps.git + targetRevision: HEAD + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + retry: + limit: -1 + backoff: + duration: 5s + factor: 2 + maxDuration: 1m diff --git a/kind/stacks/second-cluster/create-new-cluster-guestbook/kindcluster.yaml b/kind/stacks/second-cluster/create-new-cluster-guestbook/kindcluster.yaml new file mode 100644 index 0000000..71d99e7 --- /dev/null +++ b/kind/stacks/second-cluster/create-new-cluster-guestbook/kindcluster.yaml @@ -0,0 +1,24 @@ +apiVersion: container.kind.crossplane.io/v1alpha1 +kind: KindCluster +metadata: + name: argo-app-test + annotations: + argocd.argoproj.io/sync-wave: "1" +spec: + forProvider: + kindConfig: | + kind: Cluster + apiVersion: kind.x-k8s.io/v1alpha4 + nodes: + - role: control-plane + kubeadmConfigPatches: + - | + kind: InitConfiguration + nodeRegistration: + kubeletExtraArgs: + node-labels: "ingress-ready=true" + providerConfigRef: + name: kind-provider + writeConnectionSecretToRef: + namespace: crossplane-system + name: argo-app-test-kubeconf