Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ae597cfc4 | ||
|
|
33f72fb88c |
No files matched your search
@@ -74,11 +74,10 @@ function k3sInstallScript(
|
|||||||
return pulumi.interpolate`set -euo pipefail; IFS= read -r K3S_TOKEN || true; export K3S_TOKEN; curl -sfL ${k3sInstallerUrl} | sudo --preserve-env=K3S_TOKEN INSTALL_K3S_VERSION='${k3sVersion}' ${installEnv} sh -s - ${installArgs}`;
|
return pulumi.interpolate`set -euo pipefail; IFS= read -r K3S_TOKEN || true; export K3S_TOKEN; curl -sfL ${k3sInstallerUrl} | sudo --preserve-env=K3S_TOKEN INSTALL_K3S_VERSION='${k3sVersion}' ${installEnv} sh -s - ${installArgs}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Control-plane VIP — floating IP for API server access, ARP-announced by
|
// Kubernetes API address (port 6443), used by kubectl, Pulumi and joining nodes.
|
||||||
// kube-vip on whichever master is alive. Added as a TLS SAN on master-1's
|
// pfSense holds this IP, and HAProxy forwards connections to the masters, so
|
||||||
// cert below, then used (instead of master1Ip) for every other node's join
|
// the API doesn't depend on a single master.
|
||||||
// URL and for the exported kubeconfig, so the cluster stays reachable
|
// This isn't kubeVipAddress in 03-k8s-infra, which is Traefik's IP for web apps.
|
||||||
// through the loss of any single master.
|
|
||||||
const controlPlaneVipAddress = config.requireSecret("controlPlaneVipAddress");
|
const controlPlaneVipAddress = config.requireSecret("controlPlaneVipAddress");
|
||||||
|
|
||||||
// VM IDs and CI runner SSH key — read from proxmox-infra stack outputs
|
// VM IDs and CI runner SSH key — read from proxmox-infra stack outputs
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ const truenasNfsPath = config.requireSecret("truenasNfsPath");
|
|||||||
const cloudflareToken = config.requireSecret("cloudflareApiToken");
|
const cloudflareToken = config.requireSecret("cloudflareApiToken");
|
||||||
const letsencryptEmail = config.requireSecret("letsencryptEmail");
|
const letsencryptEmail = config.requireSecret("letsencryptEmail");
|
||||||
|
|
||||||
|
// Traefik's IP for web apps (ports 80 and 443). kube-vip announces it on the
|
||||||
|
// LAN, and the app domains in pfSense's DNS Resolver must point to it.
|
||||||
|
// This isn't the Kubernetes API address. That's controlPlaneVipAddress in
|
||||||
|
// 02-k8s-bootstrap, which is provided by pfSense and HAProxy.
|
||||||
const kubeVipAddress = config.requireSecret("kubeVipAddress");
|
const kubeVipAddress = config.requireSecret("kubeVipAddress");
|
||||||
const kubeVipInterface = config.require("kubeVipInterface");
|
const kubeVipInterface = config.require("kubeVipInterface");
|
||||||
|
|
||||||
@@ -547,6 +551,7 @@ const kubeVipCloudProvider = new k8s.apps.v1.Deployment(
|
|||||||
opts({ dependsOn: [cloudProviderClusterRoleBinding, kubeVipPool] }),
|
opts({ dependsOn: [cloudProviderClusterRoleBinding, kubeVipPool] }),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Assigns kubeVipAddress to the Traefik Service that k3s creates.
|
||||||
new k8s.core.v1.ServicePatch(
|
new k8s.core.v1.ServicePatch(
|
||||||
"traefik-vip",
|
"traefik-vip",
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user