networkpolicy.yaml 341 B

123456789101112131415161718
  1. apiVersion: networking.k8s.io/v1
  2. kind: NetworkPolicy
  3. metadata:
  4. name: postgres-access
  5. namespace: {{NAMESPACE}}
  6. spec:
  7. podSelector:
  8. matchLabels:
  9. app: postgres
  10. policyTypes:
  11. - Ingress
  12. ingress:
  13. - from:
  14. - podSelector:
  15. matchLabels:
  16. app: claude-code-hub
  17. ports:
  18. - port: 5432