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