feat(ibmcloud): remove public gateway from VPC network module — use FIP-only for outbound
Maintainers usually reply within 3 days
@adrianriobo is already working on this.
Since Oct 16, 2026.
Assessment
This issue has not been assessed yet.
Description
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
- Dominant language
- Go
- Stars
- 26
- Forks
- 41
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 27
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from redhat-developer/mapt
-
kind: v0.14.7 control-plane readiness block reads the wrong kubeconfig path (provision always fails)Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
redhat-developer/mapt#997 ·
Maintainers usually reply within 3 days
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH keyMay be free again @abdulazeem-tk4vr claimed this 167 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
redhat-developer/mapt#817 · 12 comments ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
redhat-developer/mapt#991 ·
Maintainers usually reply within 3 days
-
enhancement provider/AWS provider/IBMCLOUD target/openshift-snc
Difficulty 4/5 3-5 days Newbie friendliness 57/100
redhat-developer/mapt#990 ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
redhat-developer/mapt#974 ·
Maintainers usually reply within 3 days
All issues in redhat-developer/mapt
Similar issues
-
effort:s impact:low raised-by:reviewer risk:low
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
medici-finance/assay#8050 · 1 comment ·
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
factory:subtask
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
enhancement needs-triage service/licensemanager
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hashicorp/terraform-provider-aws#51503 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100