Skip to content

Commit

Permalink
salt: Expose Loki API to metalk8s-ui
Browse files Browse the repository at this point in the history
Refs: #3180
  • Loading branch information
alexandre-allard committed Mar 9, 2021
1 parent c1359b9 commit 06d77c8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions salt/metalk8s/addons/ui/deployed/dependencies.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions salt/metalk8s/addons/ui/deployed/ingress.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06d77c8

Please sign in to comment.