Comments (5)
Good catch.
We should add the helm resource policy for that:
https://helm.sh/docs/howto/charts_tips_and_tricks/#tell-helm-not-to-uninstall-a-resource
however, if helm creates it, and doesn't delete it, then it becomes orphaned, and may cause issues with the second helm install
.
@jasperkuperus Is there a situation that you would delete and then re-install? or is allowing your PVC to remain after the delete so that you can back it up etc would be sufficient?
from traefik-helm-chart.
I've had situations where I'd do a helm delete
to get a cluster down quickly, or when helm wasn't able to upgrade the cluster. Then a clean slate with a clean install is the solution for me sometimes. It's not so much for backups, I just want the physical disk to stay in place, so I don't loose my certificates.
I have currently solved it by creating my own PVC:
{{ if .Values.global.tls }}
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ .Release.Name }}-lets-encrypt-cert-volume
spec:
storageClassName: ""
capacity:
storage: 10G
accessModes:
- ReadWriteMany
gcePersistentDisk:
pdName: {{ .Release.Name }}-lets-encrypt-cert-volume
fsType: ext4
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Release.Name }}-lets-encrypt-cert-volume-claim
spec:
# It's necessary to specify "" as the storageClassName
# so that the default storage class won't be used, see
# https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1
storageClassName: ""
volumeName: {{ .Release.Name }}-lets-encrypt-cert-volume
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10G
{{ end }}
Removing the kubernetes volume/pvc is not a problem for me. But the actual disk for this volume/pvc is.
from traefik-helm-chart.
I tried the resource policy btw, which did not help me. The solution as described in my previous comment keeps the disk alive, but makes it possible to remove the pvc/volume. I see there's some GCP specific stuff in there. Not sure if we could do without.
from traefik-helm-chart.
Hello @jasperkuperus
Thanks for pointing out that. It is already implemented in #389 by using the specific resource-policy helm.sh/resource-policy: keep
. Saying that in a simple word - uninstalling the chart will not remove the Traefik PVC.
from traefik-helm-chart.
Hello @jasperkuperus
Thanks for pointing out that. It is already implemented in #389 by using the specific resource-policy
helm.sh/resource-policy: keep
. Saying that in a simple word - uninstalling the chart will not remove the Traefik PVC.
That's great! I'm not really in a position to test this out any time soon though. But if that PR covers it, I guess we can close this issue for now.
from traefik-helm-chart.
Related Issues (20)
- Error indexing on bool value HOT 4
- Traefik helm chart upgrade failed - UPGRADE FAILED: template: traefik/templates/service.yaml:27:12 HOT 4
- Not able to upgrade to 28.0.0-rc.1 with status code config value HOT 1
- No obvious option in chart to set encodeQuerySemicolons HOT 2
- Ingressroutes based on old and new CRDs not working in traefik-28.0.0, only regular kubernetes ingress resources are fine HOT 4
- serverstransporttcps.traefik.io not being created by the Helm chart on upgrade to 28.0.0? HOT 17
- Traefik 3.0 no middleware found in the cluster HOT 6
- nodes rbac HOT 3
- Traefik perpetually out of sync in Argo CD due to missing divisor spec for GOMEMLIMIT and GOMAXPROCS HOT 3
- k3s v1.28/Rancher 2.8.3 : chart requires kubeVersion: >=1.22.0-0 which is incompatible with Kubernetes v1.20.0 HOT 7
- Default values doesn't work on Azure due to missing podSecurityContext.fsGroup HOT 3
- podtemplate not passing ports.X.redirectTo.permanent parameter HOT 1
- Default Values on Traefik Proxy dashboard HOT 6
- Problem with persistence with certificates, pod in pending
- plugins not found HOT 2
- rbac secretResourceNames is templated incorrectly as a string HOT 2
- ECS provider don't work with IRSA on EKS Fargate - listing tasks: NoCredentialProviders HOT 1
- Dashboard starts returning 404 after 28.2.0 update HOT 4
- Unable to use additionalServices to setup internal loadbalancer on AKS HOT 5
- Templates have wrong indentation? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from traefik-helm-chart.