mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #6740 from you-n-g/master
supplement the way to add a DNS for local kubernetes
This commit is contained in:
commit
10c630aa2a
@ -107,3 +107,6 @@ hack/local-up-cluster.sh
|
||||
#### kubectl claims to start a container but `get pods` and `docker ps` don't show it.
|
||||
|
||||
One or more of the kubernetes daemons might've crashed. Tail the logs of each in /tmp.
|
||||
|
||||
#### The pods fail to connect to the services by host names
|
||||
The local-up-cluster.sh script doesn't start a DNS service. Similar situation can be found [here](https://github.com/GoogleCloudPlatform/kubernetes/issues/6667). You can start a manually. Related documents can be found [here](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/cluster/addons/dns#how-do-i-configure-it)
|
||||
|
@ -182,7 +182,7 @@ For details about limiting traffic to specific sources, see the [GCE firewall do
|
||||
|
||||
### Step Seven: Cleanup
|
||||
|
||||
You should delete the service which will remove any associated resources that were created e.g. load balancers, forwarding rules and target pools. All the resources (pods, replication controllers and service) can be deleted with a single command:
|
||||
You should delete the service which will remove any associated resources that were created e.g. load balancers, forwarding rules and target pools. All the resources (replication controllers and service) can be deleted with a single command:
|
||||
```shell
|
||||
$ cluster/kubectl.sh delete -f examples/guestbook-go
|
||||
current-context: "kubernetes-satnam_kubernetes"
|
||||
@ -194,6 +194,18 @@ redis-master
|
||||
redis-slave-controller
|
||||
redis-slave
|
||||
```
|
||||
|
||||
However, the command will not delete the pods created by the replication controller. You can delete the pods manually.
|
||||
If you want to delete the pods together, you can use the commands below instead.
|
||||
``` shell
|
||||
cluster/kubectl.sh stop -f examples/guestbook-go/guestbook-controller.json
|
||||
cluster/kubectl.sh stop -f examples/guestbook-go/redis-slave-controller.json
|
||||
cluster/kubectl.sh stop -f examples/guestbook-go/redis-master-controller.json
|
||||
cluster/kubectl.sh delete -f examples/guestbook-go/guestbook-service.json
|
||||
cluster/kubectl.sh delete -f examples/guestbook-go/redis-slave-service.json
|
||||
cluster/kubectl.sh delete -f examples/guestbook-go/redis-master-service.json
|
||||
```
|
||||
|
||||
To turn down a Kubernetes cluster:
|
||||
|
||||
```shell
|
||||
|
@ -435,6 +435,7 @@ kubectl stop -f examples/guestbook/redis-slave-controller.json
|
||||
kubectl stop -f examples/guestbook/frontend-controller.json
|
||||
kubectl delete -f examples/guestbook/redis-master-service.json
|
||||
kubectl delete -f examples/guestbook/redis-slave-service.json
|
||||
kubectl delete -f examples/guestbook/frontend-service.json
|
||||
```
|
||||
|
||||
### Troubleshooting
|
||||
|
Loading…
Reference in New Issue
Block a user