mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
minor docs/error msg cleanup
This commit is contained in:
parent
aa3ac324bc
commit
f9bbddf892
@ -115,7 +115,7 @@ for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
|
|||||||
# Make sure docker is installed
|
# Make sure docker is installed
|
||||||
ssh -i $AZ_SSH_KEY -p ${ssh_ports[$i]} $AZ_CS.cloudapp.net which docker > /dev/null
|
ssh -i $AZ_SSH_KEY -p ${ssh_ports[$i]} $AZ_CS.cloudapp.net which docker > /dev/null
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "Docker failed to install on ${MINION_NAMES[$i]} your cluster is unlikely to work correctly"
|
echo "Docker failed to install on ${MINION_NAMES[$i]}. Your cluster is unlikely to work correctly."
|
||||||
echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
|
echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -123,7 +123,7 @@ for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
|
|||||||
# Make sure the kubelet is running
|
# Make sure the kubelet is running
|
||||||
ssh -i $AZ_SSH_KEY -p ${ssh_ports[$i]} $AZ_CS.cloudapp.net /etc/init.d/kubelet status
|
ssh -i $AZ_SSH_KEY -p ${ssh_ports[$i]} $AZ_CS.cloudapp.net /etc/init.d/kubelet status
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "Kubelet failed to install on ${MINION_NAMES[$i]} your cluster is unlikely to work correctly"
|
echo "Kubelet failed to install on ${MINION_NAMES[$i]}. Your cluster is unlikely to work correctly."
|
||||||
echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
|
echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -230,14 +230,14 @@ function kube-up {
|
|||||||
# Make sure docker is installed
|
# Make sure docker is installed
|
||||||
gcutil ssh ${MINION_NAMES[$i]} which docker > /dev/null
|
gcutil ssh ${MINION_NAMES[$i]} which docker > /dev/null
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "Docker failed to install on ${MINION_NAMES[$i]} your cluster is unlikely to work correctly"
|
echo "Docker failed to install on ${MINION_NAMES[$i]}. Your cluster is unlikely to work correctly."
|
||||||
echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
|
echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure the kubelet is healthy
|
# Make sure the kubelet is healthy
|
||||||
if [ "$(curl --insecure --user ${user}:${passwd} https://${KUBE_MASTER_IP}/proxy/minion/${MINION_NAMES[$i]}/healthz)" != "ok" ]; then
|
if [ "$(curl --insecure --user ${user}:${passwd} https://${KUBE_MASTER_IP}/proxy/minion/${MINION_NAMES[$i]}/healthz)" != "ok" ]; then
|
||||||
echo "Kubelet failed to install on ${MINION_NAMES[$i]} your cluster is unlikely to work correctly"
|
echo "Kubelet failed to install on ${MINION_NAMES[$i]}. Your cluster is unlikely to work correctly."
|
||||||
echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
|
echo "Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
@ -55,7 +55,8 @@ cluster/kubecfg.sh rm myNginx
|
|||||||
### Running a container (more complete version)
|
### Running a container (more complete version)
|
||||||
|
|
||||||
|
|
||||||
Assuming you've run `hack/dev-build-and-up.sh` and `hack/build-go.sh`:
|
Assuming you've run `hack/dev-build-and-up.sh` and `hack/build-go.sh`, you
|
||||||
|
can create a pod like this:
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -99,6 +100,18 @@ Where pod.json contains something like:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can see your cluster's pods:
|
||||||
|
|
||||||
|
```
|
||||||
|
cluster/kubecfg.sh list pods
|
||||||
|
```
|
||||||
|
|
||||||
|
and delete the pod you just created:
|
||||||
|
|
||||||
|
```
|
||||||
|
cluster/kubecfg.sh delete pods/php
|
||||||
|
```
|
||||||
|
|
||||||
Look in `api/examples/` for more examples
|
Look in `api/examples/` for more examples
|
||||||
|
|
||||||
### Tearing down the cluster
|
### Tearing down the cluster
|
||||||
|
@ -132,6 +132,7 @@ hack/e2e-test.sh
|
|||||||
|
|
||||||
If this is your first time creating the cluster, the kubelet on each minion schedules a number of docker pull requests to fetch prerequisite images. This can take some time and as a result may delay your initial pod getting provisioned.
|
If this is your first time creating the cluster, the kubelet on each minion schedules a number of docker pull requests to fetch prerequisite images. This can take some time and as a result may delay your initial pod getting provisioned.
|
||||||
|
|
||||||
#### I changed Kubernetes code, but its not running!
|
#### I changed Kubernetes code, but it's not running!
|
||||||
|
|
||||||
Are you sure there was no build error? After running $ vagrant provision, scroll up and ensure that each Salt state was completed successfully on each box in the cluster. Its very likely you see a build error due to an error in your source files!
|
Are you sure there was no build error? After running $ vagrant provision, scroll up and ensure that each Salt state was completed successfully on each box in the cluster.
|
||||||
|
It's very likely you see a build error due to an error in your source files!
|
||||||
|
Loading…
Reference in New Issue
Block a user