diff --git a/contexts/default/blueprint.yaml b/contexts/colima/blueprint.yaml similarity index 71% rename from contexts/default/blueprint.yaml rename to contexts/colima/blueprint.yaml index a7706160..bea08de9 100644 --- a/contexts/default/blueprint.yaml +++ b/contexts/colima/blueprint.yaml @@ -1,8 +1,8 @@ kind: Blueprint apiVersion: blueprints.windsorcli.dev/v1alpha1 metadata: - name: default - description: This blueprint outlines resources in the local context + name: colima + description: This blueprint configures core for running in a Colima managed VM repository: url: http://git.test/git/core ref: @@ -29,6 +29,7 @@ kustomize: path: pki/base dependsOn: - policy-resources + force: true components: - cert-manager - trust-manager @@ -36,36 +37,50 @@ kustomize: path: pki/resources dependsOn: - pki-base - - policy-resources + force: true components: - private-issuer/ca - public-issuer/selfsigned +- name: dns + path: dns + dependsOn: + - pki-base + force: true + components: + - coredns + - coredns/etcd + - external-dns + - external-dns/coredns + - external-dns/ingress - name: lb-base path: lb/base dependsOn: - policy-resources + force: true components: - metallb - name: lb-resources path: lb/resources dependsOn: - lb-base - - policy-resources + force: true components: - metallb/layer2 - name: ingress-base path: ingress/base dependsOn: - pki-resources - - policy-resources + force: true components: - nginx - - nginx/nodeport-web - - nginx/nodeport-flux-webhook + - nginx/loadbalancer + - nginx/coredns + - nginx/flux-webhook + - nginx/web - name: gitops path: gitops/flux dependsOn: - ingress-base - - policy-resources + force: true components: - webhook diff --git a/contexts/colima/terraform/cluster/talos.tfvars b/contexts/colima/terraform/cluster/talos.tfvars new file mode 100644 index 00000000..7d619af7 --- /dev/null +++ b/contexts/colima/terraform/cluster/talos.tfvars @@ -0,0 +1,25 @@ +// Managed by Windsor CLI: This file is partially managed by the windsor CLI. Your changes will not be overwritten. +// Module source: github.com/windsorcli/core//terraform/cluster/talos?ref=main + +// The external controlplane API endpoint of the kubernetes API +cluster_endpoint = "https://10.5.0.2:6443" + +// The name of the cluster +cluster_name = "talos" + +// A YAML string of common config patches to apply +common_config_patches = "\"cluster\":\n \"apiServer\":\n \"certSANs\":\n - \"localhost\"\n - \"10.5.0.2\"\n \"extraManifests\":\n - \"https://raw.githubusercontent.com/alex1989hu/kubelet-serving-cert-approver/v0.8.7/deploy/standalone-install.yaml\"\n\"machine\":\n \"certSANs\":\n - \"localhost\"\n - \"10.5.0.2\"\n \"features\":\n \"hostDNS\":\n \"forwardKubeDNSToHost\": true\n \"kubelet\":\n \"extraArgs\":\n \"rotate-server-certificates\": \"true\"\n \"network\":\n \"interfaces\":\n - \"ignore\": true\n \"interface\": \"eth0\"\n \"registries\":\n \"mirrors\":\n \"gcr.io\":\n \"endpoints\":\n - \"http://gcr.test:5000\"\n \"ghcr.io\":\n \"endpoints\":\n - \"http://ghcr.test:5000\"\n \"quay.io\":\n \"endpoints\":\n - \"http://quay.test:5000\"\n \"registry-1.docker.io\":\n \"endpoints\":\n - \"http://registry-1.docker.test:5000\"\n \"registry.k8s.io\":\n \"endpoints\":\n - \"http://registry.k8s.test:5000\"\n \"registry.test\":\n \"endpoints\":\n - \"http://registry.test:5000\"" + +// Machine config details for control planes +controlplanes = [{ + endpoint = "10.5.0.2:50000" + hostname = "controlplane-1.test" + node = "10.5.0.2" +}] + +// Machine config details for workers +workers = [{ + endpoint = "10.5.0.11:50000" + hostname = "worker-1.test" + node = "10.5.0.11" +}] diff --git a/contexts/default/terraform/gitops/flux.tfvars b/contexts/colima/terraform/gitops/flux.tfvars similarity index 100% rename from contexts/default/terraform/gitops/flux.tfvars rename to contexts/colima/terraform/gitops/flux.tfvars diff --git a/contexts/default/terraform/cluster/talos.tfvars b/contexts/default/terraform/cluster/talos.tfvars deleted file mode 100644 index 38591164..00000000 --- a/contexts/default/terraform/cluster/talos.tfvars +++ /dev/null @@ -1,67 +0,0 @@ -// Managed by Windsor CLI: This file is partially managed by the windsor CLI. Your changes will not be overwritten. -// Module source: github.com/windsorcli/core//terraform/cluster/talos?ref=main - -// The external controlplane API endpoint of the kubernetes API -cluster_endpoint = "https://127.0.0.1:6443" - -// The name of the cluster -cluster_name = "talos" - -// A YAML string of common config patches to apply -common_config_patches = <