diff --git a/salt/metalk8s/addons/ui/deployed/dependencies.sls b/salt/metalk8s/addons/ui/deployed/dependencies.sls index 2b7615102a..20b6012d0c 100644 --- a/salt/metalk8s/addons/ui/deployed/dependencies.sls +++ b/salt/metalk8s/addons/ui/deployed/dependencies.sls @@ -71,3 +71,21 @@ spec: ports: - name: http port: 9093 +--- +kind: Service +apiVersion: v1 +metadata: + name: loki-api + namespace: metalk8s-ui + labels: + app: metalk8s-ui + app.kubernetes.io/managed-by: salt + app.kubernetes.io/name: metalk8s-ui + app.kubernetes.io/part-of: metalk8s + heritage: metalk8s +spec: + type: ExternalName + externalName: loki.metalk8s-logging.svc.cluster.local + ports: + - name: http + port: 3100 diff --git a/salt/metalk8s/addons/ui/deployed/ingress.sls b/salt/metalk8s/addons/ui/deployed/ingress.sls index e64ca8582a..f8e49e9a49 100644 --- a/salt/metalk8s/addons/ui/deployed/ingress.sls +++ b/salt/metalk8s/addons/ui/deployed/ingress.sls @@ -57,6 +57,10 @@ spec: backend: serviceName: alertmanager-api servicePort: 9093 + - path: /api/loki(/|$)(.*) + backend: + serviceName: loki-api + servicePort: 3100 --- apiVersion: networking.k8s.io/v1beta1 kind: Ingress