Skip to content

Commit

Permalink
fix: allow communication with internet when orchestrator is remote (#913
Browse files Browse the repository at this point in the history
)

* fix: allow communication with internet when orchestrator is remote

Signed-off-by: Guilhem Barthés <[email protected]>

* doc: bump chart version

Signed-off-by: Guilhem Barthés <[email protected]>

* fix: indentation

Signed-off-by: Guilhem Barthés <[email protected]>

* fix: chart version in changelog

Signed-off-by: Guilhem Barthés <[email protected]>

---------

Signed-off-by: Guilhem Barthés <[email protected]>
  • Loading branch information
guilhem-barthes authored May 27, 2024
1 parent 2315d1f commit f352d30
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions charts/substra-backend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog

<!-- towncrier release notes start -->
## [26.6.3] - 2024-05-27

### Changed

- Allow pods with label `role-orchestrator-client` to communicate with internet when orchestrator is remote (#913)

## [26.6.2] - 2024-05-24

Expand Down
2 changes: 1 addition & 1 deletion charts/substra-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: substra-backend
home: https://github.com/Substra
version: 26.6.2
version: 26.6.3
appVersion: 0.45.0
kubeVersion: ">= 1.19.0-0"
description: Main package for Substra
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.orchestrator.sameCluster }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
Expand All @@ -11,13 +10,22 @@ spec:
- Egress
egress:
- to:
{{- if .Values.orchestrator.sameCluster }}
- ipBlock:
cidr: 10.0.0.0/8
- ipBlock:
cidr: 192.168.0.0/16
- ipBlock:
cidr: 172.16.0.0/20
{{- else }}
- ipBlock:
cidr: 0.0.0.0/0
except:
- 10.0.0.0/8
- 192.168.0.0/16
- 172.16.0.0/20
{{- end -}}
ports:
- protocol: TCP
port: {{ .Values.orchestrator.port }}
{{- end -}}

0 comments on commit f352d30

Please sign in to comment.