refactoring proxy ingress to use endpointslice

This commit is contained in:
2026-01-02 16:29:49 -07:00
parent dae82f8971
commit 97ac6d224b
9 changed files with 271 additions and 92 deletions

View File

@@ -19,15 +19,35 @@ spec:
pathType: Prefix
backend:
service:
name: prometheus-service
name: prometheus
port:
number: 9091
---
apiVersion: v1
kind: Service
metadata:
name: prometheus-service
name: prometheus
namespace: projects
spec:
type: ExternalName
externalName: 100.122.128.107
ports:
- port: 9091
targetPort: 9091
protocol: TCP
---
apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
name: prometheus
namespace: projects
labels:
kubernetes.io/service-name: prometheus
addressType: IPv4
ports:
- name: http
port: 9091
protocol: TCP
endpoints:
- addresses:
- 100.122.128.107
conditions:
ready: true