diff options
author | 2018-02-06 20:05:15 -0500 | |
---|---|---|
committer | 2018-02-06 20:05:15 -0500 | |
commit | e312dcd153972949b8139dde32229ff78f583786 (patch) | |
tree | e2384751d92790e994557c9602cc5f6be42af0da | |
parent | 13a6995bb14329f2f372f86a9a9123f432c9ba9c (diff) |
Fix anteater issue with use of /tmp
JIRA: MODELS-2
Change-Id: Ie96ec74d5d121392f4e20b9cf9fdfffb6cd7be28
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
-rw-r--r-- | tools/kubernetes/ceph-baremetal.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/kubernetes/ceph-baremetal.sh b/tools/kubernetes/ceph-baremetal.sh index 06a6926..79edd01 100644 --- a/tools/kubernetes/ceph-baremetal.sh +++ b/tools/kubernetes/ceph-baremetal.sh @@ -133,7 +133,7 @@ EOF kubectl create secret generic ceph-secret-admin --from-literal=key="$admin_key" --namespace=kube-system --type=kubernetes.io/rbd log "Create rdb storageClass 'general'" - cat <<EOF >/tmp/ceph-sc.yaml + cat <<EOF >~/tmp/ceph-sc.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: @@ -150,7 +150,7 @@ parameters: EOF # TODO: find out where in the above ~/.kube folders became owned by root sudo chown -R ubuntu:ubuntu ~/.kube/* - kubectl create -f /tmp/ceph-sc.yaml + kubectl create -f ~/tmp/ceph-sc.yaml log "Create storage pool 'kube'" # https://github.com/kubernetes/examples/blob/master/staging/persistent-volume-provisioning/README.md method @@ -167,7 +167,7 @@ EOF # Per https://github.com/kubernetes/examples/blob/master/staging/persistent-volume-provisioning/README.md log "Create andtest a persistentVolumeClaim" - cat <<EOF >/tmp/ceph-pvc.yaml + cat <<EOF >~/tmp/ceph-pvc.yaml { "kind": "PersistentVolumeClaim", "apiVersion": "v1", @@ -189,7 +189,7 @@ EOF } } EOF - kubectl create -f /tmp/ceph-pvc.yaml + kubectl create -f ~/tmp/ceph-pvc.yaml while [[ "x$(kubectl get pvc -o jsonpath='{.status.phase}' claim1)" != "xBound" ]]; do log "Waiting for pvc claim1 to be 'Bound'" kubectl describe pvc |