-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from RasaHQ/add_extra_network_policies
Add network policy for the rabbitmq_peer_discovery_k8s plugin
- Loading branch information
Showing
2 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
charts/rasa/templates/network-policy/rabbitmq-https-kubernetes-api.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if and .Values.networkPolicy.enabled .Values.rabbitmq.install }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: {{ include "rasa-common.names.fullname" . }}-rabbitmq-https-kubernetes-api | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/name: rabbitmq | ||
policyTypes: | ||
- Egress | ||
egress: | ||
- ports: | ||
- protocol: TCP | ||
port: 8443 | ||
- protocol: TCP | ||
port: 443 | ||
--- | ||
{{- end }} |