@ydkn/pulumi-components 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index.ts → index.d.ts} +5 -40
- package/index.d.ts.map +1 -0
- package/index.js +105 -0
- package/index.js.map +1 -0
- package/lib/avahi/deployment.d.ts +26 -0
- package/lib/avahi/deployment.d.ts.map +1 -0
- package/lib/avahi/deployment.js +165 -0
- package/lib/avahi/deployment.js.map +1 -0
- package/lib/avahi/{index.ts → index.d.ts} +1 -1
- package/lib/avahi/index.d.ts.map +1 -0
- package/lib/avahi/index.js +8 -0
- package/lib/avahi/index.js.map +1 -0
- package/lib/avahi/service.d.ts +37 -0
- package/lib/avahi/service.d.ts.map +1 -0
- package/lib/avahi/service.js +93 -0
- package/lib/avahi/service.js.map +1 -0
- package/lib/aws/accessKey.d.ts +22 -0
- package/lib/aws/accessKey.d.ts.map +1 -0
- package/lib/aws/accessKey.js +50 -0
- package/lib/aws/accessKey.js.map +1 -0
- package/lib/aws/bucket.d.ts +28 -0
- package/lib/aws/bucket.d.ts.map +1 -0
- package/lib/aws/bucket.js +72 -0
- package/lib/aws/bucket.js.map +1 -0
- package/lib/aws/{index.ts → index.d.ts} +1 -1
- package/lib/aws/index.d.ts.map +1 -0
- package/lib/aws/index.js +8 -0
- package/lib/aws/index.js.map +1 -0
- package/lib/blocky/deployment.d.ts +25 -0
- package/lib/blocky/deployment.d.ts.map +1 -0
- package/lib/blocky/deployment.js +130 -0
- package/lib/blocky/deployment.js.map +1 -0
- package/lib/blocky/{index.ts → index.d.ts} +1 -1
- package/lib/blocky/index.d.ts.map +1 -0
- package/lib/blocky/index.js +6 -0
- package/lib/blocky/index.js.map +1 -0
- package/lib/certManager/certificate.d.ts +126 -0
- package/lib/certManager/certificate.d.ts.map +1 -0
- package/lib/certManager/certificate.js +65 -0
- package/lib/certManager/certificate.js.map +1 -0
- package/lib/certManager/index.d.ts +5 -0
- package/lib/certManager/index.d.ts.map +1 -0
- package/lib/certManager/index.js +11 -0
- package/lib/certManager/index.js.map +1 -0
- package/lib/certManager/issuer.d.ts +109 -0
- package/lib/certManager/issuer.d.ts.map +1 -0
- package/lib/certManager/issuer.js +62 -0
- package/lib/certManager/issuer.js.map +1 -0
- package/lib/certManager/operator.d.ts +29 -0
- package/lib/certManager/operator.d.ts.map +1 -0
- package/lib/certManager/operator.js +209 -0
- package/lib/certManager/operator.js.map +1 -0
- package/lib/common/componentResource.d.ts +20 -0
- package/lib/common/componentResource.d.ts.map +1 -0
- package/lib/common/componentResource.js +85 -0
- package/lib/common/componentResource.js.map +1 -0
- package/lib/common/{index.ts → index.d.ts} +1 -2
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +6 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/types.d.ts +3 -0
- package/lib/common/types.d.ts.map +1 -0
- package/lib/common/types.js +3 -0
- package/lib/common/types.js.map +1 -0
- package/lib/cups/avahiService.d.ts +20 -0
- package/lib/cups/avahiService.d.ts.map +1 -0
- package/lib/cups/avahiService.js +79 -0
- package/lib/cups/avahiService.js.map +1 -0
- package/lib/cups/deployment.d.ts +38 -0
- package/lib/cups/deployment.d.ts.map +1 -0
- package/lib/cups/deployment.js +166 -0
- package/lib/cups/deployment.js.map +1 -0
- package/lib/cups/{index.ts → index.d.ts} +1 -1
- package/lib/cups/index.d.ts.map +1 -0
- package/lib/cups/index.js +8 -0
- package/lib/cups/index.js.map +1 -0
- package/lib/devcontainer/deployment.d.ts +39 -0
- package/lib/devcontainer/deployment.d.ts.map +1 -0
- package/lib/devcontainer/deployment.js +216 -0
- package/lib/devcontainer/deployment.js.map +1 -0
- package/lib/devcontainer/{index.ts → index.d.ts} +1 -1
- package/lib/devcontainer/index.d.ts.map +1 -0
- package/lib/devcontainer/index.js +6 -0
- package/lib/devcontainer/index.js.map +1 -0
- package/lib/dhcpd/deployment.d.ts +28 -0
- package/lib/dhcpd/deployment.d.ts.map +1 -0
- package/lib/dhcpd/deployment.js +150 -0
- package/lib/dhcpd/deployment.js.map +1 -0
- package/lib/dhcpd/{index.ts → index.d.ts} +1 -1
- package/lib/dhcpd/index.d.ts.map +1 -0
- package/lib/dhcpd/index.js +6 -0
- package/lib/dhcpd/index.js.map +1 -0
- package/lib/externalDns/dnsEndpoint.d.ts +66 -0
- package/lib/externalDns/dnsEndpoint.d.ts.map +1 -0
- package/lib/externalDns/dnsEndpoint.js +40 -0
- package/lib/externalDns/dnsEndpoint.js.map +1 -0
- package/lib/externalDns/index.d.ts +4 -0
- package/lib/externalDns/index.d.ts.map +1 -0
- package/lib/externalDns/index.js +8 -0
- package/lib/externalDns/index.js.map +1 -0
- package/lib/externalDns/operator.d.ts +45 -0
- package/lib/externalDns/operator.d.ts.map +1 -0
- package/lib/externalDns/operator.js +135 -0
- package/lib/externalDns/operator.js.map +1 -0
- package/lib/fcos/config.d.ts +63 -0
- package/lib/fcos/config.d.ts.map +1 -0
- package/lib/fcos/config.js +191 -0
- package/lib/fcos/config.js.map +1 -0
- package/lib/fcos/host.d.ts +34 -0
- package/lib/fcos/host.d.ts.map +1 -0
- package/lib/fcos/host.js +80 -0
- package/lib/fcos/host.js.map +1 -0
- package/lib/fcos/index.d.ts +4 -0
- package/lib/fcos/index.d.ts.map +1 -0
- package/lib/fcos/index.js +8 -0
- package/lib/fcos/index.js.map +1 -0
- package/lib/freeradius/deployment.d.ts +40 -0
- package/lib/freeradius/deployment.d.ts.map +1 -0
- package/lib/freeradius/deployment.js +199 -0
- package/lib/freeradius/deployment.js.map +1 -0
- package/lib/freeradius/{index.ts → index.d.ts} +1 -1
- package/lib/freeradius/index.d.ts.map +1 -0
- package/lib/freeradius/index.js +6 -0
- package/lib/freeradius/index.js.map +1 -0
- package/lib/gitlab/{index.ts → index.d.ts} +2 -13
- package/lib/gitlab/index.d.ts.map +1 -0
- package/lib/gitlab/index.js +12 -0
- package/lib/gitlab/index.js.map +1 -0
- package/lib/gitlab/project.d.ts +18 -0
- package/lib/gitlab/project.d.ts.map +1 -0
- package/lib/gitlab/project.js +139 -0
- package/lib/gitlab/project.js.map +1 -0
- package/lib/gitlab/renovate.d.ts +23 -0
- package/lib/gitlab/renovate.d.ts.map +1 -0
- package/lib/gitlab/renovate.js +100 -0
- package/lib/gitlab/renovate.js.map +1 -0
- package/lib/gitlab/runners/cleanup.d.ts +20 -0
- package/lib/gitlab/runners/cleanup.d.ts.map +1 -0
- package/lib/gitlab/runners/cleanup.js +109 -0
- package/lib/gitlab/runners/cleanup.js.map +1 -0
- package/lib/gitlab/runners/{index.ts → index.d.ts} +1 -1
- package/lib/gitlab/runners/index.d.ts.map +1 -0
- package/lib/gitlab/runners/index.js +10 -0
- package/lib/gitlab/runners/index.js.map +1 -0
- package/lib/gitlab/runners/runner.d.ts +30 -0
- package/lib/gitlab/runners/runner.d.ts.map +1 -0
- package/lib/gitlab/runners/runner.js +112 -0
- package/lib/gitlab/runners/runner.js.map +1 -0
- package/lib/gitlab/runners/runners.d.ts +21 -0
- package/lib/gitlab/runners/runners.d.ts.map +1 -0
- package/lib/gitlab/runners/runners.js +59 -0
- package/lib/gitlab/runners/runners.js.map +1 -0
- package/lib/grafana/agent.d.ts +41 -0
- package/lib/grafana/agent.d.ts.map +1 -0
- package/lib/grafana/agent.js +396 -0
- package/lib/grafana/agent.js.map +1 -0
- package/lib/grafana/dashboard.d.ts +17 -0
- package/lib/grafana/dashboard.d.ts.map +1 -0
- package/lib/grafana/dashboard.js +53 -0
- package/lib/grafana/dashboard.js.map +1 -0
- package/lib/grafana/datasource.d.ts +20 -0
- package/lib/grafana/datasource.d.ts.map +1 -0
- package/lib/grafana/datasource.js +71 -0
- package/lib/grafana/datasource.js.map +1 -0
- package/lib/grafana/deployment.d.ts +21 -0
- package/lib/grafana/deployment.d.ts.map +1 -0
- package/lib/grafana/deployment.js +85 -0
- package/lib/grafana/deployment.js.map +1 -0
- package/lib/grafana/{index.ts → index.d.ts} +2 -13
- package/lib/grafana/index.d.ts.map +1 -0
- package/lib/grafana/index.js +12 -0
- package/lib/grafana/index.js.map +1 -0
- package/lib/hcloud/cluster.d.ts +63 -0
- package/lib/hcloud/cluster.d.ts.map +1 -0
- package/lib/hcloud/cluster.js +344 -0
- package/lib/hcloud/cluster.js.map +1 -0
- package/lib/hcloud/{index.ts → index.d.ts} +1 -1
- package/lib/hcloud/index.d.ts.map +1 -0
- package/lib/hcloud/index.js +10 -0
- package/lib/hcloud/index.js.map +1 -0
- package/lib/hcloud/kubernetes.d.ts +27 -0
- package/lib/hcloud/kubernetes.d.ts.map +1 -0
- package/lib/hcloud/kubernetes.js +211 -0
- package/lib/hcloud/kubernetes.js.map +1 -0
- package/lib/hcloud/wireguard.d.ts +24 -0
- package/lib/hcloud/wireguard.d.ts.map +1 -0
- package/lib/hcloud/wireguard.js +126 -0
- package/lib/hcloud/wireguard.js.map +1 -0
- package/lib/k0s/cluster.d.ts +51 -0
- package/lib/k0s/cluster.d.ts.map +1 -0
- package/lib/k0s/cluster.js +206 -0
- package/lib/k0s/cluster.js.map +1 -0
- package/lib/k0s/{index.ts → index.d.ts} +1 -1
- package/lib/k0s/index.d.ts.map +1 -0
- package/lib/k0s/index.js +6 -0
- package/lib/k0s/index.js.map +1 -0
- package/lib/kubeStateMetrics/deployment.d.ts +20 -0
- package/lib/kubeStateMetrics/deployment.d.ts.map +1 -0
- package/lib/kubeStateMetrics/deployment.js +81 -0
- package/lib/kubeStateMetrics/deployment.js.map +1 -0
- package/lib/kubeStateMetrics/{index.ts → index.d.ts} +1 -1
- package/lib/kubeStateMetrics/index.d.ts.map +1 -0
- package/lib/kubeStateMetrics/index.js +6 -0
- package/lib/kubeStateMetrics/index.js.map +1 -0
- package/lib/kubemq/assets/dashboard.json +5431 -0
- package/lib/kubemq/cluster.d.ts +29 -0
- package/lib/kubemq/cluster.d.ts.map +1 -0
- package/lib/kubemq/cluster.js +77 -0
- package/lib/kubemq/cluster.js.map +1 -0
- package/lib/{postgresql/index.ts → kubemq/index.d.ts} +1 -1
- package/lib/kubemq/index.d.ts.map +1 -0
- package/lib/kubemq/index.js +8 -0
- package/lib/kubemq/index.js.map +1 -0
- package/lib/kubemq/operator.d.ts +18 -0
- package/lib/kubemq/operator.d.ts.map +1 -0
- package/lib/kubemq/operator.js +66 -0
- package/lib/kubemq/operator.js.map +1 -0
- package/lib/kubernetes/helm/{index.ts → index.d.ts} +1 -1
- package/lib/kubernetes/helm/index.d.ts.map +1 -0
- package/lib/kubernetes/helm/index.js +29 -0
- package/lib/kubernetes/helm/index.js.map +1 -0
- package/lib/kubernetes/helm/v3/chart.d.ts +37 -0
- package/lib/kubernetes/helm/v3/chart.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/chart.js +69 -0
- package/lib/kubernetes/helm/v3/chart.js.map +1 -0
- package/lib/kubernetes/helm/v3/helpers.d.ts +3 -0
- package/lib/kubernetes/helm/v3/helpers.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/helpers.js +52 -0
- package/lib/kubernetes/helm/v3/helpers.js.map +1 -0
- package/lib/kubernetes/helm/v3/{index.ts → index.d.ts} +1 -1
- package/lib/kubernetes/helm/v3/index.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/index.js +10 -0
- package/lib/kubernetes/helm/v3/index.js.map +1 -0
- package/lib/kubernetes/helm/v3/release.d.ts +15 -0
- package/lib/kubernetes/helm/v3/release.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/release.js +41 -0
- package/lib/kubernetes/helm/v3/release.js.map +1 -0
- package/lib/kubernetes/{index.ts → index.d.ts} +1 -1
- package/lib/kubernetes/index.d.ts.map +1 -0
- package/lib/kubernetes/index.js +33 -0
- package/lib/kubernetes/index.js.map +1 -0
- package/lib/kubernetes/transformations/filter.d.ts +13 -0
- package/lib/kubernetes/transformations/filter.d.ts.map +1 -0
- package/lib/kubernetes/transformations/filter.js +32 -0
- package/lib/kubernetes/transformations/filter.js.map +1 -0
- package/lib/kubernetes/transformations/{index.ts → index.d.ts} +1 -1
- package/lib/kubernetes/transformations/index.d.ts.map +1 -0
- package/lib/kubernetes/transformations/index.js +12 -0
- package/lib/kubernetes/transformations/index.js.map +1 -0
- package/lib/kubernetes/transformations/metadataNamespace.d.ts +3 -0
- package/lib/kubernetes/transformations/metadataNamespace.d.ts.map +1 -0
- package/lib/kubernetes/transformations/metadataNamespace.js +27 -0
- package/lib/kubernetes/transformations/metadataNamespace.js.map +1 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts +3 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts.map +1 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.js +61 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.js.map +1 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts +3 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts.map +1 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.js +55 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.js.map +1 -0
- package/lib/kubernetes/v1/{index.ts → index.d.ts} +2 -12
- package/lib/kubernetes/v1/index.d.ts.map +1 -0
- package/lib/kubernetes/v1/index.js +10 -0
- package/lib/kubernetes/v1/index.js.map +1 -0
- package/lib/kubernetes/v1/nfsVolume.d.ts +46 -0
- package/lib/kubernetes/v1/nfsVolume.d.ts.map +1 -0
- package/lib/kubernetes/v1/nfsVolume.js +120 -0
- package/lib/kubernetes/v1/nfsVolume.js.map +1 -0
- package/lib/kubernetes/v1/pullSecret.d.ts +18 -0
- package/lib/kubernetes/v1/pullSecret.d.ts.map +1 -0
- package/lib/kubernetes/v1/pullSecret.js +50 -0
- package/lib/kubernetes/v1/pullSecret.js.map +1 -0
- package/lib/kubernetes/v1/service.d.ts +19 -0
- package/lib/kubernetes/v1/service.d.ts.map +1 -0
- package/lib/kubernetes/v1/service.js +66 -0
- package/lib/kubernetes/v1/service.js.map +1 -0
- package/lib/localPathProvisioner/deployment.d.ts +23 -0
- package/lib/localPathProvisioner/deployment.d.ts.map +1 -0
- package/lib/localPathProvisioner/deployment.js +97 -0
- package/lib/localPathProvisioner/deployment.js.map +1 -0
- package/lib/localPathProvisioner/{index.ts → index.d.ts} +1 -1
- package/lib/localPathProvisioner/index.d.ts.map +1 -0
- package/lib/localPathProvisioner/index.js +6 -0
- package/lib/localPathProvisioner/index.js.map +1 -0
- package/lib/loki/deployment.d.ts +25 -0
- package/lib/loki/deployment.d.ts.map +1 -0
- package/lib/loki/deployment.js +125 -0
- package/lib/loki/deployment.js.map +1 -0
- package/lib/loki/{index.ts → index.d.ts} +1 -1
- package/lib/loki/index.d.ts.map +1 -0
- package/lib/loki/index.js +6 -0
- package/lib/loki/index.js.map +1 -0
- package/lib/metallb/controller.d.ts +17 -0
- package/lib/metallb/controller.d.ts.map +1 -0
- package/lib/metallb/controller.js +110 -0
- package/lib/metallb/controller.js.map +1 -0
- package/lib/metallb/{index.ts → index.d.ts} +2 -11
- package/lib/metallb/index.d.ts.map +1 -0
- package/lib/metallb/index.js +10 -0
- package/lib/metallb/index.js.map +1 -0
- package/lib/metallb/ipAddressPool.d.ts +20 -0
- package/lib/metallb/ipAddressPool.d.ts.map +1 -0
- package/lib/metallb/ipAddressPool.js +45 -0
- package/lib/metallb/ipAddressPool.js.map +1 -0
- package/lib/metallb/l2Advertisement.d.ts +21 -0
- package/lib/metallb/l2Advertisement.d.ts.map +1 -0
- package/lib/metallb/l2Advertisement.js +45 -0
- package/lib/metallb/l2Advertisement.js.map +1 -0
- package/lib/mongodb/cluster.d.ts +47 -0
- package/lib/mongodb/cluster.d.ts.map +1 -0
- package/lib/mongodb/cluster.js +260 -0
- package/lib/mongodb/cluster.js.map +1 -0
- package/lib/mongodb/index.d.ts +4 -0
- package/lib/mongodb/index.d.ts.map +1 -0
- package/lib/mongodb/index.js +8 -0
- package/lib/mongodb/index.js.map +1 -0
- package/lib/mongodb/operator.d.ts +17 -0
- package/lib/mongodb/operator.d.ts.map +1 -0
- package/lib/mongodb/operator.js +67 -0
- package/lib/mongodb/operator.js.map +1 -0
- package/lib/node/{index.ts → index.d.ts} +1 -1
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +6 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/kubernetes.d.ts +23 -0
- package/lib/node/kubernetes.d.ts.map +1 -0
- package/lib/node/kubernetes.js +112 -0
- package/lib/node/kubernetes.js.map +1 -0
- package/lib/node/node.d.ts +21 -0
- package/lib/node/node.d.ts.map +1 -0
- package/lib/node/node.js +3 -0
- package/lib/node/node.js.map +1 -0
- package/lib/openldap/deployment.d.ts +33 -0
- package/lib/openldap/deployment.d.ts.map +1 -0
- package/lib/openldap/deployment.js +200 -0
- package/lib/openldap/deployment.js.map +1 -0
- package/lib/openldap/{index.ts → index.d.ts} +1 -1
- package/lib/openldap/index.d.ts.map +1 -0
- package/lib/openldap/index.js +6 -0
- package/lib/openldap/index.js.map +1 -0
- package/lib/plex/{index.ts → index.d.ts} +1 -1
- package/lib/plex/index.d.ts.map +1 -0
- package/lib/plex/index.js +8 -0
- package/lib/plex/index.js.map +1 -0
- package/lib/plex/mediaServer.d.ts +42 -0
- package/lib/plex/mediaServer.d.ts.map +1 -0
- package/lib/plex/mediaServer.js +217 -0
- package/lib/plex/mediaServer.js.map +1 -0
- package/lib/plex/playlists.d.ts +31 -0
- package/lib/plex/playlists.d.ts.map +1 -0
- package/lib/plex/playlists.js +112 -0
- package/lib/plex/playlists.js.map +1 -0
- package/lib/postgresql/cluster.d.ts +37 -0
- package/lib/postgresql/cluster.d.ts.map +1 -0
- package/lib/postgresql/cluster.js +64 -0
- package/lib/postgresql/cluster.js.map +1 -0
- package/lib/postgresql/index.d.ts +4 -0
- package/lib/postgresql/index.d.ts.map +1 -0
- package/lib/postgresql/index.js +8 -0
- package/lib/postgresql/index.js.map +1 -0
- package/lib/postgresql/operator.d.ts +18 -0
- package/lib/postgresql/operator.d.ts.map +1 -0
- package/lib/postgresql/operator.js +83 -0
- package/lib/postgresql/operator.js.map +1 -0
- package/lib/prometheus/index.d.ts +5 -0
- package/lib/prometheus/index.d.ts.map +1 -0
- package/lib/prometheus/index.js +10 -0
- package/lib/prometheus/index.js.map +1 -0
- package/lib/prometheus/monitor.d.ts +12 -0
- package/lib/prometheus/monitor.d.ts.map +1 -0
- package/lib/prometheus/monitor.js +3 -0
- package/lib/prometheus/monitor.js.map +1 -0
- package/lib/prometheus/operator.d.ts +38 -0
- package/lib/prometheus/operator.d.ts.map +1 -0
- package/lib/prometheus/operator.js +239 -0
- package/lib/prometheus/operator.js.map +1 -0
- package/lib/prometheus/podMonitor.d.ts +27 -0
- package/lib/prometheus/podMonitor.d.ts.map +1 -0
- package/lib/prometheus/podMonitor.js +40 -0
- package/lib/prometheus/podMonitor.js.map +1 -0
- package/lib/prometheus/serviceMonitor.d.ts +37 -0
- package/lib/prometheus/serviceMonitor.d.ts.map +1 -0
- package/lib/prometheus/serviceMonitor.js +40 -0
- package/lib/prometheus/serviceMonitor.js.map +1 -0
- package/lib/raspberrypi/cluster.d.ts +41 -0
- package/lib/raspberrypi/cluster.d.ts.map +1 -0
- package/lib/raspberrypi/cluster.js +215 -0
- package/lib/raspberrypi/cluster.js.map +1 -0
- package/lib/raspberrypi/{index.ts → index.d.ts} +1 -1
- package/lib/raspberrypi/index.d.ts.map +1 -0
- package/lib/raspberrypi/index.js +6 -0
- package/lib/raspberrypi/index.js.map +1 -0
- package/lib/redis/index.d.ts +4 -0
- package/lib/redis/index.d.ts.map +1 -0
- package/lib/redis/index.js +8 -0
- package/lib/redis/index.js.map +1 -0
- package/lib/redis/operator.d.ts +17 -0
- package/lib/redis/operator.d.ts.map +1 -0
- package/lib/redis/operator.js +62 -0
- package/lib/redis/operator.js.map +1 -0
- package/lib/redis/standalone.d.ts +17 -0
- package/lib/redis/standalone.d.ts.map +1 -0
- package/lib/redis/standalone.js +87 -0
- package/lib/redis/standalone.js.map +1 -0
- package/lib/rethinkdb/deployment.d.ts +36 -0
- package/lib/rethinkdb/deployment.d.ts.map +1 -0
- package/lib/rethinkdb/deployment.js +335 -0
- package/lib/rethinkdb/deployment.js.map +1 -0
- package/lib/rethinkdb/{index.ts → index.d.ts} +1 -1
- package/lib/rethinkdb/index.d.ts.map +1 -0
- package/lib/rethinkdb/index.js +6 -0
- package/lib/rethinkdb/index.js.map +1 -0
- package/lib/rook/blockPool.d.ts +28 -0
- package/lib/rook/blockPool.d.ts.map +1 -0
- package/lib/rook/blockPool.js +79 -0
- package/lib/rook/blockPool.js.map +1 -0
- package/lib/rook/cluster.d.ts +55 -0
- package/lib/rook/cluster.d.ts.map +1 -0
- package/lib/rook/cluster.js +133 -0
- package/lib/rook/cluster.js.map +1 -0
- package/lib/rook/filesystem.d.ts +29 -0
- package/lib/rook/filesystem.d.ts.map +1 -0
- package/lib/rook/filesystem.js +133 -0
- package/lib/rook/filesystem.js.map +1 -0
- package/lib/rook/{index.ts → index.d.ts} +2 -15
- package/lib/rook/index.d.ts.map +1 -0
- package/lib/rook/index.js +12 -0
- package/lib/rook/index.js.map +1 -0
- package/lib/rook/operator.d.ts +19 -0
- package/lib/rook/operator.d.ts.map +1 -0
- package/lib/rook/operator.js +186 -0
- package/lib/rook/operator.js.map +1 -0
- package/lib/samba/avahiService.d.ts +20 -0
- package/lib/samba/avahiService.d.ts.map +1 -0
- package/lib/samba/avahiService.js +58 -0
- package/lib/samba/avahiService.js.map +1 -0
- package/lib/samba/deployment.d.ts +40 -0
- package/lib/samba/deployment.d.ts.map +1 -0
- package/lib/samba/deployment.js +251 -0
- package/lib/samba/deployment.js.map +1 -0
- package/lib/samba/{index.ts → index.d.ts} +1 -1
- package/lib/samba/index.d.ts.map +1 -0
- package/lib/samba/index.js +11 -0
- package/lib/samba/index.js.map +1 -0
- package/lib/samba/volumes.d.ts +29 -0
- package/lib/samba/volumes.d.ts.map +1 -0
- package/lib/samba/volumes.js +61 -0
- package/lib/samba/volumes.js.map +1 -0
- package/lib/ssh/exec.d.ts +33 -0
- package/lib/ssh/exec.d.ts.map +1 -0
- package/lib/ssh/exec.js +139 -0
- package/lib/ssh/exec.js.map +1 -0
- package/lib/ssh/file.d.ts +43 -0
- package/lib/ssh/file.d.ts.map +1 -0
- package/lib/ssh/file.js +136 -0
- package/lib/ssh/file.js.map +1 -0
- package/lib/ssh/{index.ts → index.d.ts} +1 -1
- package/lib/ssh/index.d.ts.map +1 -0
- package/lib/ssh/index.js +8 -0
- package/lib/ssh/index.js.map +1 -0
- package/lib/ssh/types.d.ts +19 -0
- package/lib/ssh/types.d.ts.map +1 -0
- package/lib/ssh/types.js +3 -0
- package/lib/ssh/types.js.map +1 -0
- package/lib/torproxy/deployment.d.ts +31 -0
- package/lib/torproxy/deployment.d.ts.map +1 -0
- package/lib/torproxy/deployment.js +154 -0
- package/lib/torproxy/deployment.js.map +1 -0
- package/lib/torproxy/{index.ts → index.d.ts} +1 -1
- package/lib/torproxy/index.d.ts.map +1 -0
- package/lib/torproxy/index.js +6 -0
- package/lib/torproxy/index.js.map +1 -0
- package/lib/traefik/controller.d.ts +29 -0
- package/lib/traefik/controller.d.ts.map +1 -0
- package/lib/traefik/controller.js +189 -0
- package/lib/traefik/controller.js.map +1 -0
- package/lib/traefik/{index.ts → index.d.ts} +1 -1
- package/lib/traefik/index.d.ts.map +1 -0
- package/lib/traefik/index.js +10 -0
- package/lib/traefik/index.js.map +1 -0
- package/lib/traefik/middleware.d.ts +27 -0
- package/lib/traefik/middleware.d.ts.map +1 -0
- package/lib/traefik/middleware.js +45 -0
- package/lib/traefik/middleware.js.map +1 -0
- package/lib/traefik/secureIngress.d.ts +32 -0
- package/lib/traefik/secureIngress.d.ts.map +1 -0
- package/lib/traefik/secureIngress.js +81 -0
- package/lib/traefik/secureIngress.js.map +1 -0
- package/lib/ubuntu/deployment.d.ts +39 -0
- package/lib/ubuntu/deployment.d.ts.map +1 -0
- package/lib/ubuntu/deployment.js +236 -0
- package/lib/ubuntu/deployment.js.map +1 -0
- package/lib/ubuntu/{index.ts → index.d.ts} +1 -1
- package/lib/ubuntu/index.d.ts.map +1 -0
- package/lib/ubuntu/index.js +6 -0
- package/lib/ubuntu/index.js.map +1 -0
- package/lib/unifi/controller.d.ts +28 -0
- package/lib/unifi/controller.d.ts.map +1 -0
- package/lib/unifi/controller.js +217 -0
- package/lib/unifi/controller.js.map +1 -0
- package/lib/unifi/{index.ts → index.d.ts} +1 -1
- package/lib/unifi/index.d.ts.map +1 -0
- package/lib/unifi/index.js +6 -0
- package/lib/unifi/index.js.map +1 -0
- package/lib/velero/{index.ts → index.d.ts} +1 -1
- package/lib/velero/index.d.ts.map +1 -0
- package/lib/velero/index.js +6 -0
- package/lib/velero/index.js.map +1 -0
- package/lib/velero/operator.d.ts +31 -0
- package/lib/velero/operator.d.ts.map +1 -0
- package/lib/velero/operator.js +171 -0
- package/lib/velero/operator.js.map +1 -0
- package/lib/wireguard/deployment.d.ts +42 -0
- package/lib/wireguard/deployment.d.ts.map +1 -0
- package/lib/wireguard/deployment.js +139 -0
- package/lib/wireguard/deployment.js.map +1 -0
- package/lib/wireguard/{index.ts → index.d.ts} +1 -1
- package/lib/wireguard/index.d.ts.map +1 -0
- package/lib/wireguard/index.js +6 -0
- package/lib/wireguard/index.js.map +1 -0
- package/package.json +16 -17
- package/.eslintrc.json +0 -14
- package/.gitlab-ci.yml +0 -73
- package/.prettierrc +0 -3
- package/lib/avahi/deployment.ts +0 -171
- package/lib/avahi/service.ts +0 -118
- package/lib/aws/accessKey.ts +0 -40
- package/lib/aws/bucket.ts +0 -71
- package/lib/blocky/deployment.ts +0 -134
- package/lib/certManager/certificate.ts +0 -168
- package/lib/certManager/index.ts +0 -39
- package/lib/certManager/issuer.ts +0 -141
- package/lib/certManager/operator.ts +0 -244
- package/lib/common/componentResource.ts +0 -78
- package/lib/common/types.ts +0 -3
- package/lib/cups/avahiService.ts +0 -66
- package/lib/cups/deployment.ts +0 -199
- package/lib/devcontainer/deployment.ts +0 -253
- package/lib/dhcpd/deployment.ts +0 -164
- package/lib/externalDns/dnsEndpoint.ts +0 -70
- package/lib/externalDns/index.ts +0 -18
- package/lib/externalDns/operator.ts +0 -165
- package/lib/fcos/config.ts +0 -237
- package/lib/fcos/host.ts +0 -91
- package/lib/fcos/index.ts +0 -27
- package/lib/freeradius/deployment.ts +0 -244
- package/lib/gitlab/project.ts +0 -148
- package/lib/gitlab/renovate.ts +0 -98
- package/lib/gitlab/runners/cleanup.ts +0 -104
- package/lib/gitlab/runners/runner.ts +0 -122
- package/lib/gitlab/runners/runners.ts +0 -49
- package/lib/grafana/agent.ts +0 -449
- package/lib/grafana/dashboard.ts +0 -38
- package/lib/grafana/datasource.ts +0 -59
- package/lib/grafana/deployment.ts +0 -78
- package/lib/hcloud/cluster.ts +0 -500
- package/lib/hcloud/kubernetes.ts +0 -237
- package/lib/hcloud/wireguard.ts +0 -155
- package/lib/k0s/cluster.ts +0 -264
- package/lib/kubeStateMetrics/deployment.ts +0 -60
- package/lib/kubernetes/helm/v3/chart.ts +0 -79
- package/lib/kubernetes/helm/v3/helpers.ts +0 -32
- package/lib/kubernetes/helm/v3/release.ts +0 -17
- package/lib/kubernetes/transformations/filter.ts +0 -43
- package/lib/kubernetes/transformations/metadataNamespace.ts +0 -25
- package/lib/kubernetes/transformations/removeCrdDescriptions.ts +0 -78
- package/lib/kubernetes/transformations/v1beta1Deprecations.ts +0 -60
- package/lib/kubernetes/v1/nfsVolume.ts +0 -145
- package/lib/kubernetes/v1/pullSecret.ts +0 -37
- package/lib/kubernetes/v1/service.ts +0 -58
- package/lib/localPathProvisioner/deployment.ts +0 -88
- package/lib/loki/deployment.ts +0 -122
- package/lib/metallb/controller.ts +0 -96
- package/lib/metallb/ipAddressPool.ts +0 -33
- package/lib/metallb/l2Advertisement.ts +0 -34
- package/lib/node/kubernetes.ts +0 -129
- package/lib/node/node.ts +0 -17
- package/lib/openldap/deployment.ts +0 -226
- package/lib/plex/mediaServer.ts +0 -265
- package/lib/plex/playlists.ts +0 -123
- package/lib/postgresql/cluster.ts +0 -61
- package/lib/postgresql/operator.ts +0 -70
- package/lib/prometheus/index.ts +0 -23
- package/lib/prometheus/monitor.ts +0 -13
- package/lib/prometheus/operator.ts +0 -264
- package/lib/prometheus/podMonitor.ts +0 -32
- package/lib/prometheus/serviceMonitor.ts +0 -43
- package/lib/raspberrypi/cluster.ts +0 -279
- package/lib/rethinkdb/deployment.ts +0 -424
- package/lib/rook/blockPool.ts +0 -80
- package/lib/rook/cluster.ts +0 -168
- package/lib/rook/filesystem.ts +0 -140
- package/lib/rook/operator.ts +0 -175
- package/lib/samba/avahiService.ts +0 -44
- package/lib/samba/deployment.ts +0 -305
- package/lib/samba/volumes.ts +0 -70
- package/lib/ssh/exec.ts +0 -162
- package/lib/ssh/file.ts +0 -165
- package/lib/ssh/types.ts +0 -20
- package/lib/torproxy/deployment.ts +0 -165
- package/lib/traefik/controller.ts +0 -207
- package/lib/traefik/middleware.ts +0 -37
- package/lib/traefik/secureIngress.ts +0 -81
- package/lib/ubuntu/deployment.ts +0 -275
- package/lib/unifi/controller.ts +0 -234
- package/lib/velero/operator.ts +0 -182
- package/lib/wireguard/deployment.ts +0 -168
- package/renovate.json +0 -4
- package/tsconfig.json +0 -21
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
-
import * as yaml from "js-yaml";
|
|
4
|
-
|
|
5
|
-
export interface DataSourceArgs {
|
|
6
|
-
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
7
|
-
type: pulumi.Input<string>;
|
|
8
|
-
name: pulumi.Input<string>;
|
|
9
|
-
url: pulumi.Input<string>;
|
|
10
|
-
orgId?: pulumi.Input<string>;
|
|
11
|
-
isDefault?: pulumi.Input<boolean>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class DataSource extends k8s.core.v1.Secret {
|
|
15
|
-
/**
|
|
16
|
-
* Create a new Grafana data source resource.
|
|
17
|
-
* @param name The name of the Grafana data source resource.
|
|
18
|
-
* @param args A bag of arguments to control the Grafana data source creation.
|
|
19
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
20
|
-
*/
|
|
21
|
-
constructor(name: string, args: DataSourceArgs, opts?: pulumi.CustomResourceOptions) {
|
|
22
|
-
super(
|
|
23
|
-
name,
|
|
24
|
-
{
|
|
25
|
-
metadata: pulumi.all([args.metadata]).apply(([metadata]) => {
|
|
26
|
-
return {
|
|
27
|
-
...metadata,
|
|
28
|
-
labels: { ...metadata.labels, grafana_datasource: "1" },
|
|
29
|
-
};
|
|
30
|
-
}),
|
|
31
|
-
stringData: pulumi
|
|
32
|
-
.all([args.type, args.name, args.url, args.orgId, args.isDefault])
|
|
33
|
-
.apply(([dsType, dsName, url, orgId, isDefault]) => {
|
|
34
|
-
const data: { [key: string]: string } = {};
|
|
35
|
-
|
|
36
|
-
data[`${dsName}.yml`] = yaml.dump({
|
|
37
|
-
apiVersion: 1,
|
|
38
|
-
deleteDatasources: [{ name: dsName, orgId: orgId ?? 1 }],
|
|
39
|
-
datasources: [
|
|
40
|
-
{
|
|
41
|
-
uid: name,
|
|
42
|
-
name: dsName,
|
|
43
|
-
type: dsType,
|
|
44
|
-
access: "proxy",
|
|
45
|
-
orgId: orgId ?? 1,
|
|
46
|
-
url,
|
|
47
|
-
editable: false,
|
|
48
|
-
isDefault: isDefault ?? false,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
return data;
|
|
54
|
-
}),
|
|
55
|
-
},
|
|
56
|
-
opts
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as random from "@pulumi/random";
|
|
3
|
-
import * as k8s from "@pulumi/kubernetes";
|
|
4
|
-
import { ComponentResource } from "../common";
|
|
5
|
-
import * as kubernetes from "../kubernetes";
|
|
6
|
-
|
|
7
|
-
export interface GrafanaArgs {
|
|
8
|
-
namespace?: pulumi.Input<string>;
|
|
9
|
-
hostname?: pulumi.Input<string>;
|
|
10
|
-
ingressClassName?: pulumi.Input<string>;
|
|
11
|
-
replicas?: pulumi.Input<number>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class Grafana extends ComponentResource {
|
|
15
|
-
private readonly helmRelease: kubernetes.helm.v3.Release;
|
|
16
|
-
public readonly adminPassword: pulumi.Output<string>;
|
|
17
|
-
public readonly namespace: pulumi.Output<string>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Create a new grafana resource.
|
|
21
|
-
* @param name The name of grafana resource.
|
|
22
|
-
* @param args A bag of arguments to control the grafana creation.
|
|
23
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
24
|
-
*/
|
|
25
|
-
constructor(name: string, args: GrafanaArgs, opts?: pulumi.ComponentResourceOptions) {
|
|
26
|
-
super("grafana", name, args, opts);
|
|
27
|
-
|
|
28
|
-
const emptyOpts = this.opts();
|
|
29
|
-
const k8sOpts = this.opts(k8s.Provider);
|
|
30
|
-
|
|
31
|
-
if (args.replicas === undefined) {
|
|
32
|
-
args.replicas = 1;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
this.adminPassword = pulumi.secret(
|
|
36
|
-
new random.RandomPassword(`${name}-admin-password`, { length: 24, special: true }, emptyOpts).result
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
this.namespace = args.namespace
|
|
40
|
-
? pulumi.output(args.namespace)
|
|
41
|
-
: new k8s.core.v1.Namespace(name, { metadata: { name } }, k8sOpts).metadata.name;
|
|
42
|
-
|
|
43
|
-
this.helmRelease = new kubernetes.helm.v3.Release(
|
|
44
|
-
name,
|
|
45
|
-
{
|
|
46
|
-
name,
|
|
47
|
-
namespace: this.namespace,
|
|
48
|
-
repositoryOpts: { repo: "https://grafana.github.io/helm-charts" },
|
|
49
|
-
chart: "grafana",
|
|
50
|
-
values: {
|
|
51
|
-
fullnameOverride: name,
|
|
52
|
-
replicas: args.replicas,
|
|
53
|
-
adminPassword: this.adminPassword,
|
|
54
|
-
testFramework: { enabled: false },
|
|
55
|
-
plugins: ["grafana-piechart-panel", "vonage-status-panel"],
|
|
56
|
-
ingress: kubernetes.helm.v3.ingressValues(name, [args.hostname], args.ingressClassName),
|
|
57
|
-
rbac: { pspEnabled: false },
|
|
58
|
-
serviceMonitor: { enabled: false }, // TODO
|
|
59
|
-
sidecar: {
|
|
60
|
-
datasources: { enabled: true, searchNamespace: "ALL" },
|
|
61
|
-
dashboards: { enabled: true, searchNamespace: "ALL" },
|
|
62
|
-
resources: {
|
|
63
|
-
requests: { memory: "64Mi" },
|
|
64
|
-
limits: { memory: "96Mi" },
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
resources: {
|
|
68
|
-
requests: { memory: "192Mi" },
|
|
69
|
-
limits: { memory: "256Mi" },
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
k8sOpts
|
|
74
|
-
);
|
|
75
|
-
|
|
76
|
-
this.registerOutputs();
|
|
77
|
-
}
|
|
78
|
-
}
|
package/lib/hcloud/cluster.ts
DELETED
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as random from "@pulumi/random";
|
|
3
|
-
import * as tls from "@pulumi/tls";
|
|
4
|
-
import * as hcloud from "@pulumi/hcloud";
|
|
5
|
-
import * as k8s from "@pulumi/kubernetes";
|
|
6
|
-
import * as path from "path";
|
|
7
|
-
import { ComponentResource } from "../common";
|
|
8
|
-
import * as node from "../node";
|
|
9
|
-
import * as fcos from "../fcos";
|
|
10
|
-
import * as k0s from "../k0s";
|
|
11
|
-
import * as ssh from "../ssh";
|
|
12
|
-
import { Kubernetes } from "./kubernetes";
|
|
13
|
-
|
|
14
|
-
interface Nodes extends node.Node, fcos.HostArgs {
|
|
15
|
-
serverType: pulumi.Input<string>;
|
|
16
|
-
count?: pulumi.Input<number>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface Node extends node.Node {
|
|
20
|
-
fcosHost: fcos.Host;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Arguments for hcloud cluster resource
|
|
25
|
-
*/
|
|
26
|
-
export interface ClusterArgs extends k0s.ClusterArgs, fcos.IgnitionArgs {
|
|
27
|
-
name?: pulumi.Input<string>;
|
|
28
|
-
token: pulumi.Input<string>;
|
|
29
|
-
location: pulumi.Input<string>;
|
|
30
|
-
zone: pulumi.Input<string>;
|
|
31
|
-
networkRange: pulumi.Input<string>;
|
|
32
|
-
nodeRange: pulumi.Input<string>;
|
|
33
|
-
nodes: pulumi.Input<pulumi.Input<Nodes>[]>;
|
|
34
|
-
externalSshAccess?: pulumi.Input<boolean>;
|
|
35
|
-
trustedNetworkRanges?: pulumi.Input<pulumi.Input<string>[]>;
|
|
36
|
-
externalAccess?: pulumi.Input<boolean>;
|
|
37
|
-
sshAuthorizedKeys?: pulumi.Input<pulumi.Input<string>[]>;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export class Cluster extends ComponentResource {
|
|
41
|
-
private static readonly rescueSshUsername = "root";
|
|
42
|
-
private static readonly sshUsername = "pulumi";
|
|
43
|
-
private static readonly primaryInterface = "ens3";
|
|
44
|
-
private static readonly privateInterfaces = [10, 11, 12, 13, 14, 15, 16, 17, 18, 19].map((i) => `ens${i}`);
|
|
45
|
-
|
|
46
|
-
private readonly sshKey: hcloud.SshKey;
|
|
47
|
-
private readonly network: hcloud.Network;
|
|
48
|
-
private readonly nodeSubnet: hcloud.NetworkSubnet;
|
|
49
|
-
private readonly placementGroup: hcloud.PlacementGroup;
|
|
50
|
-
private readonly sshFirewall: hcloud.Firewall;
|
|
51
|
-
private readonly nodesFirewall: hcloud.Firewall;
|
|
52
|
-
private readonly kubernetes: Kubernetes;
|
|
53
|
-
public readonly name: pulumi.Output<string>;
|
|
54
|
-
public readonly location: pulumi.Output<string>;
|
|
55
|
-
public readonly zone: pulumi.Output<string>;
|
|
56
|
-
public readonly sshPrivateKey: tls.PrivateKey;
|
|
57
|
-
public readonly sshPublicKey: pulumi.Output<string>;
|
|
58
|
-
public readonly networkId: pulumi.Output<number>;
|
|
59
|
-
public readonly networkRange: pulumi.Output<string>;
|
|
60
|
-
public readonly nodeRange: pulumi.Output<string>;
|
|
61
|
-
public readonly nodes: pulumi.Output<pulumi.Output<node.Node>[]>;
|
|
62
|
-
public readonly kubeconfig: pulumi.Output<string>;
|
|
63
|
-
public readonly provider: k8s.Provider;
|
|
64
|
-
public readonly kubeletDirPath: pulumi.Output<string>;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Create a new hcloud cluster resource.
|
|
68
|
-
* @param name The name of hcloud cluster resource.
|
|
69
|
-
* @param args A bag of arguments to control the hcloud cluster creation.
|
|
70
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
71
|
-
*/
|
|
72
|
-
constructor(name: string, args: ClusterArgs, opts?: pulumi.ComponentResourceOptions) {
|
|
73
|
-
super("hcloud:cluster", name, args, opts);
|
|
74
|
-
|
|
75
|
-
const emptyOpts = this.opts();
|
|
76
|
-
const hcloudOpts = this.opts(hcloud.Provider);
|
|
77
|
-
|
|
78
|
-
if (args.name === undefined) {
|
|
79
|
-
this.name = new random.RandomId(name, { byteLength: 3 }, { ...emptyOpts, protect: args.protect }).hex;
|
|
80
|
-
} else {
|
|
81
|
-
this.name = pulumi.output(args.name);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
this.location = pulumi.output(args.location);
|
|
85
|
-
this.zone = pulumi.output(args.zone);
|
|
86
|
-
|
|
87
|
-
this.sshPrivateKey = new tls.PrivateKey(name, { algorithm: "ED25519" }, { ...emptyOpts, protect: args.protect });
|
|
88
|
-
this.sshPublicKey = this.sshPrivateKey.publicKeyOpenssh;
|
|
89
|
-
this.sshKey = new hcloud.SshKey(name, { name: "pulumi", publicKey: this.sshPublicKey }, hcloudOpts);
|
|
90
|
-
|
|
91
|
-
this.network = new hcloud.Network(
|
|
92
|
-
name,
|
|
93
|
-
{ name: "private", ipRange: args.networkRange, labels: { cluster: this.name } },
|
|
94
|
-
{ ...hcloudOpts, protect: args.protect }
|
|
95
|
-
);
|
|
96
|
-
this.networkId = this.network.id.apply((o) => parseInt(o));
|
|
97
|
-
this.networkRange = this.network.ipRange;
|
|
98
|
-
|
|
99
|
-
this.nodeSubnet = new hcloud.NetworkSubnet(
|
|
100
|
-
`${name}-nodes`,
|
|
101
|
-
{ type: "cloud", networkId: this.networkId, networkZone: this.zone, ipRange: args.nodeRange },
|
|
102
|
-
{ ...hcloudOpts, protect: args.protect }
|
|
103
|
-
);
|
|
104
|
-
this.nodeRange = this.nodeSubnet.ipRange;
|
|
105
|
-
|
|
106
|
-
this.placementGroup = new hcloud.PlacementGroup(
|
|
107
|
-
name,
|
|
108
|
-
{ name: "nodes", type: "spread", labels: { cluster: this.name } },
|
|
109
|
-
hcloudOpts
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
const serverImage = pulumi
|
|
113
|
-
.all([hcloud.getImages({ withStatuses: ["available"] }, hcloudOpts)])
|
|
114
|
-
.apply(([result]) => {
|
|
115
|
-
return result.images.filter((image) => image.osFlavor === "ubuntu").sort((a, b) => (a > b ? -1 : 1))[0].name;
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
const servers = this.createServers(
|
|
119
|
-
args.nodes,
|
|
120
|
-
serverImage,
|
|
121
|
-
this.sshKey,
|
|
122
|
-
this.sshPrivateKey.privateKeyOpenssh,
|
|
123
|
-
this.nodeSubnet,
|
|
124
|
-
this.placementGroup,
|
|
125
|
-
args.modules,
|
|
126
|
-
args.packages,
|
|
127
|
-
args.files,
|
|
128
|
-
args.systemdUnits,
|
|
129
|
-
args.sshAuthorizedKeys,
|
|
130
|
-
args.protect
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
this.nodes = servers.apply((servers) => servers.map((s) => s.node));
|
|
134
|
-
|
|
135
|
-
const nodeIPs = pulumi.all([this.nodes]).apply(([nodes]) =>
|
|
136
|
-
pulumi.all(nodes).apply((nodes) => {
|
|
137
|
-
const nodeIPs: pulumi.Output<string>[] = [];
|
|
138
|
-
|
|
139
|
-
for (const node of nodes) {
|
|
140
|
-
nodeIPs.push(pulumi.interpolate`${node.ipv4Address}/32`, pulumi.interpolate`${node.ipv6Address}/128`);
|
|
141
|
-
|
|
142
|
-
if (node.privateIpv4Address !== undefined) {
|
|
143
|
-
nodeIPs.push(pulumi.interpolate`${node.privateIpv4Address}/32`);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (nodeIPs.length <= 0) {
|
|
148
|
-
nodeIPs.push(pulumi.output("127.0.0.1/32"));
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
return nodeIPs;
|
|
152
|
-
})
|
|
153
|
-
);
|
|
154
|
-
|
|
155
|
-
this.sshFirewall = new hcloud.Firewall(
|
|
156
|
-
`${name}-ssh`,
|
|
157
|
-
{
|
|
158
|
-
name: "ssh",
|
|
159
|
-
labels: { cluster: this.name },
|
|
160
|
-
applyTos: [{ labelSelector: pulumi.interpolate`cluster=${this.name}` }],
|
|
161
|
-
rules: [
|
|
162
|
-
{
|
|
163
|
-
description: "SSH",
|
|
164
|
-
direction: "in",
|
|
165
|
-
protocol: "tcp",
|
|
166
|
-
port: "22",
|
|
167
|
-
sourceIps: pulumi
|
|
168
|
-
.all([args.externalSshAccess])
|
|
169
|
-
.apply(([externalSshAccess]) =>
|
|
170
|
-
externalSshAccess ? ["0.0.0.0/0", "::/0"] : ["127.0.0.1/32", "::1/128"]
|
|
171
|
-
),
|
|
172
|
-
},
|
|
173
|
-
],
|
|
174
|
-
},
|
|
175
|
-
hcloudOpts
|
|
176
|
-
);
|
|
177
|
-
|
|
178
|
-
const nodeFirewallSourceIps = nodeIPs.apply((nodeIPs) => nodeIPs.concat(this.networkRange));
|
|
179
|
-
|
|
180
|
-
this.nodesFirewall = new hcloud.Firewall(
|
|
181
|
-
`${name}-nodes`,
|
|
182
|
-
{
|
|
183
|
-
name: "nodes",
|
|
184
|
-
labels: { cluster: this.name },
|
|
185
|
-
applyTos: [{ labelSelector: pulumi.interpolate`cluster=${this.name}` }],
|
|
186
|
-
rules: pulumi
|
|
187
|
-
.all([args.trustedNetworkRanges ?? [], nodeFirewallSourceIps])
|
|
188
|
-
.apply(([trustedNetworkRanges, nodeFirewallSourceIps]) =>
|
|
189
|
-
pulumi.all(trustedNetworkRanges.concat(nodeFirewallSourceIps)).apply((sourceIps) => [
|
|
190
|
-
{ description: "ICMP", direction: "in", protocol: "icmp", sourceIps },
|
|
191
|
-
{ description: "TCP", direction: "in", protocol: "tcp", port: "any", sourceIps },
|
|
192
|
-
{ description: "UDP", direction: "in", protocol: "udp", port: "any", sourceIps },
|
|
193
|
-
])
|
|
194
|
-
),
|
|
195
|
-
},
|
|
196
|
-
hcloudOpts
|
|
197
|
-
);
|
|
198
|
-
|
|
199
|
-
pulumi.all([args.externalAccess]).apply(([externalAccess]) => {
|
|
200
|
-
if (externalAccess) {
|
|
201
|
-
// eslint-disable-next-line no-unused-vars
|
|
202
|
-
const controllersFirewall = new hcloud.Firewall(
|
|
203
|
-
`${name}-controllers`,
|
|
204
|
-
{
|
|
205
|
-
name: "controllers",
|
|
206
|
-
labels: { cluster: this.name, controller: "true" },
|
|
207
|
-
applyTos: [{ labelSelector: pulumi.interpolate`cluster=${this.name},role=controller` }],
|
|
208
|
-
rules: [
|
|
209
|
-
{ description: "TCP", direction: "in", protocol: "tcp", port: "6443", sourceIps: ["0.0.0.0/0", "::/0"] },
|
|
210
|
-
],
|
|
211
|
-
},
|
|
212
|
-
hcloudOpts
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
const k0sCluster = servers.apply((servers) =>
|
|
218
|
-
pulumi.all(servers.map((s) => s.depends)).apply((dependsOn) => {
|
|
219
|
-
return new k0s.Cluster(
|
|
220
|
-
name,
|
|
221
|
-
{
|
|
222
|
-
name: this.name,
|
|
223
|
-
nodes: this.nodes,
|
|
224
|
-
k0s: args.k0s,
|
|
225
|
-
cloudProvider: true,
|
|
226
|
-
protect: args.protect,
|
|
227
|
-
},
|
|
228
|
-
{ ...emptyOpts, dependsOn }
|
|
229
|
-
);
|
|
230
|
-
})
|
|
231
|
-
);
|
|
232
|
-
|
|
233
|
-
this.kubeletDirPath = k0sCluster.kubeletDirPath;
|
|
234
|
-
this.kubeconfig = k0sCluster.kubeconfig;
|
|
235
|
-
this.provider = new k8s.Provider(
|
|
236
|
-
`${name}-k8s`,
|
|
237
|
-
{ kubeconfig: this.kubeconfig, suppressHelmHookWarnings: true },
|
|
238
|
-
emptyOpts
|
|
239
|
-
);
|
|
240
|
-
|
|
241
|
-
this.kubernetes = new Kubernetes(
|
|
242
|
-
name,
|
|
243
|
-
{
|
|
244
|
-
token: args.token,
|
|
245
|
-
network: this.network.id,
|
|
246
|
-
podCIDR: k0sCluster.apply((cluster) =>
|
|
247
|
-
cluster.spec.apply((spec) =>
|
|
248
|
-
spec.k0s
|
|
249
|
-
? [spec.k0s.config?.spec?.network?.podCIDR, spec.k0s.config?.spec?.network?.dualStack?.IPv6podCIDR]
|
|
250
|
-
.filter((cidr) => cidr !== undefined)
|
|
251
|
-
.join(",")
|
|
252
|
-
: ""
|
|
253
|
-
)
|
|
254
|
-
),
|
|
255
|
-
kubeletDirPath: this.kubeletDirPath,
|
|
256
|
-
},
|
|
257
|
-
{ ...emptyOpts, providers: [this.provider] }
|
|
258
|
-
);
|
|
259
|
-
|
|
260
|
-
this.registerOutputs();
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
private createServers(
|
|
264
|
-
nodes: pulumi.Input<pulumi.Input<Nodes>[]>,
|
|
265
|
-
image: pulumi.Input<string>,
|
|
266
|
-
sshKey: pulumi.Input<hcloud.SshKey>,
|
|
267
|
-
sshPrivateKey: pulumi.Input<string>,
|
|
268
|
-
subnet: hcloud.NetworkSubnet,
|
|
269
|
-
placementGroup: hcloud.PlacementGroup,
|
|
270
|
-
modules?: pulumi.Input<pulumi.Input<string>[]>,
|
|
271
|
-
packages?: pulumi.Input<pulumi.Input<string>[]>,
|
|
272
|
-
files?: pulumi.Input<pulumi.Input<fcos.FilesArgs>[]>,
|
|
273
|
-
systemdUnits?: pulumi.Input<pulumi.Input<fcos.SystemdUnitArgs>[]>,
|
|
274
|
-
sshAuthorizedKeys?: pulumi.Input<pulumi.Input<string>[]>,
|
|
275
|
-
protect?: boolean
|
|
276
|
-
): pulumi.Output<{ node: pulumi.Output<Node>; depends?: pulumi.Output<pulumi.Resource> }[]> {
|
|
277
|
-
const emptyOpts = this.opts();
|
|
278
|
-
const hcloudOpts = this.opts(hcloud.Provider);
|
|
279
|
-
|
|
280
|
-
return pulumi.all([nodes]).apply(([nodes]) => {
|
|
281
|
-
const results: { node: pulumi.Output<Node>; depends?: pulumi.Output<pulumi.Resource> }[] = [];
|
|
282
|
-
|
|
283
|
-
for (const nodeGroup of nodes) {
|
|
284
|
-
let nodesCount = nodeGroup.count;
|
|
285
|
-
if (nodesCount === undefined) {
|
|
286
|
-
nodesCount = 1;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
for (let i = 0; i < nodesCount; i++) {
|
|
290
|
-
const nodeId = new random.RandomId(`${nodeGroup.id}-${i}`, { byteLength: 3 }, emptyOpts).hex;
|
|
291
|
-
const hostname = pulumi.interpolate`${this.name}-${k0s.Cluster.rolesHostname(nodeGroup.roles)}-${nodeId}`;
|
|
292
|
-
|
|
293
|
-
const server = pulumi
|
|
294
|
-
.all([this.name, hostname, nodeGroup.roles, sshKey, nodeId, placementGroup.id])
|
|
295
|
-
.apply(([name, hostname, roles, sshKey, nodeId, placementGroupId]) => {
|
|
296
|
-
const role = k0s.Cluster.rolesHostname(roles);
|
|
297
|
-
|
|
298
|
-
return new hcloud.Server(
|
|
299
|
-
hostname,
|
|
300
|
-
{
|
|
301
|
-
name: hostname,
|
|
302
|
-
location: this.location,
|
|
303
|
-
serverType: nodeGroup.serverType,
|
|
304
|
-
image,
|
|
305
|
-
rescue: "linux64",
|
|
306
|
-
sshKeys: [sshKey.id],
|
|
307
|
-
keepDisk: true,
|
|
308
|
-
labels: { cluster: name, role, nodeId },
|
|
309
|
-
placementGroupId: parseInt(placementGroupId),
|
|
310
|
-
},
|
|
311
|
-
{ ...hcloudOpts, ignoreChanges: ["sshKeys"], protect }
|
|
312
|
-
);
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
const serverNetwork = pulumi.all([server.id, server.name]).apply(([serverId, serverName]) => {
|
|
316
|
-
return new hcloud.ServerNetwork(
|
|
317
|
-
serverName,
|
|
318
|
-
{ serverId: parseInt(serverId), subnetId: subnet.id },
|
|
319
|
-
hcloudOpts
|
|
320
|
-
);
|
|
321
|
-
});
|
|
322
|
-
|
|
323
|
-
const node = pulumi
|
|
324
|
-
.all([hostname, modules, packages, files, systemdUnits, sshAuthorizedKeys, server.ipv6Address])
|
|
325
|
-
.apply(([hostname, modules, packages, files, systemdUnits, sshAuthorizedKeys, ipv6Address]) => {
|
|
326
|
-
const fcosHost = new fcos.Host(
|
|
327
|
-
hostname,
|
|
328
|
-
{
|
|
329
|
-
hostname,
|
|
330
|
-
files: pulumi.all(files || []).apply((files) => {
|
|
331
|
-
files.push({
|
|
332
|
-
path: `/etc/NetworkManager/system-connections/${Cluster.primaryInterface}.nmconnection`,
|
|
333
|
-
contents: [
|
|
334
|
-
"[connection]",
|
|
335
|
-
"type=ethernet",
|
|
336
|
-
`id=${Cluster.primaryInterface}`,
|
|
337
|
-
`interface-name=${Cluster.primaryInterface}`,
|
|
338
|
-
"[ipv4]",
|
|
339
|
-
"method=auto",
|
|
340
|
-
"ignore-auto-dns=true",
|
|
341
|
-
"[ipv6]",
|
|
342
|
-
"method=manual",
|
|
343
|
-
`address1=${ipv6Address}`,
|
|
344
|
-
"gateway=fe80::1",
|
|
345
|
-
"dns=2a01:4ff:ff00::add:1;2a01:4ff:ff00::add:2",
|
|
346
|
-
].join("\n"),
|
|
347
|
-
mode: 0o600,
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
for (const iface of Cluster.privateInterfaces) {
|
|
351
|
-
files.push({
|
|
352
|
-
path: `/etc/NetworkManager/system-connections/${iface}.nmconnection`,
|
|
353
|
-
contents: [
|
|
354
|
-
"[connection]",
|
|
355
|
-
"type=ethernet",
|
|
356
|
-
`id=${iface}`,
|
|
357
|
-
`interface-name=${iface}`,
|
|
358
|
-
"[ipv4]",
|
|
359
|
-
"method=auto",
|
|
360
|
-
"never-default=true",
|
|
361
|
-
"[ipv6]",
|
|
362
|
-
"method=auto",
|
|
363
|
-
"never-default=true",
|
|
364
|
-
].join("\n"),
|
|
365
|
-
mode: 0o600,
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
return files;
|
|
370
|
-
}),
|
|
371
|
-
systemdUnits,
|
|
372
|
-
packages,
|
|
373
|
-
modules,
|
|
374
|
-
users: [{ name: "core", sshAuthorizedKeys }],
|
|
375
|
-
sshUsers: [{ name: Cluster.sshUsername, groups: ["sudo"] }],
|
|
376
|
-
},
|
|
377
|
-
emptyOpts
|
|
378
|
-
);
|
|
379
|
-
|
|
380
|
-
const roles: string[] = nodeGroup.roles || [];
|
|
381
|
-
|
|
382
|
-
let isController = false;
|
|
383
|
-
for (const role of roles) {
|
|
384
|
-
if (role === "controller") {
|
|
385
|
-
isController = true;
|
|
386
|
-
break;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
if (isController) {
|
|
391
|
-
roles.push("etcd");
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
return {
|
|
395
|
-
id: server.id,
|
|
396
|
-
hostname,
|
|
397
|
-
roles,
|
|
398
|
-
ipv4Address: server.ipv4Address,
|
|
399
|
-
privateIpv4Address: serverNetwork.ip,
|
|
400
|
-
ipv6Address: server.ipv6Address,
|
|
401
|
-
labels: nodeGroup.labels ?? {},
|
|
402
|
-
taints: nodeGroup.taints ?? [],
|
|
403
|
-
username: Cluster.sshUsername,
|
|
404
|
-
privateKey: fcosHost.sshPrivateKeys.apply((sshPrivateKeys) => {
|
|
405
|
-
for (const username in sshPrivateKeys) {
|
|
406
|
-
if (username === Cluster.sshUsername) {
|
|
407
|
-
// eslint-disable-next-line security/detect-object-injection
|
|
408
|
-
return sshPrivateKeys[username].privateKeyOpenssh;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
throw new Error(`No private key found for user ${Cluster.sshUsername}`);
|
|
413
|
-
}),
|
|
414
|
-
fcosHost,
|
|
415
|
-
};
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
results.push({
|
|
419
|
-
node,
|
|
420
|
-
depends: this.configureFcosNode(sshPrivateKey, server, node),
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
return results;
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
private configureFcosNode(
|
|
430
|
-
sshPrivateKey: pulumi.Input<string>,
|
|
431
|
-
server: pulumi.Output<hcloud.Server>,
|
|
432
|
-
node: pulumi.Input<Node>
|
|
433
|
-
): pulumi.Output<pulumi.Resource> {
|
|
434
|
-
const emptyOpts = this.opts();
|
|
435
|
-
|
|
436
|
-
return pulumi.all([server.name, server.ipv4Address, node]).apply(([nodeName, ipv4Address, node]) => {
|
|
437
|
-
const connection: ssh.ConnectionArgs = {
|
|
438
|
-
host: ipv4Address,
|
|
439
|
-
username: Cluster.rescueSshUsername,
|
|
440
|
-
privateKey: sshPrivateKey,
|
|
441
|
-
initialDelay: 10000,
|
|
442
|
-
retries: 20,
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
const fcosInstallScriptPathRemote = "/tmp/fcos-install.sh";
|
|
446
|
-
const fcosConfigPathRemote = "/tmp/fcos-config.ign";
|
|
447
|
-
|
|
448
|
-
const fcosInstallScript = new ssh.File(
|
|
449
|
-
`${nodeName}-fcos-install-script`,
|
|
450
|
-
{
|
|
451
|
-
connection,
|
|
452
|
-
changeToken: "",
|
|
453
|
-
src: { file: path.join(__dirname, "assets", "fcos-install.sh") },
|
|
454
|
-
dst: fcosInstallScriptPathRemote,
|
|
455
|
-
},
|
|
456
|
-
{ ...emptyOpts, dependsOn: server, ignoreChanges: ["connection", "src"] }
|
|
457
|
-
);
|
|
458
|
-
|
|
459
|
-
const fcosConfigFile = new ssh.File(
|
|
460
|
-
`${nodeName}-fcos-config`,
|
|
461
|
-
{
|
|
462
|
-
connection,
|
|
463
|
-
changeToken: "",
|
|
464
|
-
src: { data: node.fcosHost.ignitionConfig },
|
|
465
|
-
dst: fcosConfigPathRemote,
|
|
466
|
-
},
|
|
467
|
-
{ ...emptyOpts, dependsOn: server, ignoreChanges: ["connection", "src"] }
|
|
468
|
-
);
|
|
469
|
-
|
|
470
|
-
const fcosInstall = new ssh.Exec(
|
|
471
|
-
`${nodeName}-fcos-install`,
|
|
472
|
-
{
|
|
473
|
-
connection,
|
|
474
|
-
changeToken: "",
|
|
475
|
-
command: [
|
|
476
|
-
`chmod +x ${fcosInstallScriptPathRemote}`,
|
|
477
|
-
`${fcosInstallScriptPathRemote} /dev/sda ${fcosConfigPathRemote}`,
|
|
478
|
-
].join(" && "),
|
|
479
|
-
},
|
|
480
|
-
{ ...emptyOpts, dependsOn: [fcosInstallScript, fcosConfigFile], ignoreChanges: ["connection"] }
|
|
481
|
-
);
|
|
482
|
-
|
|
483
|
-
return new ssh.Exec(
|
|
484
|
-
`${nodeName}-fcos-up`,
|
|
485
|
-
{
|
|
486
|
-
connection: {
|
|
487
|
-
host: ipv4Address,
|
|
488
|
-
username: Cluster.sshUsername,
|
|
489
|
-
privateKey: node.privateKey,
|
|
490
|
-
initialDelay: 30000,
|
|
491
|
-
retries: 20,
|
|
492
|
-
},
|
|
493
|
-
changeToken: "",
|
|
494
|
-
command: "ls /",
|
|
495
|
-
},
|
|
496
|
-
{ ...emptyOpts, dependsOn: [fcosInstall], ignoreChanges: ["connection"] }
|
|
497
|
-
);
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
}
|