diff --git a/chart/templates/logs-persistent-volume-claim.yaml b/chart/templates/logs-persistent-volume-claim.yaml index deeaa2ef97fab..07374c1fd57d2 100644 --- a/chart/templates/logs-persistent-volume-claim.yaml +++ b/chart/templates/logs-persistent-volume-claim.yaml @@ -29,6 +29,10 @@ metadata: {{- with .Values.labels }} {{- toYaml . | nindent 4 }} {{- end }} + {{- with .Values.logs.persistence.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: accessModes: ["ReadWriteMany"] resources: diff --git a/chart/values.schema.json b/chart/values.schema.json index 84aa3e26e68c4..f6adbb2658319 100644 --- a/chart/values.schema.json +++ b/chart/values.schema.json @@ -5475,6 +5475,14 @@ ], "default": null }, + "annotations": { + "description": "Annotations to add to logs PVC", + "type": "object", + "default": {}, + "additionalProperties": { + "type": "string" + } + }, "existingClaim": { "description": "The name of an existing PVC to use.", "type": [ diff --git a/chart/values.yaml b/chart/values.yaml index ff5ddec1e42ab..2ed10c5cfef76 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -1933,6 +1933,8 @@ logs: enabled: false # Volume size for logs size: 100Gi + # Annotations for the logs PVC + annotations: {} # If using a custom storageClass, pass name here storageClassName: ## the name of an existing PVC to use