netflux-kubernetes/deploy/prod/svc-netflux.yaml

26 lines
430 B
YAML
Raw Permalink Normal View History

2022-05-05 15:44:44 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: netflux
annotations:
ignore-check.kube-linter.io/dangling-service: "This is a headless service"
2022-05-05 15:44:44 +00:00
spec:
clusterIP: None
ports:
- name: metrics
port: 9100
protocol: TCP
---
kind: Endpoints
apiVersion: v1
metadata:
name: netflux
subsets:
- addresses:
- ip: ${NETFLUX_PRIVATE_IP}
ports:
- port: 9100
name: metrics
protocol: TCP