--- # ClusterIP service targeting the consul server pods' HTTP API and UI (8500), # the Gateway's backend. apiVersion: v1 kind: Service metadata: name: consul-http namespace: consul labels: app.kubernetes.io/name: consul app.kubernetes.io/instance: consul spec: type: ClusterIP selector: app: consul component: server release: consul ports: - name: http port: 8500 protocol: TCP targetPort: 8500