These annotations made sense in pre v1.3.0 Prometheus releases, however, with >=v1.3.0 and the Prometheus Operator these annotations are more confusing then helpful.
31 lines
416 B
YAML
31 lines
416 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: etcd-k8s
|
|
labels:
|
|
app: etcd
|
|
etcd: k8s
|
|
spec:
|
|
type: ClusterIP
|
|
clusterIP: None
|
|
ports:
|
|
- name: api
|
|
port: 2379
|
|
protocol: TCP
|
|
---
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: etcd-k8s
|
|
labels:
|
|
app: etcd
|
|
etcd: k8s
|
|
subsets:
|
|
- addresses:
|
|
- ip: 172.17.4.51
|
|
nodeName: 172.17.4.51
|
|
ports:
|
|
- name: api
|
|
port: 2379
|
|
protocol: TCP
|