Implementing standalone etcd for openshift

This commit is contained in:
Steve Kuznetsov
2015-06-10 16:07:47 -04:00
committed by Steve Kuznetsov
parent 5b216d8a51
commit ea3998e981
13 changed files with 392 additions and 47 deletions

View File

@@ -15,11 +15,29 @@
# limitations under the License.
# Cleans up resources from the example, assumed to be run from Kubernetes repo root
echo
echo
export OPENSHIFT_EXAMPLE=$(pwd)/examples/openshift-origin
export OPENSHIFT_CONFIG=${OPENSHIFT_EXAMPLE}/config
rm -fr ${OPENSHIFT_CONFIG}
cluster/kubectl.sh delete secrets openshift-config
cluster/kubectl.sh stop rc openshift
cluster/kubectl.sh delete rc openshift
cluster/kubectl.sh delete services openshift
echo "===> Removing the OpenShift namespace:"
kubectl delete namespace openshift-origin
echo
echo "===> Removing local files:"
rm -rf ${OPENSHIFT_CONFIG}
rm ${OPENSHIFT_EXAMPLE}/openshift-startup.log
rm ${OPENSHIFT_EXAMPLE}/secret.json
touch ${OPENSHIFT_EXAMPLE}/secret.json
echo
echo "===> Restoring changed YAML specifcations:"
if [ -f "${OPENSHIFT_EXAMPLE}/etcd-controller.yaml.bak" ]; then
rm ${OPENSHIFT_EXAMPLE}/etcd-controller.yaml
mv -v ${OPENSHIFT_EXAMPLE}/etcd-controller.yaml.bak ${OPENSHIFT_EXAMPLE}/etcd-controller.yaml
else
echo "No changed specifications found."
fi
echo
echo Done.