Skip to content
Snippets Groups Projects
Commit 1e80f537 authored by Julien Leduc's avatar Julien Leduc
Browse files

Adding selectors in persistent volume claim as we are now using kubernetes...

Adding selectors in persistent volume claim as we are now using kubernetes >1.3 and we need to manage more resources with pv than before (logs issue, others?)
parent e1cf5819
Branches
Tags
No related merge requests found
......@@ -105,7 +105,7 @@ kubectl create -f ${config_database} --namespace=${instance}
echo -n "Requesting an unused MHVTL library"
kubectl create -f /opt/kubernetes/CTA/library/library_claim.yaml --namespace=${instance}
kubectl create -f ./pvc_library_mhvtl.yaml --namespace=${instance}
for ((i=0; i<120; i++)); do
echo -n "."
kubectl get persistentvolumeclaim claimlibrary --namespace=${instance} | grep -q Bound && break
......
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: claimlibrary
annotations:
volume.beta.kubernetes.io/storage-class: "librarydevice"
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Mi
selector:
matchLabels:
config: library
type: mhvtl
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment