@ydkn/pulumi-components 0.4.2 → 0.4.4
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/.eslintrc.json +14 -0
- package/.gitlab-ci.yml +73 -0
- package/.prettierrc +3 -0
- package/{index.d.ts → index.ts} +46 -2
- package/lib/avahi/deployment.ts +171 -0
- package/lib/avahi/{index.d.ts → index.ts} +1 -1
- package/lib/avahi/service.ts +118 -0
- package/lib/aws/accessKey.ts +40 -0
- package/lib/aws/bucket.ts +71 -0
- package/lib/aws/{index.d.ts → index.ts} +1 -1
- package/lib/blocky/assets/dashboard.json +1777 -0
- package/lib/blocky/deployment.ts +134 -0
- package/lib/blocky/{index.d.ts → index.ts} +1 -1
- package/lib/certManager/assets/dashboard.json +1188 -0
- package/lib/certManager/certificate.ts +168 -0
- package/lib/certManager/index.ts +39 -0
- package/lib/certManager/issuer.ts +141 -0
- package/lib/certManager/operator.ts +244 -0
- package/lib/common/componentResource.ts +78 -0
- package/lib/common/{index.d.ts → index.ts} +2 -1
- package/lib/common/types.ts +3 -0
- package/lib/cups/avahiService.ts +66 -0
- package/lib/cups/deployment.ts +199 -0
- package/lib/cups/index.ts +4 -0
- package/lib/devcontainer/assets/init.sh +44 -0
- package/lib/devcontainer/deployment.ts +253 -0
- package/lib/devcontainer/index.ts +3 -0
- package/lib/dhcpd/deployment.ts +164 -0
- package/lib/dhcpd/index.ts +3 -0
- package/lib/externalDns/dnsEndpoint.ts +70 -0
- package/lib/externalDns/index.ts +18 -0
- package/lib/externalDns/operator.ts +165 -0
- package/lib/fcos/assets/rpm-opstree-install.sh +0 -0
- package/lib/fcos/config.ts +237 -0
- package/lib/fcos/host.ts +91 -0
- package/lib/fcos/index.ts +27 -0
- package/lib/freeradius/deployment.ts +244 -0
- package/lib/freeradius/{index.d.ts → index.ts} +1 -1
- package/lib/gitlab/{index.d.ts → index.ts} +13 -2
- package/lib/gitlab/project.ts +148 -0
- package/lib/gitlab/renovate.ts +98 -0
- package/lib/gitlab/runners/cleanup.ts +104 -0
- package/lib/gitlab/runners/{index.d.ts → index.ts} +1 -1
- package/lib/gitlab/runners/runner.ts +122 -0
- package/lib/gitlab/runners/runners.ts +49 -0
- package/lib/grafana/agent.ts +449 -0
- package/lib/grafana/dashboard.ts +38 -0
- package/lib/grafana/datasource.ts +59 -0
- package/lib/grafana/deployment.ts +78 -0
- package/lib/grafana/index.ts +17 -0
- package/lib/hcloud/assets/fcos-install.sh +0 -0
- package/lib/hcloud/cluster.ts +500 -0
- package/lib/hcloud/{index.d.ts → index.ts} +1 -1
- package/lib/hcloud/kubernetes.ts +237 -0
- package/lib/hcloud/wireguard.ts +155 -0
- package/lib/k0s/cluster.ts +264 -0
- package/lib/k0s/{index.d.ts → index.ts} +1 -1
- package/lib/kubeStateMetrics/deployment.ts +60 -0
- package/lib/kubeStateMetrics/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/helm/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/helm/v3/chart.ts +79 -0
- package/lib/kubernetes/helm/v3/helpers.ts +32 -0
- package/lib/kubernetes/helm/v3/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/helm/v3/release.ts +17 -0
- package/lib/kubernetes/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/transformations/filter.ts +43 -0
- package/lib/kubernetes/transformations/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/transformations/metadataNamespace.ts +25 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.ts +78 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.ts +60 -0
- package/lib/kubernetes/v1/{index.d.ts → index.ts} +12 -2
- package/lib/kubernetes/v1/nfsVolume.ts +145 -0
- package/lib/kubernetes/v1/pullSecret.ts +37 -0
- package/lib/kubernetes/v1/service.ts +58 -0
- package/lib/localPathProvisioner/deployment.ts +88 -0
- package/lib/localPathProvisioner/index.ts +3 -0
- package/lib/loki/deployment.ts +122 -0
- package/lib/loki/index.ts +3 -0
- package/lib/metallb/controller.ts +96 -0
- package/lib/metallb/{index.d.ts → index.ts} +11 -2
- package/lib/metallb/ipAddressPool.ts +33 -0
- package/lib/metallb/l2Advertisement.ts +34 -0
- package/lib/node/{index.d.ts → index.ts} +1 -1
- package/lib/node/kubernetes.ts +129 -0
- package/lib/node/node.ts +17 -0
- package/lib/openldap/deployment.ts +226 -0
- package/lib/openldap/{index.d.ts → index.ts} +1 -1
- package/lib/plex/{index.d.ts → index.ts} +1 -1
- package/lib/plex/mediaServer.ts +265 -0
- package/lib/plex/playlists.ts +123 -0
- package/lib/postgresql/cluster.ts +61 -0
- package/lib/postgresql/index.ts +4 -0
- package/lib/postgresql/operator.ts +70 -0
- package/lib/prometheus/index.ts +23 -0
- package/lib/prometheus/monitor.ts +13 -0
- package/lib/prometheus/operator.ts +264 -0
- package/lib/prometheus/podMonitor.ts +32 -0
- package/lib/prometheus/serviceMonitor.ts +43 -0
- package/lib/raspberrypi/cluster.ts +279 -0
- package/lib/raspberrypi/{index.d.ts → index.ts} +1 -1
- package/lib/rethinkdb/deployment.ts +424 -0
- package/lib/rethinkdb/{index.d.ts → index.ts} +1 -1
- package/lib/rook/assets/dashboard.json +4871 -0
- package/lib/rook/blockPool.ts +80 -0
- package/lib/rook/cluster.ts +168 -0
- package/lib/rook/filesystem.ts +140 -0
- package/lib/rook/{index.d.ts → index.ts} +15 -2
- package/lib/rook/operator.ts +175 -0
- package/lib/samba/avahiService.ts +44 -0
- package/lib/samba/deployment.ts +305 -0
- package/lib/samba/index.ts +5 -0
- package/lib/samba/volumes.ts +70 -0
- package/lib/ssh/exec.ts +162 -0
- package/lib/ssh/file.ts +165 -0
- package/lib/ssh/{index.d.ts → index.ts} +1 -1
- package/lib/ssh/types.ts +20 -0
- package/lib/torproxy/deployment.ts +165 -0
- package/lib/torproxy/{index.d.ts → index.ts} +1 -1
- package/lib/traefik/assets/dashboard.json +759 -0
- package/lib/traefik/controller.ts +207 -0
- package/lib/traefik/{index.d.ts → index.ts} +1 -1
- package/lib/traefik/middleware.ts +37 -0
- package/lib/traefik/secureIngress.ts +81 -0
- package/lib/ubuntu/assets/init.sh +0 -0
- package/lib/ubuntu/deployment.ts +275 -0
- package/lib/ubuntu/{index.d.ts → index.ts} +1 -1
- package/lib/unifi/controller.ts +234 -0
- package/lib/unifi/{index.d.ts → index.ts} +1 -1
- package/lib/velero/{index.d.ts → index.ts} +1 -1
- package/lib/velero/operator.ts +182 -0
- package/lib/wireguard/deployment.ts +168 -0
- package/lib/wireguard/{index.d.ts → index.ts} +1 -1
- package/package.json +63 -62
- package/renovate.json +4 -0
- package/tsconfig.json +21 -0
- package/index.d.ts.map +0 -1
- package/index.js +0 -64
- package/index.js.map +0 -1
- package/lib/avahi/deployment.d.ts +0 -36
- package/lib/avahi/deployment.d.ts.map +0 -1
- package/lib/avahi/deployment.js +0 -164
- package/lib/avahi/deployment.js.map +0 -1
- package/lib/avahi/index.d.ts.map +0 -1
- package/lib/avahi/index.js +0 -8
- package/lib/avahi/index.js.map +0 -1
- package/lib/avahi/service.d.ts +0 -51
- package/lib/avahi/service.d.ts.map +0 -1
- package/lib/avahi/service.js +0 -57
- package/lib/avahi/service.js.map +0 -1
- package/lib/aws/accessKey.d.ts +0 -22
- package/lib/aws/accessKey.d.ts.map +0 -1
- package/lib/aws/accessKey.js +0 -27
- package/lib/aws/accessKey.js.map +0 -1
- package/lib/aws/bucket.d.ts +0 -28
- package/lib/aws/bucket.d.ts.map +0 -1
- package/lib/aws/bucket.js +0 -49
- package/lib/aws/bucket.js.map +0 -1
- package/lib/aws/index.d.ts.map +0 -1
- package/lib/aws/index.js +0 -8
- package/lib/aws/index.js.map +0 -1
- package/lib/blocky/deployment.d.ts +0 -39
- package/lib/blocky/deployment.d.ts.map +0 -1
- package/lib/blocky/deployment.js +0 -97
- package/lib/blocky/deployment.js.map +0 -1
- package/lib/blocky/index.d.ts.map +0 -1
- package/lib/blocky/index.js +0 -6
- package/lib/blocky/index.js.map +0 -1
- package/lib/certManager/certificate.d.ts +0 -126
- package/lib/certManager/certificate.d.ts.map +0 -1
- package/lib/certManager/certificate.js +0 -42
- package/lib/certManager/certificate.js.map +0 -1
- package/lib/certManager/index.d.ts +0 -5
- package/lib/certManager/index.d.ts.map +0 -1
- package/lib/certManager/index.js +0 -11
- package/lib/certManager/index.js.map +0 -1
- package/lib/certManager/issuer.d.ts +0 -109
- package/lib/certManager/issuer.d.ts.map +0 -1
- package/lib/certManager/issuer.js +0 -39
- package/lib/certManager/issuer.js.map +0 -1
- package/lib/certManager/operator.d.ts +0 -43
- package/lib/certManager/operator.d.ts.map +0 -1
- package/lib/certManager/operator.js +0 -177
- package/lib/certManager/operator.js.map +0 -1
- package/lib/common/componentResource.d.ts +0 -20
- package/lib/common/componentResource.d.ts.map +0 -1
- package/lib/common/componentResource.js +0 -62
- package/lib/common/componentResource.js.map +0 -1
- package/lib/common/index.d.ts.map +0 -1
- package/lib/common/index.js +0 -6
- package/lib/common/index.js.map +0 -1
- package/lib/common/types.d.ts +0 -3
- package/lib/common/types.d.ts.map +0 -1
- package/lib/common/types.js +0 -3
- package/lib/common/types.js.map +0 -1
- package/lib/externalDns/dnsEndpoint.d.ts +0 -66
- package/lib/externalDns/dnsEndpoint.d.ts.map +0 -1
- package/lib/externalDns/dnsEndpoint.js +0 -17
- package/lib/externalDns/dnsEndpoint.js.map +0 -1
- package/lib/externalDns/index.d.ts +0 -4
- package/lib/externalDns/index.d.ts.map +0 -1
- package/lib/externalDns/index.js +0 -8
- package/lib/externalDns/index.js.map +0 -1
- package/lib/externalDns/operator.d.ts +0 -45
- package/lib/externalDns/operator.d.ts.map +0 -1
- package/lib/externalDns/operator.js +0 -112
- package/lib/externalDns/operator.js.map +0 -1
- package/lib/fcos/config.d.ts +0 -156
- package/lib/fcos/config.d.ts.map +0 -1
- package/lib/fcos/config.js +0 -168
- package/lib/fcos/config.js.map +0 -1
- package/lib/fcos/host.d.ts +0 -34
- package/lib/fcos/host.d.ts.map +0 -1
- package/lib/fcos/host.js +0 -57
- package/lib/fcos/host.js.map +0 -1
- package/lib/fcos/index.d.ts +0 -4
- package/lib/fcos/index.d.ts.map +0 -1
- package/lib/fcos/index.js +0 -8
- package/lib/fcos/index.js.map +0 -1
- package/lib/freeradius/deployment.d.ts +0 -74
- package/lib/freeradius/deployment.d.ts.map +0 -1
- package/lib/freeradius/deployment.js +0 -216
- package/lib/freeradius/deployment.js.map +0 -1
- package/lib/freeradius/index.d.ts.map +0 -1
- package/lib/freeradius/index.js +0 -6
- package/lib/freeradius/index.js.map +0 -1
- package/lib/gitlab/index.d.ts.map +0 -1
- package/lib/gitlab/index.js +0 -12
- package/lib/gitlab/index.js.map +0 -1
- package/lib/gitlab/project.d.ts +0 -18
- package/lib/gitlab/project.d.ts.map +0 -1
- package/lib/gitlab/project.js +0 -116
- package/lib/gitlab/project.js.map +0 -1
- package/lib/gitlab/renovate.d.ts +0 -23
- package/lib/gitlab/renovate.d.ts.map +0 -1
- package/lib/gitlab/renovate.js +0 -77
- package/lib/gitlab/renovate.js.map +0 -1
- package/lib/gitlab/runners/cleanup.d.ts +0 -20
- package/lib/gitlab/runners/cleanup.d.ts.map +0 -1
- package/lib/gitlab/runners/cleanup.js +0 -86
- package/lib/gitlab/runners/cleanup.js.map +0 -1
- package/lib/gitlab/runners/index.d.ts.map +0 -1
- package/lib/gitlab/runners/index.js +0 -10
- package/lib/gitlab/runners/index.js.map +0 -1
- package/lib/gitlab/runners/runner.d.ts +0 -30
- package/lib/gitlab/runners/runner.d.ts.map +0 -1
- package/lib/gitlab/runners/runner.js +0 -89
- package/lib/gitlab/runners/runner.js.map +0 -1
- package/lib/gitlab/runners/runners.d.ts +0 -21
- package/lib/gitlab/runners/runners.d.ts.map +0 -1
- package/lib/gitlab/runners/runners.js +0 -36
- package/lib/gitlab/runners/runners.js.map +0 -1
- package/lib/grafana/agent.d.ts +0 -43
- package/lib/grafana/agent.d.ts.map +0 -1
- package/lib/grafana/agent.js +0 -417
- package/lib/grafana/agent.js.map +0 -1
- package/lib/grafana/index.d.ts +0 -3
- package/lib/grafana/index.d.ts.map +0 -1
- package/lib/grafana/index.js +0 -6
- package/lib/grafana/index.js.map +0 -1
- package/lib/hcloud/cluster.d.ts +0 -96
- package/lib/hcloud/cluster.d.ts.map +0 -1
- package/lib/hcloud/cluster.js +0 -323
- package/lib/hcloud/cluster.js.map +0 -1
- package/lib/hcloud/index.d.ts.map +0 -1
- package/lib/hcloud/index.js +0 -10
- package/lib/hcloud/index.js.map +0 -1
- package/lib/hcloud/kubernetes.d.ts +0 -39
- package/lib/hcloud/kubernetes.d.ts.map +0 -1
- package/lib/hcloud/kubernetes.js +0 -188
- package/lib/hcloud/kubernetes.js.map +0 -1
- package/lib/hcloud/wireguard.d.ts +0 -33
- package/lib/hcloud/wireguard.d.ts.map +0 -1
- package/lib/hcloud/wireguard.js +0 -103
- package/lib/hcloud/wireguard.js.map +0 -1
- package/lib/k0s/cluster.d.ts +0 -51
- package/lib/k0s/cluster.d.ts.map +0 -1
- package/lib/k0s/cluster.js +0 -183
- package/lib/k0s/cluster.js.map +0 -1
- package/lib/k0s/index.d.ts.map +0 -1
- package/lib/k0s/index.js +0 -6
- package/lib/k0s/index.js.map +0 -1
- package/lib/kubeStateMetrics/deployment.d.ts +0 -20
- package/lib/kubeStateMetrics/deployment.d.ts.map +0 -1
- package/lib/kubeStateMetrics/deployment.js +0 -47
- package/lib/kubeStateMetrics/deployment.js.map +0 -1
- package/lib/kubeStateMetrics/index.d.ts.map +0 -1
- package/lib/kubeStateMetrics/index.js +0 -6
- package/lib/kubeStateMetrics/index.js.map +0 -1
- package/lib/kubernetes/helm/index.d.ts.map +0 -1
- package/lib/kubernetes/helm/index.js +0 -6
- package/lib/kubernetes/helm/index.js.map +0 -1
- package/lib/kubernetes/helm/v3/chart.d.ts +0 -37
- package/lib/kubernetes/helm/v3/chart.d.ts.map +0 -1
- package/lib/kubernetes/helm/v3/chart.js +0 -46
- package/lib/kubernetes/helm/v3/chart.js.map +0 -1
- package/lib/kubernetes/helm/v3/helpers.d.ts +0 -3
- package/lib/kubernetes/helm/v3/helpers.d.ts.map +0 -1
- package/lib/kubernetes/helm/v3/helpers.js +0 -29
- package/lib/kubernetes/helm/v3/helpers.js.map +0 -1
- package/lib/kubernetes/helm/v3/index.d.ts.map +0 -1
- package/lib/kubernetes/helm/v3/index.js +0 -10
- package/lib/kubernetes/helm/v3/index.js.map +0 -1
- package/lib/kubernetes/helm/v3/release.d.ts +0 -15
- package/lib/kubernetes/helm/v3/release.d.ts.map +0 -1
- package/lib/kubernetes/helm/v3/release.js +0 -18
- package/lib/kubernetes/helm/v3/release.js.map +0 -1
- package/lib/kubernetes/index.d.ts.map +0 -1
- package/lib/kubernetes/index.js +0 -10
- package/lib/kubernetes/index.js.map +0 -1
- package/lib/kubernetes/transformations/filter.d.ts +0 -13
- package/lib/kubernetes/transformations/filter.d.ts.map +0 -1
- package/lib/kubernetes/transformations/filter.js +0 -32
- package/lib/kubernetes/transformations/filter.js.map +0 -1
- package/lib/kubernetes/transformations/index.d.ts.map +0 -1
- package/lib/kubernetes/transformations/index.js +0 -12
- package/lib/kubernetes/transformations/index.js.map +0 -1
- package/lib/kubernetes/transformations/metadataNamespace.d.ts +0 -3
- package/lib/kubernetes/transformations/metadataNamespace.d.ts.map +0 -1
- package/lib/kubernetes/transformations/metadataNamespace.js +0 -27
- package/lib/kubernetes/transformations/metadataNamespace.js.map +0 -1
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts +0 -3
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts.map +0 -1
- package/lib/kubernetes/transformations/removeCrdDescriptions.js +0 -61
- package/lib/kubernetes/transformations/removeCrdDescriptions.js.map +0 -1
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts +0 -3
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts.map +0 -1
- package/lib/kubernetes/transformations/v1beta1Deprecations.js +0 -55
- package/lib/kubernetes/transformations/v1beta1Deprecations.js.map +0 -1
- package/lib/kubernetes/v1/index.d.ts.map +0 -1
- package/lib/kubernetes/v1/index.js +0 -10
- package/lib/kubernetes/v1/index.js.map +0 -1
- package/lib/kubernetes/v1/nfsVolume.d.ts +0 -92
- package/lib/kubernetes/v1/nfsVolume.d.ts.map +0 -1
- package/lib/kubernetes/v1/nfsVolume.js +0 -97
- package/lib/kubernetes/v1/nfsVolume.js.map +0 -1
- package/lib/kubernetes/v1/pullSecret.d.ts +0 -31
- package/lib/kubernetes/v1/pullSecret.d.ts.map +0 -1
- package/lib/kubernetes/v1/pullSecret.js +0 -27
- package/lib/kubernetes/v1/pullSecret.js.map +0 -1
- package/lib/kubernetes/v1/service.d.ts +0 -31
- package/lib/kubernetes/v1/service.d.ts.map +0 -1
- package/lib/kubernetes/v1/service.js +0 -43
- package/lib/kubernetes/v1/service.js.map +0 -1
- package/lib/metallb/controller.d.ts +0 -17
- package/lib/metallb/controller.d.ts.map +0 -1
- package/lib/metallb/controller.js +0 -87
- package/lib/metallb/controller.js.map +0 -1
- package/lib/metallb/index.d.ts.map +0 -1
- package/lib/metallb/index.js +0 -10
- package/lib/metallb/index.js.map +0 -1
- package/lib/metallb/ipAddressPool.d.ts +0 -20
- package/lib/metallb/ipAddressPool.d.ts.map +0 -1
- package/lib/metallb/ipAddressPool.js +0 -22
- package/lib/metallb/ipAddressPool.js.map +0 -1
- package/lib/metallb/l2Advertisement.d.ts +0 -21
- package/lib/metallb/l2Advertisement.d.ts.map +0 -1
- package/lib/metallb/l2Advertisement.js +0 -22
- package/lib/metallb/l2Advertisement.js.map +0 -1
- package/lib/node/index.d.ts.map +0 -1
- package/lib/node/index.js +0 -6
- package/lib/node/index.js.map +0 -1
- package/lib/node/kubernetes.d.ts +0 -38
- package/lib/node/kubernetes.d.ts.map +0 -1
- package/lib/node/kubernetes.js +0 -89
- package/lib/node/kubernetes.js.map +0 -1
- package/lib/node/node.d.ts +0 -21
- package/lib/node/node.d.ts.map +0 -1
- package/lib/node/node.js +0 -3
- package/lib/node/node.js.map +0 -1
- package/lib/openldap/deployment.d.ts +0 -58
- package/lib/openldap/deployment.d.ts.map +0 -1
- package/lib/openldap/deployment.js +0 -217
- package/lib/openldap/deployment.js.map +0 -1
- package/lib/openldap/index.d.ts.map +0 -1
- package/lib/openldap/index.js +0 -6
- package/lib/openldap/index.js.map +0 -1
- package/lib/plex/index.d.ts.map +0 -1
- package/lib/plex/index.js +0 -8
- package/lib/plex/index.js.map +0 -1
- package/lib/plex/mediaServer.d.ts +0 -46
- package/lib/plex/mediaServer.d.ts.map +0 -1
- package/lib/plex/mediaServer.js +0 -234
- package/lib/plex/mediaServer.js.map +0 -1
- package/lib/plex/playlists.d.ts +0 -62
- package/lib/plex/playlists.d.ts.map +0 -1
- package/lib/plex/playlists.js +0 -129
- package/lib/plex/playlists.js.map +0 -1
- package/lib/prometheus/index.d.ts +0 -4
- package/lib/prometheus/index.d.ts.map +0 -1
- package/lib/prometheus/index.js +0 -8
- package/lib/prometheus/index.js.map +0 -1
- package/lib/prometheus/podMonitor.d.ts +0 -42
- package/lib/prometheus/podMonitor.d.ts.map +0 -1
- package/lib/prometheus/podMonitor.js +0 -17
- package/lib/prometheus/podMonitor.js.map +0 -1
- package/lib/prometheus/serviceMonitor.d.ts +0 -46
- package/lib/prometheus/serviceMonitor.d.ts.map +0 -1
- package/lib/prometheus/serviceMonitor.js +0 -17
- package/lib/prometheus/serviceMonitor.js.map +0 -1
- package/lib/raspberrypi/cluster.d.ts +0 -41
- package/lib/raspberrypi/cluster.d.ts.map +0 -1
- package/lib/raspberrypi/cluster.js +0 -194
- package/lib/raspberrypi/cluster.js.map +0 -1
- package/lib/raspberrypi/index.d.ts.map +0 -1
- package/lib/raspberrypi/index.js +0 -6
- package/lib/raspberrypi/index.js.map +0 -1
- package/lib/rethinkdb/deployment.d.ts +0 -61
- package/lib/rethinkdb/deployment.d.ts.map +0 -1
- package/lib/rethinkdb/deployment.js +0 -350
- package/lib/rethinkdb/deployment.js.map +0 -1
- package/lib/rethinkdb/index.d.ts.map +0 -1
- package/lib/rethinkdb/index.js +0 -6
- package/lib/rethinkdb/index.js.map +0 -1
- package/lib/rook/blockPool.d.ts +0 -28
- package/lib/rook/blockPool.d.ts.map +0 -1
- package/lib/rook/blockPool.js +0 -56
- package/lib/rook/blockPool.js.map +0 -1
- package/lib/rook/cluster.d.ts +0 -54
- package/lib/rook/cluster.d.ts.map +0 -1
- package/lib/rook/cluster.js +0 -100
- package/lib/rook/cluster.js.map +0 -1
- package/lib/rook/filesystem.d.ts +0 -29
- package/lib/rook/filesystem.d.ts.map +0 -1
- package/lib/rook/filesystem.js +0 -110
- package/lib/rook/filesystem.js.map +0 -1
- package/lib/rook/index.d.ts.map +0 -1
- package/lib/rook/index.js +0 -12
- package/lib/rook/index.js.map +0 -1
- package/lib/rook/operator.d.ts +0 -19
- package/lib/rook/operator.d.ts.map +0 -1
- package/lib/rook/operator.js +0 -162
- package/lib/rook/operator.js.map +0 -1
- package/lib/samba/deployment.d.ts +0 -79
- package/lib/samba/deployment.d.ts.map +0 -1
- package/lib/samba/deployment.js +0 -238
- package/lib/samba/deployment.js.map +0 -1
- package/lib/samba/index.d.ts +0 -3
- package/lib/samba/index.d.ts.map +0 -1
- package/lib/samba/index.js +0 -6
- package/lib/samba/index.js.map +0 -1
- package/lib/ssh/exec.d.ts +0 -33
- package/lib/ssh/exec.d.ts.map +0 -1
- package/lib/ssh/exec.js +0 -116
- package/lib/ssh/exec.js.map +0 -1
- package/lib/ssh/file.d.ts +0 -43
- package/lib/ssh/file.d.ts.map +0 -1
- package/lib/ssh/file.js +0 -110
- package/lib/ssh/file.js.map +0 -1
- package/lib/ssh/index.d.ts.map +0 -1
- package/lib/ssh/index.js +0 -8
- package/lib/ssh/index.js.map +0 -1
- package/lib/ssh/types.d.ts +0 -19
- package/lib/ssh/types.d.ts.map +0 -1
- package/lib/ssh/types.js +0 -3
- package/lib/ssh/types.js.map +0 -1
- package/lib/torproxy/deployment.d.ts +0 -31
- package/lib/torproxy/deployment.d.ts.map +0 -1
- package/lib/torproxy/deployment.js +0 -131
- package/lib/torproxy/deployment.js.map +0 -1
- package/lib/torproxy/index.d.ts.map +0 -1
- package/lib/torproxy/index.js +0 -6
- package/lib/torproxy/index.js.map +0 -1
- package/lib/traefik/controller.d.ts +0 -50
- package/lib/traefik/controller.d.ts.map +0 -1
- package/lib/traefik/controller.js +0 -166
- package/lib/traefik/controller.js.map +0 -1
- package/lib/traefik/index.d.ts.map +0 -1
- package/lib/traefik/index.js +0 -10
- package/lib/traefik/index.js.map +0 -1
- package/lib/traefik/middleware.d.ts +0 -27
- package/lib/traefik/middleware.d.ts.map +0 -1
- package/lib/traefik/middleware.js +0 -22
- package/lib/traefik/middleware.js.map +0 -1
- package/lib/traefik/secureIngress.d.ts +0 -32
- package/lib/traefik/secureIngress.d.ts.map +0 -1
- package/lib/traefik/secureIngress.js +0 -58
- package/lib/traefik/secureIngress.js.map +0 -1
- package/lib/ubuntu/deployment.d.ts +0 -67
- package/lib/ubuntu/deployment.d.ts.map +0 -1
- package/lib/ubuntu/deployment.js +0 -230
- package/lib/ubuntu/deployment.js.map +0 -1
- package/lib/ubuntu/index.d.ts.map +0 -1
- package/lib/ubuntu/index.js +0 -6
- package/lib/ubuntu/index.js.map +0 -1
- package/lib/unifi/controller.d.ts +0 -52
- package/lib/unifi/controller.d.ts.map +0 -1
- package/lib/unifi/controller.js +0 -232
- package/lib/unifi/controller.js.map +0 -1
- package/lib/unifi/index.d.ts.map +0 -1
- package/lib/unifi/index.js +0 -6
- package/lib/unifi/index.js.map +0 -1
- package/lib/velero/index.d.ts.map +0 -1
- package/lib/velero/index.js +0 -6
- package/lib/velero/index.js.map +0 -1
- package/lib/velero/operator.d.ts +0 -31
- package/lib/velero/operator.d.ts.map +0 -1
- package/lib/velero/operator.js +0 -148
- package/lib/velero/operator.js.map +0 -1
- package/lib/wireguard/deployment.d.ts +0 -82
- package/lib/wireguard/deployment.d.ts.map +0 -1
- package/lib/wireguard/deployment.js +0 -161
- package/lib/wireguard/deployment.js.map +0 -1
- package/lib/wireguard/index.d.ts.map +0 -1
- package/lib/wireguard/index.js +0 -6
- package/lib/wireguard/index.js.map +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
|
|
4
|
+
export interface ServiceArgs {
|
|
5
|
+
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
6
|
+
spec: pulumi.Input<k8s.types.input.core.v1.ServiceSpec>;
|
|
7
|
+
hostnames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
8
|
+
target?: pulumi.Input<string>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class Service extends k8s.core.v1.Service {
|
|
12
|
+
public readonly hostnames?: pulumi.Output<pulumi.Output<string>[]>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Create a new service resource.
|
|
16
|
+
* @param name The name of the service resource.
|
|
17
|
+
* @param args A bag of arguments to control the service creation.
|
|
18
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
19
|
+
*/
|
|
20
|
+
constructor(name: string, args: ServiceArgs, opts?: pulumi.CustomResourceOptions) {
|
|
21
|
+
const serviceArgs = pulumi
|
|
22
|
+
.all([args.metadata, args.spec, args.hostnames, args.target])
|
|
23
|
+
.apply(([metadataWrapped, specWrapped, hostnames, target]) =>
|
|
24
|
+
pulumi.all(hostnames ?? []).apply((hostnames) => {
|
|
25
|
+
const metadata = metadataWrapped as k8s.types.input.meta.v1.ObjectMeta;
|
|
26
|
+
const spec = specWrapped as k8s.types.input.core.v1.ServiceSpec;
|
|
27
|
+
|
|
28
|
+
if (metadata.annotations === undefined) {
|
|
29
|
+
metadata.annotations = {};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const annotations: { [key: string]: pulumi.Input<string> } = {};
|
|
33
|
+
|
|
34
|
+
if (hostnames !== undefined && hostnames.length > 0) {
|
|
35
|
+
annotations["external-dns.alpha.kubernetes.io/hostname"] = hostnames.join(",");
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (target !== undefined) {
|
|
39
|
+
annotations["external-dns.alpha.kubernetes.io/target"] = target;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
metadata.annotations = { ...annotations, ...metadata.annotations };
|
|
43
|
+
|
|
44
|
+
spec.ipFamilyPolicy = "PreferDualStack";
|
|
45
|
+
|
|
46
|
+
return { metadata, spec };
|
|
47
|
+
})
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
super(name, serviceArgs, opts);
|
|
51
|
+
|
|
52
|
+
if (args.hostnames !== undefined) {
|
|
53
|
+
this.hostnames = pulumi
|
|
54
|
+
.all([args.hostnames])
|
|
55
|
+
.apply(([hostnames]) => hostnames.map((hostname) => pulumi.output(hostname)));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
import { ComponentResource } from "../common";
|
|
4
|
+
import * as kubernetes from "../kubernetes";
|
|
5
|
+
|
|
6
|
+
export interface LocalPathProvisionerArgs {
|
|
7
|
+
namespace?: pulumi.Input<string>;
|
|
8
|
+
storagePath: pulumi.Input<string>;
|
|
9
|
+
replicas?: pulumi.Input<number>;
|
|
10
|
+
defaultClass?: pulumi.Input<boolean>;
|
|
11
|
+
nodeSelector?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class LocalPathProvisioner extends ComponentResource {
|
|
15
|
+
private readonly helmRelease: kubernetes.helm.v3.Release;
|
|
16
|
+
public readonly namespace: pulumi.Output<string>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new local path provisioner resource.
|
|
20
|
+
* @param name The name of the local path provisioner resource.
|
|
21
|
+
* @param args A bag of arguments to control the local path provisioner creation.
|
|
22
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
23
|
+
*/
|
|
24
|
+
constructor(name: string, args: LocalPathProvisionerArgs, opts?: pulumi.ComponentResourceOptions) {
|
|
25
|
+
super("local-path-provisioner", name, args, opts);
|
|
26
|
+
|
|
27
|
+
opts = this.opts(k8s.Provider);
|
|
28
|
+
|
|
29
|
+
if (args.replicas === undefined) {
|
|
30
|
+
args.replicas = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
this.namespace = args.namespace
|
|
34
|
+
? pulumi.output(args.namespace)
|
|
35
|
+
: new k8s.core.v1.Namespace(name, { metadata: { name } }, opts).metadata.name;
|
|
36
|
+
|
|
37
|
+
this.helmRelease = new kubernetes.helm.v3.Release(
|
|
38
|
+
name,
|
|
39
|
+
{
|
|
40
|
+
name,
|
|
41
|
+
namespace: this.namespace,
|
|
42
|
+
repositoryOpts: { repo: "https://charts.containeroo.ch" },
|
|
43
|
+
chart: "local-path-provisioner",
|
|
44
|
+
values: {
|
|
45
|
+
fullnameOverride: name,
|
|
46
|
+
replicaCount: args.replicas,
|
|
47
|
+
storageClass: { defaultClass: args.defaultClass ?? false },
|
|
48
|
+
nodePathMap: [
|
|
49
|
+
{
|
|
50
|
+
node: "DEFAULT_PATH_FOR_NON_LISTED_NODES",
|
|
51
|
+
paths: [args.storagePath],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
nodeSelector: args.nodeSelector,
|
|
55
|
+
tolerations: [
|
|
56
|
+
{ key: "node-role.kubernetes.io/master", operator: "Exists", effect: "NoSchedule" },
|
|
57
|
+
{ key: "node-role.kubernetes.io/control-plane", operator: "Exists", effect: "NoSchedule" },
|
|
58
|
+
],
|
|
59
|
+
affinity: {
|
|
60
|
+
podAntiAffinity: {
|
|
61
|
+
preferredDuringSchedulingIgnoredDuringExecution: [
|
|
62
|
+
{
|
|
63
|
+
weight: 100,
|
|
64
|
+
podAffinityTerm: {
|
|
65
|
+
labelSelector: {
|
|
66
|
+
matchExpressions: [
|
|
67
|
+
{ key: "app.kubernetes.io/name", operator: "In", values: [name] },
|
|
68
|
+
{ key: "app.kubernetes.io/instance", operator: "In", values: [name] },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
topologyKey: "kubernetes.io/hostname",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
resources: {
|
|
78
|
+
requests: { memory: "64Mi" },
|
|
79
|
+
limits: { memory: "96Mi" },
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
opts
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
this.registerOutputs();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
import { ComponentResource } from "../common";
|
|
4
|
+
import * as kubernetes from "../kubernetes";
|
|
5
|
+
import { DataSource } from "../grafana";
|
|
6
|
+
|
|
7
|
+
export interface LokiArgs {
|
|
8
|
+
namespace?: pulumi.Input<string>;
|
|
9
|
+
hostname?: pulumi.Input<string>;
|
|
10
|
+
storageClassName?: pulumi.Input<string>;
|
|
11
|
+
storage?: pulumi.Input<string>;
|
|
12
|
+
retention?: pulumi.Input<string>;
|
|
13
|
+
replicas?: pulumi.Input<number>;
|
|
14
|
+
grafanaDatasourceName?: pulumi.Input<string>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class Loki extends ComponentResource {
|
|
18
|
+
private readonly helmRelease: kubernetes.helm.v3.Release;
|
|
19
|
+
private readonly grafanaDatasource: DataSource;
|
|
20
|
+
public readonly namespace: pulumi.Output<string>;
|
|
21
|
+
public readonly url: pulumi.Output<string>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Create a new loki resource.
|
|
25
|
+
* @param name The name of the loki resource.
|
|
26
|
+
* @param args A bag of arguments to control the loki creation.
|
|
27
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
28
|
+
*/
|
|
29
|
+
constructor(name: string, args: LokiArgs, opts?: pulumi.ComponentResourceOptions) {
|
|
30
|
+
super("loki", name, args, opts);
|
|
31
|
+
|
|
32
|
+
opts = this.opts(k8s.Provider);
|
|
33
|
+
|
|
34
|
+
if (args.storage === undefined) {
|
|
35
|
+
args.storage = "10Gi";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (args.retention === undefined) {
|
|
39
|
+
args.retention = "1440h";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
this.namespace = args.namespace
|
|
43
|
+
? pulumi.output(args.namespace)
|
|
44
|
+
: new k8s.core.v1.Namespace(name, { metadata: { name } }, opts).metadata.name;
|
|
45
|
+
|
|
46
|
+
this.url = pulumi.concat(
|
|
47
|
+
"http://",
|
|
48
|
+
pulumi.output(args.hostname ?? pulumi.concat(name, ".", this.namespace, ".", "svc")),
|
|
49
|
+
":3100"
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
this.helmRelease = new kubernetes.helm.v3.Release(
|
|
53
|
+
name,
|
|
54
|
+
{
|
|
55
|
+
name,
|
|
56
|
+
namespace: this.namespace,
|
|
57
|
+
repositoryOpts: { repo: "https://grafana.github.io/helm-charts" },
|
|
58
|
+
chart: "loki",
|
|
59
|
+
values: {
|
|
60
|
+
fullnameOverride: name,
|
|
61
|
+
loki: {
|
|
62
|
+
auth_enabled: false,
|
|
63
|
+
limits_config: {
|
|
64
|
+
reject_old_samples_max_age: "24h",
|
|
65
|
+
retention_period: "2160h",
|
|
66
|
+
},
|
|
67
|
+
commonConfig: {
|
|
68
|
+
replication_factor: args.replicas ?? 1,
|
|
69
|
+
},
|
|
70
|
+
storage: {
|
|
71
|
+
type: "filesystem",
|
|
72
|
+
},
|
|
73
|
+
compactor: {
|
|
74
|
+
retention_enabled: true,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
singleBinary: {
|
|
78
|
+
replicas: args.replicas ?? 1,
|
|
79
|
+
persistence: { storageClass: args.storageClassName, size: args.storage },
|
|
80
|
+
resources: {
|
|
81
|
+
requests: { memory: "192Mi" },
|
|
82
|
+
limits: { memory: "256Mi" },
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
gateway: {
|
|
86
|
+
replicas: args.replicas ?? 1,
|
|
87
|
+
verboseLogging: false,
|
|
88
|
+
service: {
|
|
89
|
+
annotations: args.hostname
|
|
90
|
+
? {
|
|
91
|
+
"external-dns.alpha.kubernetes.io/hostname": args.hostname,
|
|
92
|
+
}
|
|
93
|
+
: {},
|
|
94
|
+
},
|
|
95
|
+
resources: {},
|
|
96
|
+
},
|
|
97
|
+
monitoring: {
|
|
98
|
+
serviceMonitor: { enabled: true },
|
|
99
|
+
selfMonitoring: {
|
|
100
|
+
enabled: false,
|
|
101
|
+
grafanaAgent: { installOperator: false },
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
opts
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
this.grafanaDatasource = new DataSource(
|
|
110
|
+
`${name}-grafana-datasource`,
|
|
111
|
+
{
|
|
112
|
+
metadata: { namespace: this.namespace, name: pulumi.interpolate`${name}-grafana-datasource` },
|
|
113
|
+
type: "loki",
|
|
114
|
+
name: pulumi.all([args.grafanaDatasourceName]).apply(([dsName]) => dsName ?? "Loki"),
|
|
115
|
+
url: pulumi.concat("http://", name, ".", this.namespace, ".", "svc", ":3100"),
|
|
116
|
+
},
|
|
117
|
+
opts
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
this.registerOutputs();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
import { ComponentResource } from "../common";
|
|
4
|
+
import * as helm from "../kubernetes/helm";
|
|
5
|
+
|
|
6
|
+
export interface MetalLBArgs {
|
|
7
|
+
namespace?: pulumi.Input<string>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export class MetalLB extends ComponentResource {
|
|
11
|
+
private readonly helmRelease: helm.v3.Release;
|
|
12
|
+
public readonly namespace: pulumi.Output<string>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Create a new MetalLB resource.
|
|
16
|
+
* @param name The name of MetalLB resource.
|
|
17
|
+
* @param args A bag of arguments to control the MetalLB creation.
|
|
18
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
19
|
+
*/
|
|
20
|
+
constructor(name: string, args: MetalLBArgs, opts?: pulumi.ComponentResourceOptions) {
|
|
21
|
+
super("metallb", name, args, opts);
|
|
22
|
+
|
|
23
|
+
opts = this.opts(k8s.Provider);
|
|
24
|
+
|
|
25
|
+
this.namespace = args.namespace
|
|
26
|
+
? pulumi.output(args.namespace)
|
|
27
|
+
: new k8s.core.v1.Namespace(name, { metadata: { name } }, opts).metadata.name;
|
|
28
|
+
|
|
29
|
+
this.helmRelease = new helm.v3.Release(
|
|
30
|
+
name,
|
|
31
|
+
{
|
|
32
|
+
name,
|
|
33
|
+
namespace: this.namespace,
|
|
34
|
+
repositoryOpts: { repo: "https://metallb.github.io/metallb" },
|
|
35
|
+
chart: "metallb",
|
|
36
|
+
values: {
|
|
37
|
+
fullnameOverride: name,
|
|
38
|
+
prometheus: {
|
|
39
|
+
serviceAccount: "default",
|
|
40
|
+
namespace: this.namespace,
|
|
41
|
+
podMonitor: {
|
|
42
|
+
enabled: true,
|
|
43
|
+
metricRelabelings: [
|
|
44
|
+
{
|
|
45
|
+
action: "drop",
|
|
46
|
+
sourceLabels: ["__name__"],
|
|
47
|
+
regex: ["go_.*"].join("|"),
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
prometheusRule: { enabled: false },
|
|
52
|
+
},
|
|
53
|
+
controller: {
|
|
54
|
+
affinity: {
|
|
55
|
+
podAntiAffinity: {
|
|
56
|
+
preferredDuringSchedulingIgnoredDuringExecution: [
|
|
57
|
+
{
|
|
58
|
+
weight: 100,
|
|
59
|
+
podAffinityTerm: {
|
|
60
|
+
labelSelector: {
|
|
61
|
+
matchExpressions: [
|
|
62
|
+
{ key: "app.kubernetes.io/name", operator: "In", values: ["metallb"] },
|
|
63
|
+
{ key: "app.kubernetes.io/instance", operator: "In", values: [name] },
|
|
64
|
+
{ key: "app.kubernetes.io/component", operator: "In", values: ["controller"] },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
topologyKey: "kubernetes.io/hostname",
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
tolerations: [
|
|
74
|
+
{ key: "node-role.kubernetes.io/master", operator: "Exists", effect: "NoSchedule" },
|
|
75
|
+
{ key: "node-role.kubernetes.io/control-plane", operator: "Exists", effect: "NoSchedule" },
|
|
76
|
+
],
|
|
77
|
+
resources: {
|
|
78
|
+
requests: { memory: "48Mi" },
|
|
79
|
+
limits: { memory: "64Mi" },
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
speaker: {
|
|
83
|
+
tolerateMaster: false,
|
|
84
|
+
resources: {
|
|
85
|
+
requests: { memory: "64Mi" },
|
|
86
|
+
limits: { memory: "96Mi" },
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
opts
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
this.registerOutputs();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { MetalLBArgs, MetalLB } from "./controller";
|
|
2
2
|
import { IPAddressPoolSpecArgs, IPAddressPoolArgs, IPAddressPool } from "./ipAddressPool";
|
|
3
3
|
import { L2AdvertisementSpecArgs, L2AdvertisementArgs, L2Advertisement } from "./l2Advertisement";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
MetalLBArgs,
|
|
7
|
+
MetalLB,
|
|
8
|
+
IPAddressPoolSpecArgs,
|
|
9
|
+
IPAddressPoolArgs,
|
|
10
|
+
IPAddressPool,
|
|
11
|
+
L2AdvertisementSpecArgs,
|
|
12
|
+
L2AdvertisementArgs,
|
|
13
|
+
L2Advertisement,
|
|
14
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
|
|
4
|
+
export interface IPAddressPoolSpecArgs {
|
|
5
|
+
addresses: pulumi.Input<pulumi.Input<string>[]>;
|
|
6
|
+
autoAssign?: pulumi.Input<boolean>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface IPAddressPoolArgs {
|
|
10
|
+
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
11
|
+
spec: pulumi.Input<IPAddressPoolSpecArgs>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class IPAddressPool extends k8s.apiextensions.CustomResource {
|
|
15
|
+
/**
|
|
16
|
+
* Create a new IP address pool resource.
|
|
17
|
+
* @param name The name of the IP address pool resource.
|
|
18
|
+
* @param args A bag of arguments to control the IP address pool creation.
|
|
19
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
20
|
+
*/
|
|
21
|
+
constructor(name: string, args: IPAddressPoolArgs, opts?: pulumi.CustomResourceOptions) {
|
|
22
|
+
super(
|
|
23
|
+
name,
|
|
24
|
+
{
|
|
25
|
+
apiVersion: "metallb.io/v1beta1",
|
|
26
|
+
kind: "IPAddressPool",
|
|
27
|
+
metadata: args.metadata,
|
|
28
|
+
spec: args.spec,
|
|
29
|
+
},
|
|
30
|
+
opts
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
|
|
4
|
+
export interface L2AdvertisementSpecArgs {
|
|
5
|
+
ipAddressPoolSelectors?: pulumi.Input<pulumi.Input<k8s.types.input.meta.v1.LabelSelector>[]>;
|
|
6
|
+
ipAddressPools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
7
|
+
nodeSelectors?: pulumi.Input<pulumi.Input<k8s.types.input.meta.v1.LabelSelector>[]>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface L2AdvertisementArgs {
|
|
11
|
+
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
12
|
+
spec: pulumi.Input<L2AdvertisementSpecArgs>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class L2Advertisement extends k8s.apiextensions.CustomResource {
|
|
16
|
+
/**
|
|
17
|
+
* Create a new L2 advertisement resource.
|
|
18
|
+
* @param name The name of the L2 advertisement resource.
|
|
19
|
+
* @param args A bag of arguments to control the L2 advertisement creation.
|
|
20
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
21
|
+
*/
|
|
22
|
+
constructor(name: string, args: L2AdvertisementArgs, opts?: pulumi.CustomResourceOptions) {
|
|
23
|
+
super(
|
|
24
|
+
name,
|
|
25
|
+
{
|
|
26
|
+
apiVersion: "metallb.io/v1beta1",
|
|
27
|
+
kind: "L2Advertisement",
|
|
28
|
+
metadata: args.metadata,
|
|
29
|
+
spec: args.spec,
|
|
30
|
+
},
|
|
31
|
+
opts
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
import { ComponentResource } from "../common";
|
|
4
|
+
import { DnsEndpointsArgs, DnsEndpoint } from "../externalDns";
|
|
5
|
+
import { Node } from "./node";
|
|
6
|
+
|
|
7
|
+
export interface KubernetesArgs {
|
|
8
|
+
namespace?: pulumi.Input<string>;
|
|
9
|
+
nodes: pulumi.Input<pulumi.Input<Node>[]>;
|
|
10
|
+
clusterName: pulumi.Input<string>;
|
|
11
|
+
domain: pulumi.Input<string>;
|
|
12
|
+
ipType?: pulumi.Input<string>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class Kubernetes extends ComponentResource {
|
|
16
|
+
private readonly api: pulumi.Output<DnsEndpoint>;
|
|
17
|
+
private readonly nodes: pulumi.Output<DnsEndpoint[]>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Create a new node dns endpoints resource.
|
|
21
|
+
* @param name The name of the node dns endpoints resource.
|
|
22
|
+
* @param args A bag of arguments to control the node dns endpoints creation.
|
|
23
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
24
|
+
*/
|
|
25
|
+
constructor(name: string, args: KubernetesArgs, opts?: pulumi.ComponentResourceOptions) {
|
|
26
|
+
super("node:kubernetes", name, args, opts);
|
|
27
|
+
|
|
28
|
+
opts = this.opts(k8s.Provider);
|
|
29
|
+
|
|
30
|
+
const namespace = args.namespace ?? "kube-system";
|
|
31
|
+
const ipType = args.ipType ?? "private";
|
|
32
|
+
|
|
33
|
+
this.api = pulumi.all([args.nodes, args.domain, ipType]).apply(
|
|
34
|
+
([nodes, domain, ipType]) =>
|
|
35
|
+
new DnsEndpoint(
|
|
36
|
+
`${name}-api`,
|
|
37
|
+
{
|
|
38
|
+
metadata: { namespace, name: `${name}-api` },
|
|
39
|
+
spec: {
|
|
40
|
+
endpoints: pulumi.all(nodes).apply((nodes) => {
|
|
41
|
+
const dnsName = pulumi.interpolate`api.${domain}`;
|
|
42
|
+
const ipv4Endpoints: pulumi.Input<string>[] = [];
|
|
43
|
+
const ipv6Endpoints: pulumi.Input<string>[] = [];
|
|
44
|
+
const endpoints: DnsEndpointsArgs[] = [];
|
|
45
|
+
|
|
46
|
+
for (const node of nodes) {
|
|
47
|
+
if ((node.roles ?? []).includes("controller")) {
|
|
48
|
+
const nodeIPs = this.nodeIPs(node, ipType);
|
|
49
|
+
|
|
50
|
+
ipv4Endpoints.push(...nodeIPs.ipv4Adresses);
|
|
51
|
+
ipv6Endpoints.push(...nodeIPs.ipv6Addresses);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (ipv4Endpoints.length > 0) {
|
|
56
|
+
endpoints.push({ dnsName, recordType: "A", targets: ipv4Endpoints });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (ipv6Endpoints.length > 0) {
|
|
60
|
+
endpoints.push({ dnsName, recordType: "AAAA", targets: ipv6Endpoints });
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return endpoints;
|
|
64
|
+
}),
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
opts
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
this.nodes = pulumi
|
|
72
|
+
.all([args.nodes, args.domain, args.clusterName, ipType])
|
|
73
|
+
.apply(([nodes, domain, clusterName, ipType]) =>
|
|
74
|
+
nodes.map((node) => {
|
|
75
|
+
const dnsName = pulumi.interpolate`${node.hostname.replace(`${clusterName}-`, "")}.${domain}`;
|
|
76
|
+
const endpoints: DnsEndpointsArgs[] = [];
|
|
77
|
+
|
|
78
|
+
const nodeIPs = this.nodeIPs(node, ipType);
|
|
79
|
+
|
|
80
|
+
if (nodeIPs.ipv4Adresses.length > 0) {
|
|
81
|
+
endpoints.push({ dnsName, recordType: "A", targets: nodeIPs.ipv4Adresses });
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (nodeIPs.ipv6Addresses.length > 0) {
|
|
85
|
+
endpoints.push({ dnsName, recordType: "AAAA", targets: nodeIPs.ipv6Addresses });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return new DnsEndpoint(
|
|
89
|
+
`${name}-${node.hostname}`,
|
|
90
|
+
{
|
|
91
|
+
metadata: { namespace, name: `${name}-${node.hostname}` },
|
|
92
|
+
spec: { endpoints },
|
|
93
|
+
},
|
|
94
|
+
opts
|
|
95
|
+
);
|
|
96
|
+
})
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
this.registerOutputs();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
private nodeIPs(
|
|
103
|
+
node: Node,
|
|
104
|
+
ipType: string
|
|
105
|
+
): { ipv4Adresses: pulumi.Input<string>[]; ipv6Addresses: pulumi.Input<string>[] } {
|
|
106
|
+
const ipv4Adresses: pulumi.Input<string>[] = [];
|
|
107
|
+
const ipv6Addresses: pulumi.Input<string>[] = [];
|
|
108
|
+
|
|
109
|
+
if (ipType === "private") {
|
|
110
|
+
if (node.privateIpv4Address !== undefined) {
|
|
111
|
+
ipv4Adresses.push(node.privateIpv4Address);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (node.privateIpv6Address !== undefined) {
|
|
115
|
+
ipv6Addresses.push(node.privateIpv6Address);
|
|
116
|
+
}
|
|
117
|
+
} else {
|
|
118
|
+
if (node.ipv4Address !== undefined) {
|
|
119
|
+
ipv4Adresses.push(node.ipv4Address);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (node.ipv6Address !== undefined) {
|
|
123
|
+
ipv6Addresses.push(node.ipv6Address);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return { ipv4Adresses, ipv6Addresses };
|
|
128
|
+
}
|
|
129
|
+
}
|
package/lib/node/node.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
|
|
3
|
+
export interface Node {
|
|
4
|
+
id?: pulumi.Input<string>;
|
|
5
|
+
hostname: pulumi.Input<string>;
|
|
6
|
+
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
7
|
+
ipv4Address?: pulumi.Input<string>;
|
|
8
|
+
privateIpv4Address?: pulumi.Input<string>;
|
|
9
|
+
ipv6Address?: pulumi.Input<string>;
|
|
10
|
+
privateIpv6Address?: pulumi.Input<string>;
|
|
11
|
+
labels?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
|
|
12
|
+
taints?: pulumi.Input<
|
|
13
|
+
pulumi.Input<{ effect: pulumi.Input<string>; key: pulumi.Input<string>; value: pulumi.Input<string> }>[]
|
|
14
|
+
>;
|
|
15
|
+
username?: pulumi.Input<string>;
|
|
16
|
+
privateKey?: pulumi.Input<string>;
|
|
17
|
+
}
|