Peter Kurfer
647f602c79
- added Core CRD to manage DB migrations & configuration, PostgREST and GoTrue (auth) - added APIGateway CRD to manage Envoy proxy - added Dashboard CRD to manage (so far) pg-meta and (soon) studio deployments - implemented basic Envoy control plane based on K8s watcher
26 lines
816 B
YAML
26 lines
816 B
YAML
# This NetworkPolicy allows ingress traffic
|
|
# with Pods running on namespaces labeled with 'metrics: enabled'. Only Pods on those
|
|
# namespaces are able to gathering data from the metrics endpoint.
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: supabase-operator
|
|
app.kubernetes.io/managed-by: kustomize
|
|
name: allow-metrics-traffic
|
|
namespace: supabase-system
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
control-plane: controller-manager
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
# This allows ingress traffic from any namespace with the label metrics: enabled
|
|
- from:
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
metrics: enabled # Only from namespaces with this label
|
|
ports:
|
|
- port: 8443
|
|
protocol: TCP
|