apiVersion: v1 kind: Service metadata: name: consul namespace: consul labels: app: consul spec: ports: - name: http protocol: TCP port: 8500 targetPort: 8500 selector: app: consul type: ClusterIP