Files
home-cluster-ops/kubernetes/infrastructure/grafana-dashboards/dashboards/8919-service.yaml
2024-06-27 01:43:23 +10:00

35 lines
576 B
YAML

kind: Service
apiVersion: v1
metadata:
name: flask-consul
namespace: consul
labels:
app: flask-consul
spec:
ports:
- name: http-2026
protocol: TCP
port: 2026
targetPort: 2026
selector:
app: flask-consul
type: ClusterIP
---
kind: Service
apiVersion: v1
metadata:
name: nginx-consul
namespace: consul
labels:
app: consul
spec:
ports:
- name: nginx-consul
protocol: TCP
port: 1026
targetPort: 1026
nodePort: 31026
selector:
app: nginx-consul
type: NodePort
externalTrafficPolicy: Cluster