1
0
Fork 0

Add ingress status for ClusterIP and NodePort Service Type

This commit is contained in:
mlec 2025-01-03 16:10:04 +01:00 committed by GitHub
parent 845d0b5ac7
commit 6d3a685d5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 505 additions and 58 deletions

View file

@ -0,0 +1,84 @@
---
kind: Service
apiVersion: v1
metadata:
name: published-service
namespace: default
spec:
type: LoadBalancer
ports:
- port: 9090
protocol: TCP
name: first
- port: 9091
protocol: TCP
name: second
status:
loadBalancer:
ingress:
- ip: 1.2.3.4
ports:
- port: 9090
protocol: TCP
- port: 9091
protocol: TCP
- ip: 5.6.7.8
ports:
- port: 9090
protocol: TCP
- port: 9091
protocol: TCP
---
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: foo
namespace: default
spec:
rules:
- host: "*.foo.com"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: service1
port:
number: 80
---
kind: Service
apiVersion: v1
metadata:
name: service1
namespace: default
spec:
ports:
- port: 80
clusterIP: 10.0.0.1
---
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
name: service1-abc
labels:
kubernetes.io/service-name: service1
addressType: IPv4
ports:
- port: 8080
name: ""
endpoints:
- addresses:
- 10.10.0.1
conditions:
ready: true