In my minikube I'm getting an error persistentvolumeclaim "jenkins-volume-claim" not found
I'm installing jenkins using helm with the command below:
helm install --name jenkins -f kubernetes/jenkins-values.yaml stable/jenkins --namespace jenkins-system
the snippet about Persistence
in jenkins-values.yaml
is below:
Persistence:
Enabled: true
## A manually managed Persistent Volume and Claim
## Requires Persistence.Enabled: true
## If defined, PVC must be created manually before volume will be bound
ExistingClaim: jenkins-volume-claim
I've created a persistence volume using the command below:
kubectl create -f persistence.yaml
persistence.yaml looks like this:
apiVersion: v1
kind: PersistentVolume
metadata:
name: jenkins-volume
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 5Gi
hostPath:
path: /data/jenkins-volume/
Question
I have persistence volume jenkins-volume
created but am still getting error persistentvolumeclaim "jenkins-volume-claim" not found
. How can I resolve this?