Skip to content

Commit

Permalink
fix: networkpolicy allow gcp to ingress k8s pull (#916)
Browse files Browse the repository at this point in the history
* fix: allow more resources to access to the local registry as it's necessary on cloud providers

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* doc: bump chart version

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

* fix: PR number in changelog

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>

---------

Signed-off-by: Guilhem Barthés <guilhem.barthes@owkin.com>
  • Loading branch information
guilhem-barthes committed May 29, 2024
1 parent 8f2f412 commit ba79d62
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions charts/substra-backend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

<!-- towncrier release notes start -->
## [26.6.5] - 2024-05-29

### Fixed

- Open ingress for `docker-registry` when `containerRegistry.local` is `true` as it it is necessary on some infrastructure (#916)

## [26.6.4] - 2024-05-27

### Fixed
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.4
version: 26.6.5
appVersion: 0.45.0
kubeVersion: ">= 1.19.0-0"
description: Main package for Substra
Expand Down
5 changes: 3 additions & 2 deletions charts/substra-backend/templates/networkpolicy-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ spec:
app.kubernetes.io/part-of: {{ template "substra.name" . }}
role-registry-client: 'true'
# kaniko-function-xx send requests through the service, which changes the IP address calling the registry, preventing
# to connect as the connection doesn't come directly from the pod
# to connect as the connection doesn't come directly from the pod. Cloud provider also uses IPs whiwh are not part
# of the cluster to pull images
- ipBlock:
cidr: 10.0.0.0/8
cidr: 0.0.0.0/0
ports:
- protocol: TCP
port: {{ .Values.containerRegistry.port }}
Expand Down

0 comments on commit ba79d62

Please sign in to comment.