networkpolicies.yaml 998 B

1234567891011121314151617181920212223242526272829303132
  1. {{- if and .Values.networkPolicies.enabled .Values.networkPolicies.internal.enabled }}
  2. # Copyright Materialize, Inc. and contributors. All rights reserved.
  3. #
  4. # Use of this software is governed by the Business Source License
  5. # included in the LICENSE file at the root of this repository.
  6. #
  7. # As of the Change Date specified in that file, in accordance with
  8. # the Business Source License, use of this software will be governed
  9. # by the Apache License, Version 2.0.
  10. apiVersion: networking.k8s.io/v1
  11. kind: NetworkPolicy
  12. metadata:
  13. name: egress-to-environmentd
  14. namespace: {{ .Release.Namespace }}
  15. spec:
  16. podSelector:
  17. matchLabels:
  18. {{- include "materialize-operator.selectorLabels" . | nindent 6 }}
  19. egress:
  20. - to:
  21. - podSelector:
  22. matchLabels:
  23. materialize.cloud/app: environmentd
  24. namespaceSelector: {}
  25. ports:
  26. # environmentd external http
  27. - port: 6876
  28. # environmentd internal http
  29. - port: 6878
  30. {{- end }}