Update port and targetPort in webhook-translator
Change-Id: I1e0a4a44f1d5ec540e2c8cffa9ff42e8a106233f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/docker/Webhook/Dockerfile b/docker/Webhook/Dockerfile
index d99c877..5a7b592 100644
--- a/docker/Webhook/Dockerfile
+++ b/docker/Webhook/Dockerfile
@@ -80,6 +80,5 @@
EXPOSE 9998
-CMD ["uvicorn", "osm_webhook_translator.main:app", "--host", "0.0.0.0", "--port", "80"]
-
+CMD ["uvicorn", "osm_webhook_translator.main:app", "--host", "0.0.0.0", "--port", "9998"]
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