From dc57fdf6b62c1ce92574fd549c0c5c4f8f7341ac Mon Sep 17 00:00:00 2001 From: Joe Monk Date: Fri, 16 Feb 2024 22:38:29 +0000 Subject: [PATCH] Try adding kustomizes --- .vscode/settings.json | 5 +++++ apps/whoami.yaml | 2 +- clusters/talos/apps.yaml | 14 ++++++++++++++ clusters/talos/infra.yaml | 12 ++++++++++++ clusters/talos/kustomization.yaml | 4 ---- infra/traefik.yaml | 4 ++-- 6 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 clusters/talos/apps.yaml create mode 100644 clusters/talos/infra.yaml delete mode 100644 clusters/talos/kustomization.yaml diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..85e7838 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "yaml.schemas": { + "https://json.schemastore.org/kustomization.json": "file:///workspace/gitops/infra/traefik.yaml" + } +} \ No newline at end of file diff --git a/apps/whoami.yaml b/apps/whoami.yaml index b0b2d7e..bb6a0a8 100644 --- a/apps/whoami.yaml +++ b/apps/whoami.yaml @@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - apps-namespace.yaml -- ./whoami \ No newline at end of file +- whoami \ No newline at end of file diff --git a/clusters/talos/apps.yaml b/clusters/talos/apps.yaml new file mode 100644 index 0000000..30b4428 --- /dev/null +++ b/clusters/talos/apps.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: apps + namespace: flux-system +spec: + interval: 10m + path: ./apps + prune: true + sourceRef: + kind: GitRepository + name: flux-cluster + dependsOn: + - name: infra \ No newline at end of file diff --git a/clusters/talos/infra.yaml b/clusters/talos/infra.yaml new file mode 100644 index 0000000..43640ea --- /dev/null +++ b/clusters/talos/infra.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: infra + namespace: flux-system +spec: + interval: 10m0s + path: ./infra + prune: true + sourceRef: + kind: GitRepository + name: flux-cluster diff --git a/clusters/talos/kustomization.yaml b/clusters/talos/kustomization.yaml deleted file mode 100644 index a4e3964..0000000 --- a/clusters/talos/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- ./infra \ No newline at end of file diff --git a/infra/traefik.yaml b/infra/traefik.yaml index b0b2d7e..689a945 100644 --- a/infra/traefik.yaml +++ b/infra/traefik.yaml @@ -1,5 +1,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- apps-namespace.yaml -- ./whoami \ No newline at end of file +- ingress-namespace.yaml +- whoami \ No newline at end of file