mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #4559 from roberthbailey/update-sh-readme
Cleanups to the live update example
This commit is contained in:
commit
64d2dc772d
@ -25,7 +25,7 @@ echo " http://localhost:8001/static/"
|
||||
echo
|
||||
|
||||
export KUBE_ROOT=$(dirname $0)/../..
|
||||
export KUBECTL=${KUBE_REPO_ROOT}/cluster/kubectl.sh
|
||||
export KUBECTL=${KUBE_ROOT}/cluster/kubectl.sh
|
||||
|
||||
set -x
|
||||
|
||||
|
@ -23,11 +23,11 @@ if [[ "${DOCKER_HUB_USER+set}" != "set" ]] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export KUBE_REPO_ROOT=${KUBE_REPO_ROOT-$(dirname $0)/../..}
|
||||
export KUBECTL=${KUBE_REPO_ROOT}/cluster/kubectl.sh
|
||||
export KUBE_ROOT=${KUBE_ROOT-$(dirname $0)/../..}
|
||||
export KUBECTL=${KUBE_ROOT}/cluster/kubectl.sh
|
||||
|
||||
set -x
|
||||
|
||||
SCHEMA=${KUBE_REPO_ROOT}/examples/update-demo/nautilus-rc.yaml
|
||||
SCHEMA=${KUBE_ROOT}/examples/update-demo/nautilus-rc.yaml
|
||||
|
||||
cat ${SCHEMA} | sed "s/DOCKER_HUB_USER/${DOCKER_HUB_USER}/" | ${KUBECTL} create -f -
|
||||
|
@ -20,8 +20,8 @@ set -o pipefail
|
||||
|
||||
NEW_SIZE=${1:-4}
|
||||
|
||||
export KUBE_REPO_ROOT=${KUBE_REPO_ROOT-$(dirname $0)/../..}
|
||||
export KUBECTL=${KUBECTL-$KUBE_REPO_ROOT/cluster/kubectl.sh}
|
||||
export KUBE_ROOT=${KUBE_ROOT-$(dirname $0)/../..}
|
||||
export KUBECTL=${KUBECTL-$KUBE_ROOT/cluster/kubectl.sh}
|
||||
|
||||
set -x
|
||||
|
||||
|
@ -38,7 +38,7 @@ You may need to open the firewall for port 8080 using the [console][cloud-consol
|
||||
```bash
|
||||
$ gcloud compute firewall-rules create \
|
||||
--allow tcp:8080 --target-tags=kubernetes-minion \
|
||||
--zone=us-central1-a kubernetes-minion-8080
|
||||
kubernetes-minion-8080
|
||||
```
|
||||
|
||||
### Step Zero: Build the Docker images
|
||||
|
Loading…
Reference in New Issue
Block a user