Change NodePort to ClusterIP in coll, promOper pkg 88/97088/1
authorSrivahni <srivahni.chivukula@intel.com>
Mon, 14 Oct 2019 21:35:11 +0000 (14:35 -0700)
committerSrivahni <srivahni.chivukula@intel.com>
Mon, 14 Oct 2019 21:52:05 +0000 (14:52 -0700)
Issue-ID: ONAPARC-393
Signed-off-by: Srivahni <srivahni.chivukula@intel.com>
Change-Id: Ica0be8d255074b78dede3fd3b0045f41fde02136

vnfs/DAaaS/deploy/collection/charts/cadvisor/templates/service.yaml
vnfs/DAaaS/deploy/collection/charts/cadvisor/values.yaml
vnfs/DAaaS/deploy/collection/charts/prometheus/values.yaml
vnfs/DAaaS/deploy/operator/charts/prometheus-operator/values.yaml

index a8a932d..c52eb22 100644 (file)
@@ -22,8 +22,8 @@ metadata:
     app: cadvisor
     release: {{ .Release.Name }}
 spec:
-  type: NodePort
-  externalTrafficPolicy: Local
+  type: ClusterIP
+  #externalTrafficPolicy: Local
   selector:
 {{ include "rangeskipempty" .Values.cadvisor_prometheus.service.selector | indent 4 }}
   ports:
@@ -33,5 +33,5 @@ spec:
     {{- end }}
     protocol: TCP
     port: {{ .Values.cadvisor_prometheus.service.port }}
-    nodePort: {{ .Values.global.nodePortPrefix }}{{ .Values.cadvisor_prometheus.service.nodePort }}
+    #nodePort: {{ .Values.global.nodePortPrefix }}{{ .Values.cadvisor_prometheus.service.nodePort }}
     targetPort: {{ .Values.cadvisor_prometheus.service.targetPort }}
index a17c3dd..345b228 100644 (file)
@@ -14,9 +14,9 @@ resources: {}
   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
 cadvisor_prometheus:
   service:
-    type: NodePort
+    type: ClusterIP
     port: 80
-    nodePort: 91
+    #nodePort: 91
     targetPort: 8080
     selector:
       app: cadvisor
index b3e685c..c939af4 100644 (file)
@@ -40,6 +40,7 @@ prometheus:
  
   resources: {}
   service:
+    type: ClusterIP
     annotations: {}
     labels: {}
     clusterIP: ""
@@ -55,7 +56,7 @@ prometheus:
     ## Port to expose on each node
     ## Only used if service.type is 'NodePort'
     ##
-    nodePort: 90
+    nodePort: 90
 
     ## Loadbalancer IP
     ## Only use if service.type is "loadbalancer"
@@ -63,7 +64,7 @@ prometheus:
     loadBalancerSourceRanges: []
     ## Service type
     ##
-    type: NodePort
+    #type: NodePort
 
     sessionAffinity: ""
 m3db:
index fc0bc24..23841a4 100644 (file)
@@ -162,7 +162,7 @@ alertmanager:
   ## Port to expose on each node
   ## Only used if service.type is 'NodePort'
   ##
-    nodePort: 30903
+    #nodePort: 30903
   ## List of IP addresses at which the Prometheus server service is available
   ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
   ##
@@ -567,7 +567,7 @@ prometheusOperator:
   ## Port to expose on each node
   ## Only used if service.type is 'NodePort'
   ##
-    nodePort: 30080
+    #nodePort: 30080
 
 
   ## Loadbalancer IP
@@ -579,7 +579,7 @@ prometheusOperator:
   ## Service type
   ## NodepPort, ClusterIP, loadbalancer
   ##
-    type: NodePort
+    type: ClusterIP
 
     ## List of IP addresses at which the Prometheus server service is available
     ## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
@@ -734,7 +734,7 @@ prometheus:
     loadBalancerSourceRanges: []
     ## Service type
     ##
-    type: NodePort
+    type: ClusterIP
 
     sessionAffinity: ""