kube-prometheus: Add RBAC authorization to metrics endpoints
This commit is contained in:
@@ -6,10 +6,15 @@ metadata:
|
||||
k8s-app: kube-state-metrics
|
||||
name: kube-state-metrics
|
||||
spec:
|
||||
clusterIP: None
|
||||
ports:
|
||||
- name: http-metrics
|
||||
port: 8080
|
||||
targetPort: metrics
|
||||
- name: https-main
|
||||
port: 8443
|
||||
targetPort: https-main
|
||||
protocol: TCP
|
||||
- name: https-self
|
||||
port: 9443
|
||||
targetPort: https-self
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: kube-state-metrics
|
||||
|
||||
Reference in New Issue
Block a user