23 lines
450 B
YAML
23 lines
450 B
YAML
---
|
|
# 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
|