Update port and targetPort in webhook-translator 25/13525/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 8 Jun 2023 09:19:40 +0000 (11:19 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 8 Jun 2023 11:37:33 +0000 (13:37 +0200)
Change-Id: I1e0a4a44f1d5ec540e2c8cffa9ff42e8a106233f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
docker/Webhook/Dockerfile
installers/helm/osm/templates/webhook_translator/webhook-translator-service.yaml
installers/helm/osm/values.yaml
installers/helm/values/alertmanager-values.yaml

index d99c877..5a7b592 100644 (file)
@@ -80,6 +80,5 @@ USER appuser
 
 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"]
 
index 97a426f..0fb1d8e 100644 (file)
@@ -26,8 +26,8 @@ spec:
   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
index fbbed8f..c4cf890 100644 (file)
@@ -206,6 +206,7 @@ webhookTranslator:
   service:
     type: NodePort
     nodePort: 9998
+    port: 9998
   image: {}
     # repository: opensourcemano/webhook
     # tag: "13"
index 4640e3a..fb01de0 100644 (file)
@@ -23,16 +23,16 @@ config:
     - 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