18 lines
306 B
YAML
18 lines
306 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: kube-state-metrics
|
||
|
namespace: monitoring
|
||
|
annotations:
|
||
|
prometheus.io/scrape: 'true'
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
selector:
|
||
|
name: kube-state-metrics
|
||
|
phase: prod
|
||
|
ports:
|
||
|
- name: metrics
|
||
|
protocol: TCP
|
||
|
port: 80
|
||
|
targetPort: 8080
|