feat(ibmcloud): remove public gateway from VPC network module — use FIP-only for outbound
维护者通常 4 天内回复
@adrianriobo 已经在做这个了。
开始于 2026年10月16日。
评估
这个 Issue 还没有评估数据。
描述
Background
Every IBM Cloud VPC target that uses network.New() (kind, snc, ibm-z, ibm-gaudi) provisions two outbound internet paths:
- Public Gateway — subnet-level; all instances in the subnet can reach the internet immediately from first boot.
- Floating IP — instance-level 1:1 NAT; provides both inbound SSH/API access and outbound internet once attached.
The floating IP alone is sufficient for outbound connectivity. Once it is associated with an instance's NIC, the instance uses the FIP's public address for all outbound traffic — no gateway needed.
Why the gateway exists today
The Pulumi resource graph attaches the floating IP after the instance is created (it needs the NIC ID):
network.New() → FIP reserved (not yet attached)
↓
NewIsInstance() → VM boots, cloud-init starts
↓
NewIsInstanceNetworkInterfaceFloatingIp() → FIP attached
There is a window between "instance running" and "FIP associated" during which cloud-init runs apt-get update and downloads the kind binary and node image. Without the public gateway that window has no outbound internet path and cloud-init fails.
The gateway is attached to the subnet before the instance exists, so it covers that window reliably.
Opportunity
The IBM Cloud VPC REST API accepts primary_network_interface.floating_ips[] during instance creation, allowing the FIP to be associated atomically — the instance would boot with the FIP already wired, eliminating the race window entirely.
If the Pulumi IBM Cloud provider exposed this field on IsInstancePrimaryNetworkInterfaceArgs, we could:
- Pass the pre-created FIP ID at instance creation time
- Drop the separate
IsInstanceNetworkInterfaceFloatingIpresource - Remove the public gateway and its subnet attachment entirely
Current blocker
IsInstancePrimaryNetworkInterfaceArgs in pulumi-ibmcloud v0.0.16 does not include a FloatingIps field:
type IsInstancePrimaryNetworkInterfaceArgs struct {
AllowIpSpoofing pulumi.BoolPtrInput
Name pulumi.StringPtrInput
PrimaryIp IsInstancePrimaryNetworkInterfacePrimaryIpPtrInput
SecurityGroups pulumi.StringArrayInput
Subnet pulumi.StringInput
// FloatingIps missing — IBM Cloud API supports this
}
Cost and simplification benefit
- One fewer VPC resource per stack (public gateway + subnet attachment): reduces IBM Cloud VPC resource quota consumption and simplifies teardown.
- Public gateways themselves are not charged hourly by IBM Cloud, but data egress through them is billed at the same rate as through a FIP. Net cost saving is minimal but quota consumption drops.
- The main gain is architectural simplicity: a single outbound path (the FIP) instead of two overlapping ones.
Proposed path
- Open an issue or PR against
mapt-oss/pulumi-ibmcloudto exposeFloatingIps []stringonIsInstancePrimaryNetworkInterfaceArgs. - Once the SDK is updated, refactor
network.New()to:- Accept the pre-created FIP ID
- Pass it in
PrimaryNetworkInterface.FloatingIps - Remove
NewIsPublicGatewayandNewIsSubnetPublicGatewayAttachment - Remove the separate
NewIsInstanceNetworkInterfaceFloatingIpcall from each action
- 主要语言
- Go
- 星标
- 25
- 派生
- 41
- 平均合并
- 5 天 3 小时
- 30 天内合并 PR
- 16
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
redhat-developer/mapt 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/mapt#972 ·
维护者通常 4 天内回复
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH key可能重新可做 @abdulazeem-tk4vr 于 153 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
redhat-developer/mapt#817 · 12 条评论 ·
维护者通常 4 天内回复
-
openshift-snc: align cluster ingress domain with the nip.io access domain (crc.testing split-brain)未关闭
难度 5/5 一周以上 新手友好度 25/100
redhat-developer/mapt#968 · 1 个 reaction ·
维护者通常 4 天内回复
-
[enhancement] github runner: support just-in-time (JIT) runner configuration可能已有人在做 @atishay-kasliwal 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
redhat-developer/mapt#957 · 1 条评论 ·
维护者通常 4 天内回复
-
enhancement provider/IBMCLOUD
难度 4/5 3-5 天 新手友好度 25/100
redhat-developer/mapt#955 ·
维护者通常 4 天内回复
查看 redhat-developer/mapt 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
v2fly/domain-list-community#4307 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
chore needs-triage
难度 1/5 1 小时以内 新手友好度 88/100
seanb4t/codegraph-go#380 ·
维护者通常 1 天内回复
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without bound未关闭
难度 2/5 1-3 小时 新手友好度 72/100
mattabate/life-distributable#232 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复