--- # authAnonymousRole is Admin, so only oauth2-proxy and the coroot agents may reach the UI/API. apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: coroot-ingress namespace: coroot spec: podSelector: matchLabels: app.kubernetes.io/part-of: coroot app.kubernetes.io/component: coroot policyTypes: - Ingress ingress: - from: - podSelector: matchLabels: app: coroot-oauth2 - podSelector: matchLabels: app.kubernetes.io/part-of: coroot app.kubernetes.io/component: coroot-node-agent - podSelector: matchLabels: app.kubernetes.io/part-of: coroot app.kubernetes.io/component: coroot-cluster-agent ports: - protocol: TCP port: 8080