apiVersion: v1 kind: Service metadata: name: pihole spec: ports: - name: app port: 80 protocol: TCP targetPort: 80 clusterIP: None type: ClusterIP --- apiVersion: v1 kind: Endpoints metadata: name: pihole subsets: - addresses: - ip: 192.168.2.12 ports: - name: app port: 80 protocol: TCP