mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/traefik] allow use of existing pvc (#3930)
This commit is contained in:
committed by
k8s-ci-robot
parent
e584d6c9e0
commit
e21808e017
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: traefik
|
||||
version: 1.23.0
|
||||
version: 1.24.0
|
||||
appVersion: 1.5.2
|
||||
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
|
||||
keywords:
|
||||
|
||||
@@ -117,6 +117,7 @@ The following tables lists the configurable parameters of the Traefik chart and
|
||||
| `acme.persistence.enabled` | Create a volume to store ACME certs (if ACME is enabled) | `true` |
|
||||
| `acme.persistence.storageClass` | Type of `StorageClass` to request-- will be cluster-specific | `nil` (uses alpha storage class annotation) |
|
||||
| `acme.persistence.accessMode` | `ReadWriteOnce` or `ReadOnly` | `ReadWriteOnce` |
|
||||
| `acme.persistence.existingClaim`| An Existing PVC name | `nil` |
|
||||
| `acme.persistence.size` | Minimum size of the volume requested | `1Gi` |
|
||||
| `dashboard.enabled` | Whether to enable the Traefik dashboard | `false` |
|
||||
| `dashboard.domain` | Domain for the Traefik dashboard | `traefik.example.com` |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{- if and .Values.acme.enabled .Values.acme.persistence.enabled }}
|
||||
{{- if and .Values.acme.enabled .Values.acme.persistence.enabled (not .Values.acme.persistence.existingClaim) }}
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
|
||||
@@ -129,7 +129,7 @@ spec:
|
||||
- name: acme
|
||||
{{- if .Values.acme.persistence.enabled }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ template "traefik.fullname" . }}-acme
|
||||
claimName: {{ .Values.acme.persistence.existingClaim | default (printf "%s-acme" (include "traefik.fullname" .)) }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
|
||||
@@ -136,6 +136,11 @@ acme:
|
||||
# storageClass: "-"
|
||||
accessMode: ReadWriteOnce
|
||||
size: 1Gi
|
||||
## A manually managed Persistent Volume Claim
|
||||
## Requires persistence.enabled: true
|
||||
## If defined, PVC must be created manually before volume will be bound
|
||||
##
|
||||
# existingClaim:
|
||||
dashboard:
|
||||
enabled: false
|
||||
domain: traefik.example.com
|
||||
|
||||
Reference in New Issue
Block a user