Open HaleyACS opened 2 years ago
I think that could be related to your version of kubernetes (1.20) which doesn't support internalTrafficPolicy
yet (https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/)
Let me see if that can be disabled in redis chart.
There is normally a check in the chart to see if it's supported: https://github.com/bitnami/charts/blob/main/bitnami/redis/templates/master/service.yaml#L26-L28
How do you deploy the chart?
I dump all helm charts to files, and apply these in kubernetes. Script runs like this - first update git repo, the helm charts (so if I do the helm-only test it is at the same level). Then I extract all yaml files out of the current chart and apply them.
devadm@mailu-dev:~/k3s/mailu-dev/helm-charts-1$ ./helm2yaml.sh
Pulling master
Already up to date.
tags/mailu-1.0.0-beta.23
* Using Helm version:
version.BuildInfo{Version:"v3.10.2", GitCommit:"50f003e5ee8704ec937a756c646870227d7c8b58", GitTreeState:"clean", GoVersion:"go1.18.8"}
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "ingress-nginx" chart repository
...Successfully got an update from the "mailu" chart repository
...Successfully got an update from the "jetstack" chart repository
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈Happy Helming!⎈
* Rendering helm chart to yaml
install.go:192: [debug] Original chart version: "1.0.0-beta.23"
install.go:209: [debug] CHART PATH: /home/devadm/k3s/mailu-dev/helm-charts-1/mailu
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/mariadb/templates/serviceaccount.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/redis/templates/serviceaccount.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/mariadb/templates/secrets.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/roundcube/secret.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/secret-initial-account.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/secret-key-secret.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/secrets-tls.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/mariadb/templates/primary/configmap.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/mariadb/templates/primary/initialization-configmap.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/redis/templates/configmap.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/redis/templates/health-configmap.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/redis/templates/scripts-configmap.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/mariadb/templates/primary/svc.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/redis/templates/headless-svc.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/redis/templates/master/service.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/admin/service.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/clamav/service-headless.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/clamav/service.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/dovecot/service.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/front/service.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/postfix/service.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/roundcube/service.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/rspamd/service.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/admin/deployment.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/dovecot/deployment.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/front/deployment.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/postfix/deployment.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/roundcube/deployment.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/rspamd/deployment.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/mariadb/templates/primary/statefulset.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/charts/redis/templates/master/application.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/clamav/statefulset.yaml
wrote /home/devadm/k3s/mailu-dev/helm-charts-1/solsys-1.0.0-beta.23/mailu/mailu/templates/front/ingress.yaml
The Redis chart is checking for capabilities based on k8s version when doing helm install directly, maybe the way you do it doesn't return the correct kubernetes version and thus includes features that aren't supported by your k8s version?
Could you try directly to do a helm install
instead of generating and then applying (to see if the same error occurs)?
Describe the bug When redis service is to be created, the headless one comes up, the master does not. Error message comes and service is not created. Removing the
Environment k3s on ubuntu server 22.04.
Additional context
Removing the internalTrafficPolicy makes the svc go through.