Merge "[k8s-fedora-atomic] Use ClusterIP for prometheus service"
This commit is contained in:
commit
e256f87d1a
|
@ -197,12 +197,11 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: prometheus
|
app: prometheus
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- name: prometheus
|
- name: prometheus
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 9090
|
port: 9090
|
||||||
nodePort: 30900
|
|
||||||
---
|
---
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
@ -307,11 +306,10 @@ metadata:
|
||||||
name: grafana
|
name: grafana
|
||||||
namespace: prometheus-monitoring
|
namespace: prometheus-monitoring
|
||||||
spec:
|
spec:
|
||||||
type: "NodePort"
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 3000
|
- port: 3000
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
nodePort: 30603
|
|
||||||
selector:
|
selector:
|
||||||
grafana: "true"
|
grafana: "true"
|
||||||
---
|
---
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Use ClusterIP as the default Prometheus service type, because the NodePort
|
||||||
|
type service has the requirement that extra security group rule is properly
|
||||||
|
configured. Kubernetes cluster administrator could still change the service
|
||||||
|
type after the cluster creation.
|
Loading…
Reference in New Issue