Skip to content

Commit

Permalink
Merge pull request #27 from RasaHQ/add_extra_network_policies
Browse files Browse the repository at this point in the history
Add network policy for the rabbitmq_peer_discovery_k8s plugin
  • Loading branch information
Tomasz Czekajlo authored Jul 12, 2021
2 parents 7cc3c9d + 5af2324 commit cfe3a90
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
7 changes: 3 additions & 4 deletions charts/rasa/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.2.4
version: 1.2.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down Expand Up @@ -72,6 +72,5 @@ dependencies:
annotations:
# See: https://artifacthub.io/docs/topics/annotations/helm/#supported-annotations
artifacthub.io/changes: |
- kind: security
description: Bump NGINX image to 1.20
artifacthub.io/containsSecurityUpdates: "true"
- kind: added
description: Add network policy for the rabbitmq_peer_discovery_k8s plugin
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 }}

0 comments on commit cfe3a90

Please sign in to comment.