Skip to content

LoadBalancer setup for ports 9090, 9093, and 3000? #1741

Answered by pyrodex
pyrodex asked this question in Show and tell
Discussion options

You must be logged in to vote

Figured it out, was networkpolicy....

kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
  name: grafana-allow-external
  namespace: monitoring
spec:
  podSelector:
    matchLabels:
      app.kubernetes.io/component: grafana
      app.kubernetes.io/name: grafana
      app.kubernetes.io/part-of: kube-prometheus
  ingress:
  - ports:
    - port: 3000
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
  name: alertmanager-allow-external
  namespace: monitoring
spec:
  podSelector:
    matchLabels:
      app.kubernetes.io/component: alert-router
      app.kubernetes.io/name: alertmanager
      app.kubernetes.io/part-of: kube-prometheus
  ingress:
  - ports:
    - p…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marcusnh
Comment options

Answer selected by pyrodex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants