Skip to content

Commit

Permalink
add option to disallow moodle egress, so testing for RZ is easier
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikBadenhop committed Nov 11, 2024
1 parent 2c5236b commit bd53a0d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ if .Values.dbpMoodle.allowInternalNetworkingOnly }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: moodle-allow-internal-only
namespace: "{{ .Release.Namespace }}"
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: moodle
policyTypes:
- Egress
egress:
- to:
- namespaceSelector: {}
{{ end }}
3 changes: 3 additions & 0 deletions charts/dbp-moodle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ dbpMoodle:
update_migration:
enabled: false

# -- disallows all egress from the namespace for the moodle deployment
allowInternalNetworkingOnly: false

# -- Configurations for the optional redis
redis:
host: "moodle-redis-master"
Expand Down

0 comments on commit bd53a0d

Please sign in to comment.