Changes to SL k8s addons
- change NodePort services to LoadBalancer
- decrease number of prometheus replicas
Change-Id: I8e5ae3422c04291b5368023a3b4a5fcfb39268ac
Related-PROD: PROD:23278
diff --git a/kubernetes/files/kube-addons/alertmanager/alertmanager-svc.yml b/kubernetes/files/kube-addons/alertmanager/alertmanager-svc.yml
index e4bb185..2a620fa 100644
--- a/kubernetes/files/kube-addons/alertmanager/alertmanager-svc.yml
+++ b/kubernetes/files/kube-addons/alertmanager/alertmanager-svc.yml
@@ -10,12 +10,11 @@
addonmanager.kubernetes.io/mode: Reconcile
kubernetes.io/name: "Alertmanager"
spec:
- type: NodePort
+ type: LoadBalancer
ports:
- name: http
port: {{ common.addons.get('alertmanager',{}).get('bind', {}).get('port', '9093') }}
protocol: TCP
targetPort: {{ common.addons.get('alertmanager',{}).get('bind', {}).get('port', '9093') }}
- nodePort: {{ common.addons.get('alertmanager',{}).get('bind', {}).get('node_port', '31993') }}
selector:
k8s-app: alertmanager
diff --git a/kubernetes/files/kube-addons/prometheus/prometheus-server-deploy.yaml b/kubernetes/files/kube-addons/prometheus/prometheus-server-deploy.yaml
index 5d9aba2..7f27b52 100644
--- a/kubernetes/files/kube-addons/prometheus/prometheus-server-deploy.yaml
+++ b/kubernetes/files/kube-addons/prometheus/prometheus-server-deploy.yaml
@@ -11,7 +11,7 @@
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
spec:
- replicas: 3
+ replicas: 2
selector:
matchLabels:
k8s-app: prometheus-server
diff --git a/kubernetes/files/kube-addons/prometheus/prometheus-server-svc.yaml b/kubernetes/files/kube-addons/prometheus/prometheus-server-svc.yaml
index f2966f5..9829b45 100644
--- a/kubernetes/files/kube-addons/prometheus/prometheus-server-svc.yaml
+++ b/kubernetes/files/kube-addons/prometheus/prometheus-server-svc.yaml
@@ -13,11 +13,9 @@
spec:
selector:
k8s-app: prometheus-server
- type: NodePort
+ type: LoadBalancer
ports:
- name: webui
port: {{ common.addons.prometheus.server.bind.get('port', '9090') }}
targetPort: {{ common.addons.prometheus.server.bind.get('port', '9090') }}
protocol: TCP
- # must be between 30000-32767
- nodePort: {{ common.addons.prometheus.server.bind.get('host_port', '31990') }}