apiVersion: discovery.k8s.io/v1 kind: EndpointSlice metadata: name: postgres-static-service namespace: database labels: kubernetes.io/service-name: postgres # Links to the Service addressType: IPv4 ports: - port: 5432 endpoints: - addresses: - "10.0.2.122"