Update port and targetPort in webhook-translator
Change-Id: I1e0a4a44f1d5ec540e2c8cffa9ff42e8a106233f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/installers/helm/osm/templates/webhook_translator/webhook-translator-service.yaml b/installers/helm/osm/templates/webhook_translator/webhook-translator-service.yaml
index 97a426f..0fb1d8e 100644
--- a/installers/helm/osm/templates/webhook_translator/webhook-translator-service.yaml
+++ b/installers/helm/osm/templates/webhook_translator/webhook-translator-service.yaml
@@ -26,8 +26,8 @@
type: {{ .Values.webhookTranslator.service.type }}
ports:
- nodePort: {{ .Values.webhookTranslator.service.nodePort }}
- port: 80
- targetPort: 80
+ port: {{ .Values.webhookTranslator.service.port }}
+ targetPort: 9998
protocol: TCP
selector:
app.kubernetes.io/component: webhook-translator
diff --git a/installers/helm/osm/values.yaml b/installers/helm/osm/values.yaml
index fbbed8f..c4cf890 100644
--- a/installers/helm/osm/values.yaml
+++ b/installers/helm/osm/values.yaml
@@ -206,6 +206,7 @@
service:
type: NodePort
nodePort: 9998
+ port: 9998
image: {}
# repository: opensourcemano/webhook
# tag: "13"
diff --git a/installers/helm/values/alertmanager-values.yaml b/installers/helm/values/alertmanager-values.yaml
index 4640e3a..fb01de0 100644
--- a/installers/helm/values/alertmanager-values.yaml
+++ b/installers/helm/values/alertmanager-values.yaml
@@ -23,16 +23,16 @@
- name: default-receiver
- name: vdu-webhook
webhook_configs:
- - url: http://webhook-translator/vdu_down
+ - url: http://webhook-translator:9998/vdu_down
- name: scaleout-webhook
webhook_configs:
- - url: http://webhook-translator/scaleout_vdu
+ - url: http://webhook-translator:9998/scaleout_vdu
- name: scalein-webhook
webhook_configs:
- - url: http://webhook-translator/scalein_vdu
+ - url: http://webhook-translator:9998/scalein_vdu
- name: alarm-webhook
webhook_configs:
- - url: http://webhook-translator/vdu_alarm
+ - url: http://webhook-translator:9998/vdu_alarm
route:
group_wait: 10s
group_interval: 2m