Fixing volume entry definitions

* According to
   http://kubernetes.io/docs/user-guide/volumes/#types-of-volumes
   and
   a1b5325011
   there is hostPath volume type instead of hostDir;
   And there is no 'source' keyword anymore.

 * Replacing 'kubectl update' on 'kubectl replace':
   kubectl update is deprecated, need to use 'replace':
   9b3d42c090

Closes-Bug: #1604766

Change-Id: I1029caeb2827fc9de271b457c7a61b043d0189cb
This commit is contained in:
Nikolay Mahotkin
2016-08-22 13:50:42 +03:00
parent 24c4a2d443
commit 5c680111b6
10 changed files with 15 additions and 14 deletions

View File

@@ -15,5 +15,5 @@ if [ "$1" == "True" ]; then
/opt/bin/kubectl create -f "${fileName}" >> /tmp/murano-kube.log
else
echo "Updating a Pod" >> /tmp/murano-kube.log
/opt/bin/kubectl update -f "${fileName}" >> /tmp/murano-kube.log
/opt/bin/kubectl replace -f "${fileName}" >> /tmp/murano-kube.log
fi