Cluster information:
Kubernetes version: v1.33.1
Cloud being used: OKE - Cloud Oracle
This post is about migrating from ingress to gateway-api.
My problem is that the documentation says that if I don’t reference an address, a random public IP is assigned to my gateway…
Source: Gateway API | Kubernetes
Even with that reference, my gateway was created with 2 public IPs.
Below is my manifest file and a screenshot confirming the 2 IPs.
```yaml
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: loki-gateway
namespace: loki
spec:
addresses:
- type: IPAddress
value: 136.123.123.245
gatewayClassName: nginx
listeners:
- name: loki-http
protocol: HTTP
port: 80
hostname: foo.example.com.br
allowedRoutes:
namespaces:
from: Same
- name: loki-https
protocol: HTTPS
port: 443
hostname: foo.example.com.br
tls:
mode: Terminate
certificateRefs:
- name: loki-tls
kind: Secret
group: “”
allowedRoutes:
namespaces:
from: Same
```
![]()