From f2a38718416b20d4a8208cf42e5d63c703b806b3 Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Wed, 20 Nov 2024 21:30:56 +0000 Subject: [PATCH] chore: add a cluster --- registry/components/clusters/home-k3s.yaml | 31 +++++++++++++++++++ .../components/clusters/kustomization.yaml | 5 +++ registry/components/clusters/namespace.yaml | 6 ++++ 3 files changed, 42 insertions(+) create mode 100644 registry/components/clusters/home-k3s.yaml create mode 100644 registry/components/clusters/kustomization.yaml create mode 100644 registry/components/clusters/namespace.yaml diff --git a/registry/components/clusters/home-k3s.yaml b/registry/components/clusters/home-k3s.yaml new file mode 100644 index 0000000..d07a795 --- /dev/null +++ b/registry/components/clusters/home-k3s.yaml @@ -0,0 +1,31 @@ +apiVersion: v1 +kind: Secret +metadata: + name: argocd-cluster-home + namespace: argocd + labels: + argocd.argoproj.io/secret-type: cluster +type: Opaque +stringData: + name: home + server: https://k3s-001.clusters.svc.cluster.local:6443 + config: | + { + "tlsClientConfig": { + "caData": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJkakNDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUzTXpJeE1qUXlOVE13SGhjTk1qUXhNVEl3TVRjek56TXpXaGNOTXpReE1URTRNVGN6TnpNegpXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUzTXpJeE1qUXlOVE13V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFUTmZ0Nk9KVU96YWtkbXpEOFpTRzZiRkhucmVsU3RTRUlOMnhkcitsTkIKZHRnajl5QnE0R1o0ZGNiV1FHWnVzOFVXb21Ddm5CcDl2T3pDR28wejFqOGlvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVXdZR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: v1 +kind: Service +metadata: + name: k3s-001 + namespace: clusters + annotations: + tailscale.com/tailnet-fqdn: k3s-001.tail30e9d2.ts.net +spec: + externalName: k3s-001 + type: ExternalName diff --git a/registry/components/clusters/kustomization.yaml b/registry/components/clusters/kustomization.yaml new file mode 100644 index 0000000..106c27f --- /dev/null +++ b/registry/components/clusters/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - home-k3s.yaml + - namespace.yaml diff --git a/registry/components/clusters/namespace.yaml b/registry/components/clusters/namespace.yaml new file mode 100644 index 0000000..6077e53 --- /dev/null +++ b/registry/components/clusters/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: clusters + annotations: + argocd.argoproj.io/sync-wave: "-1"