diff --git a/charts/redis/Chart.yaml b/charts/redis/Chart.yaml index 457263c8c14a679f5216e9e618564c2aa81c9d7b..0ca1379c4029cc928f2d346472c3b8af883e5f28 100644 --- a/charts/redis/Chart.yaml +++ b/charts/redis/Chart.yaml @@ -8,7 +8,7 @@ maintainers: - name: groundhog2k # This is the chart version -version: "0.7.3" +version: "0.4.18" # This is the version number of the application being deployed. -appVersion: "7.2.1" +appVersion: "6.2.14" diff --git a/charts/redis/README.md b/charts/redis/README.md index ab82db27ab155c359a2313ab6d2d05243b4a225c..a649bead15e55bfbc538357d3141bc8ed18a2c5b 100644 --- a/charts/redis/README.md +++ b/charts/redis/README.md @@ -181,6 +181,16 @@ helm uninstall my-release | storage.className | string | `nil` | Storage class name | | storage.keepPvc | bool | `false` | Keep a created Persistent volume claim when uninstalling the helm chart (only for `useDeploymentWhenNonHA`) | +## Network policies + +Allows to define optional network policies for [ingress and egress](https://kubernetes.io/docs/concepts/services-networking/network-policies/) +The policyTypes will be automatically set + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| networkPolicy.ingress | object | `{}` | Ingress network policies | +| networkPolicy.egress | object | `{}` | Egress network policies | + ## Redis parameters | Key | Type | Default | Description | diff --git a/charts/redis/RELEASENOTES.md b/charts/redis/RELEASENOTES.md index a64486e57e8c51b01f60ca1e108dd152acb6a759..5578896fe66d6e91140f5b16ba715804d1e17d36 100644 --- a/charts/redis/RELEASENOTES.md +++ b/charts/redis/RELEASENOTES.md @@ -10,6 +10,7 @@ | 0.4.15 | 6.2.11 | Added option to use Deployment instead of StatefulSet for Non-HA deployments - thx @tim-hanssen | | 0.4.16 | 6.2.12 | Upgraded to Redis 6.2.12 | | 0.4.17 | 6.2.13 | Upgraded to Redis 6.2.13 | +| 0.4.18 | 6.2.14 | Upgraded to Redis 6.2.14 | | 0.5.0 | 7.0.0 | Upgraded to Redis 7.0.0 | | 0.5.1 | 7.0.1 | Upgraded to Redis 7.0.1 | | 0.5.2 | 7.0.2 | Upgraded to Redis 7.0.2 | diff --git a/charts/redis/templates/networkpolicy.yaml b/charts/redis/templates/networkpolicy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..28ceb540425f701e565fabd9db52a6890bed25a9 --- /dev/null +++ b/charts/redis/templates/networkpolicy.yaml @@ -0,0 +1,25 @@ +{{- with .Values.networkPolicy }} +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: {{ include "redis.fullname" $ }} +spec: + podSelector: + matchLabels: + {{- include "redis.selectorLabels" $ | nindent 6 }} + policyTypes: + {{- if .ingress }} + - Ingress + {{- end }} + {{- if .egress }} + - Egress + {{- end }} + {{- with .ingress }} + ingress: + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .egress }} + egress: + {{- toYaml . | nindent 4 }} + {{- end }} +{{- end }}