---
kind: Service
apiVersion: v1
metadata:
  name: published-service
  namespace: default

spec:
  type: ClusterIP
  externalIPs:
    - 1.2.3.4
    - 5.6.7.8

  ports:
    - port: 9090
      protocol: TCP
      name: first

    - port: 9091
      protocol: TCP
      name: second

---
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
