From cff22f58290b4994e833e62e2db9cef4879c70e0 Mon Sep 17 00:00:00 2001 From: Lion-Wei Date: Wed, 16 Aug 2017 10:19:58 +0800 Subject: [PATCH 01/31] modify link of 'Configure Default Memory Requests and Limits for a Namespace' --- docs/tasks/administer-cluster/cpu-constraint-namespace.md | 2 +- docs/tasks/administer-cluster/cpu-default-namespace.md | 2 +- docs/tasks/administer-cluster/memory-constraint-namespace.md | 2 +- docs/tasks/administer-cluster/quota-api-object.md | 2 +- docs/tasks/administer-cluster/quota-memory-cpu-namespace.md | 2 +- docs/tasks/administer-cluster/quota-pod-namespace.md | 2 +- docs/tasks/configure-pod-container/assign-cpu-resource.md | 2 +- docs/tasks/configure-pod-container/quality-service-pod.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/tasks/administer-cluster/cpu-constraint-namespace.md b/docs/tasks/administer-cluster/cpu-constraint-namespace.md index 047a140227..7fc4f68417 100644 --- a/docs/tasks/administer-cluster/cpu-constraint-namespace.md +++ b/docs/tasks/administer-cluster/cpu-constraint-namespace.md @@ -241,7 +241,7 @@ kubectl delete namespace constraints-cpu-example ### For cluster administrators -* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-memory-request-limit/) +* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/memory-default-namespace/) * [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-cpu-request-limit/) diff --git a/docs/tasks/administer-cluster/cpu-default-namespace.md b/docs/tasks/administer-cluster/cpu-default-namespace.md index d0c7e9cf8c..eab8e81b6e 100644 --- a/docs/tasks/administer-cluster/cpu-default-namespace.md +++ b/docs/tasks/administer-cluster/cpu-default-namespace.md @@ -153,7 +153,7 @@ it can be allowed to run in a namespace that is restricted by a quota. ### For cluster administrators -* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-memory-request-limit/) +* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/memory-default-namespace/) * [Configure Minimum and Maximum Memory Constraints for a Namespace](/docs/tasks/administer-cluster/memory-constraint-namespace/) diff --git a/docs/tasks/administer-cluster/memory-constraint-namespace.md b/docs/tasks/administer-cluster/memory-constraint-namespace.md index 821d1ac5e8..db5ed8296b 100644 --- a/docs/tasks/administer-cluster/memory-constraint-namespace.md +++ b/docs/tasks/administer-cluster/memory-constraint-namespace.md @@ -243,7 +243,7 @@ kubectl delete namespace constraints-mem-example ### For cluster administrators -* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-memory-request-limit/) +* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/memory-default-namespace/) * [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-cpu-request-limit/) diff --git a/docs/tasks/administer-cluster/quota-api-object.md b/docs/tasks/administer-cluster/quota-api-object.md index a9cbaf0b31..0518f97f1d 100644 --- a/docs/tasks/administer-cluster/quota-api-object.md +++ b/docs/tasks/administer-cluster/quota-api-object.md @@ -145,7 +145,7 @@ kubectl delete namespace quota-object-example ### For cluster administrators -* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-memory-request-limit/) +* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/memory-default-namespace/) * [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-cpu-request-limit/) diff --git a/docs/tasks/administer-cluster/quota-memory-cpu-namespace.md b/docs/tasks/administer-cluster/quota-memory-cpu-namespace.md index 95b757aa56..afe659d3c7 100644 --- a/docs/tasks/administer-cluster/quota-memory-cpu-namespace.md +++ b/docs/tasks/administer-cluster/quota-memory-cpu-namespace.md @@ -150,7 +150,7 @@ kubectl delete namespace quota-mem-cpu-example ### For cluster administrators -* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-memory-request-limit/) +* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/memory-default-namespace/) * [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-cpu-request-limit/) diff --git a/docs/tasks/administer-cluster/quota-pod-namespace.md b/docs/tasks/administer-cluster/quota-pod-namespace.md index cbbdb4bcb6..119c8f0516 100644 --- a/docs/tasks/administer-cluster/quota-pod-namespace.md +++ b/docs/tasks/administer-cluster/quota-pod-namespace.md @@ -111,7 +111,7 @@ kubectl delete namespace quota-pod-example ### For cluster administrators -* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-memory-request-limit/) +* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/memory-default-namespace/) * [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-cpu-request-limit/) diff --git a/docs/tasks/configure-pod-container/assign-cpu-resource.md b/docs/tasks/configure-pod-container/assign-cpu-resource.md index 76298b2859..6988d5d529 100644 --- a/docs/tasks/configure-pod-container/assign-cpu-resource.md +++ b/docs/tasks/configure-pod-container/assign-cpu-resource.md @@ -253,7 +253,7 @@ kubectl delete namespace cpu-example ### For cluster administrators -* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-memory-request-limit/) +* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/memory-default-namespace/) * [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-cpu-request-limit/) diff --git a/docs/tasks/configure-pod-container/quality-service-pod.md b/docs/tasks/configure-pod-container/quality-service-pod.md index ee0065af4b..60e1d3fb42 100644 --- a/docs/tasks/configure-pod-container/quality-service-pod.md +++ b/docs/tasks/configure-pod-container/quality-service-pod.md @@ -244,7 +244,7 @@ kubectl delete namespace qos-example ### For cluster administrators -* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-memory-request-limit/) +* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/memory-default-namespace/) * [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/default-cpu-request-limit/) From f90bca6e09bdd53b935247dfdad1f1811ac9ff44 Mon Sep 17 00:00:00 2001 From: linweibin Date: Thu, 17 Aug 2017 20:05:03 +0800 Subject: [PATCH 02/31] Fix typos docs/admin/kube-apiserver.md, Line112: "recieving" --> "receiving" docs/getting-started-guides/vsphere.md: add "." and "does" --> "do" --- docs/admin/kube-apiserver.md | 2 +- docs/getting-started-guides/vsphere.md | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/admin/kube-apiserver.md b/docs/admin/kube-apiserver.md index d77b83a22d..abed8eec95 100644 --- a/docs/admin/kube-apiserver.md +++ b/docs/admin/kube-apiserver.md @@ -109,7 +109,7 @@ TaintBasedEvictions=true|false (ALPHA - default=false) --oidc-issuer-url string The URL of the OpenID issuer, only HTTPS scheme will be accepted. If set, it will be used to verify the OIDC JSON Web Token (JWT). --oidc-username-claim string The OpenID claim to use as the user name. Note that claims other than the default ('sub') is not guaranteed to be unique and immutable. This flag is experimental, please see the authentication documentation for further details. (default "sub") --profiling Enable profiling via web interface host:port/debug/pprof/ (default true) - --proxy-client-cert-file string Client certificate used to prove the identity of the aggregator or kube-apiserver when it must call out during a request. This includes proxying requests to a user api-server and calling out to webhook admission plugins. It is expected that this cert includes a signature from the CA in the --requestheader-client-ca-file flag. That CA is published in the 'extension-apiserver-authentication' configmap in the kube-system namespace. Components recieving calls from kube-aggregator should use that CA to perform their half of the mutual TLS verification. + --proxy-client-cert-file string Client certificate used to prove the identity of the aggregator or kube-apiserver when it must call out during a request. This includes proxying requests to a user api-server and calling out to webhook admission plugins. It is expected that this cert includes a signature from the CA in the --requestheader-client-ca-file flag. That CA is published in the 'extension-apiserver-authentication' configmap in the kube-system namespace. Components receiving calls from kube-aggregator should use that CA to perform their half of the mutual TLS verification. --proxy-client-key-file string Private key for the client certificate used to prove the identity of the aggregator or kube-apiserver when it must call out during a request. This includes proxying requests to a user api-server and calling out to webhook admission plugins. --repair-malformed-updates If true, server will do its best to fix the update request to pass the validation, e.g., setting empty UID in update request to its existing value. This flag can be turned off after we fix all the clients that send malformed updates. (default true) --requestheader-allowed-names stringSlice List of client certificate common names to allow to provide usernames in headers specified by --requestheader-username-headers. If empty, any client certificate validated by the authorities in --requestheader-client-ca-file is allowed. diff --git a/docs/getting-started-guides/vsphere.md b/docs/getting-started-guides/vsphere.md index ac25020a55..6ee0df9d8f 100644 --- a/docs/getting-started-guides/vsphere.md +++ b/docs/getting-started-guides/vsphere.md @@ -20,7 +20,7 @@ This page also describes how to configure and get started with the cloud provide To start using Kubernetes on top of vSphere and use the vSphere Cloud Provider use Kubernetes-Anywhere. Kubernetes-Anywhere will deploy and configure a cluster from scratch. -Detailed steps can be found at the [getting started with Kubernetes-Anywhere on vSphere](https://git.k8s.io/kubernetes-anywhere/phase1/vsphere/README.md) page +Detailed steps can be found at the [getting started with Kubernetes-Anywhere on vSphere](https://git.k8s.io/kubernetes-anywhere/phase1/vsphere/README.md) page. ### vSphere Cloud Provider @@ -31,9 +31,9 @@ vSphere Cloud Provider allows using vSphere managed storage within Kubernetes. I 3. Storage Classes and provisioning of volumes. 4. vSphere Storage Policy Based Management for Containers orchestrated by Kubernetes. -Documentation for how to use vSphere managed storage can be found in the [persistent volumes user guide](/docs/concepts/storage/persistent-volumes/#vsphere) and the [volumes user guide](/docs/concepts/storage/volumes/#vspherevolume) +Documentation for how to use vSphere managed storage can be found in the [persistent volumes user guide](/docs/concepts/storage/persistent-volumes/#vsphere) and the [volumes user guide](/docs/concepts/storage/volumes/#vspherevolume). -Examples can be found [here](https://git.k8s.io/kubernetes/examples/volumes/vsphere) +Examples can be found [here](https://git.k8s.io/kubernetes/examples/volumes/vsphere). #### Enable vSphere Cloud Provider @@ -41,15 +41,15 @@ If a Kubernetes cluster has not been deployed using Kubernetes-Anywhere, follow **Step-1** [Create a VM folder](https://docs.vmware.com/en/VMware-vSphere/6.0/com.vmware.vsphere.vcenterhost.doc/GUID-031BDB12-D3B2-4E2D-80E6-604F304B4D0C.html) and move Kubernetes Node VMs to this folder. -**Step-2** Make sure Node VM names must comply with the regex `[a-z](([-0-9a-z]+)?[0-9a-z])?(\.[a-z0-9](([-0-9a-z]+)?[0-9a-z])?)*` If Node VMs does not comply with this regex, rename them and make it compliant to this regex. +**Step-2** Make sure Node VM names must comply with the regex `[a-z](([-0-9a-z]+)?[0-9a-z])?(\.[a-z0-9](([-0-9a-z]+)?[0-9a-z])?)*`. If Node VMs do not comply with this regex, rename them and make it compliant to this regex. Node VM names constraints: * VM names can not begin with numbers. * VM names can not have capital letters, any special characters except `.` and `-`. - * VM names can not be shorter than 3 chars and longer than 63 + * VM names can not be shorter than 3 chars and longer than 63. -**Step-3** Enable disk UUID on Node virtual machines +**Step-3** Enable disk UUID on Node virtual machines. The disk.EnableUUID parameter must be set to "TRUE" for each Node VM. This step is necessary so that the VMDK always presents a consistent UUID to the VM, thus allowing the disk to be mounted properly. @@ -114,7 +114,7 @@ vSphere Cloud Provider requires the following minimal set of privileges to inter -**Step-5** Create the vSphere cloud config file (`vsphere.conf`). Cloud config template can be found [here](https://github.com/kubernetes/kubernetes-anywhere/blob/master/phase1/vsphere/vsphere.conf) +**Step-5** Create the vSphere cloud config file (`vsphere.conf`). Cloud config template can be found [here](https://github.com/kubernetes/kubernetes-anywhere/blob/master/phase1/vsphere/vsphere.conf). This config file needs to be placed in the shared directory which should be accessible from kubelet container, controller-manager pod, and API server pod. @@ -138,7 +138,7 @@ This config file needs to be placed in the shared directory which should be acce Note: **```vm-name``` parameter is introduced in 1.6.4 release.** Both ```vm-uuid``` and ```vm-name``` are optional parameters. If ```vm-name``` is specified then ```vm-uuid``` is not used. If both are not specified then kubelet will get vm-uuid from `/sys/class/dmi/id/product_serial` and query vCenter to find the Node VM's name. -**```vsphere.conf``` for Worker Nodes:** (Only Applicable to 1.6.4 release and above. For older releases this file should have all the parameters specified in Master node's ```vSphere.conf``` file) +**```vsphere.conf``` for Worker Nodes:** (Only Applicable to 1.6.4 release and above. For older releases this file should have all the parameters specified in Master node's ```vSphere.conf``` file). ``` [Global] @@ -184,7 +184,7 @@ Below is summary of supported parameters in the `vsphere.conf` file --cloud-config= ``` -Manifest files for API server and controller-manager are generally located at `/etc/kubernetes` +Manifest files for API server and controller-manager are generally located at `/etc/kubernetes`. **Step-7** Restart Kubelet on all nodes. * Reload kubelet systemd unit file using ```systemctl daemon-reload``` From b89cfd0116eb7269059a91247f53550c89aff5ed Mon Sep 17 00:00:00 2001 From: lemon-tree Date: Fri, 18 Aug 2017 00:55:14 +0800 Subject: [PATCH 03/31] Update jsonpath.md (#5017) Modified "JSONpath " to "JSONPath ". --- docs/user-guide/jsonpath.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-guide/jsonpath.md b/docs/user-guide/jsonpath.md index 54c2780da8..0ca17dc318 100644 --- a/docs/user-guide/jsonpath.md +++ b/docs/user-guide/jsonpath.md @@ -1,5 +1,5 @@ --- -title: JSONpath Support +title: JSONPath Support --- JSONPath template is composed of JSONPath expressions enclosed by {}. From 776980a1ff734df16cb7dade3318e04d9e5ae3bd Mon Sep 17 00:00:00 2001 From: lemon-tree Date: Fri, 18 Aug 2017 00:58:08 +0800 Subject: [PATCH 04/31] Update kubectl-conventions.md (#5016) Modified the position of ".", deleted the extra ",", and added the lost ".". --- docs/user-guide/kubectl-conventions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/user-guide/kubectl-conventions.md b/docs/user-guide/kubectl-conventions.md index e12f02163a..f58ab6f9d2 100644 --- a/docs/user-guide/kubectl-conventions.md +++ b/docs/user-guide/kubectl-conventions.md @@ -23,11 +23,11 @@ If you need stable output in a script, you should: In order for `kubectl run` to satisfy infrastructure as code: -* Always tag your image with a version-specific tag and don't move that tag to a new version. For example, use `:v1234`, `v1.2.3`, `r03062016-1-4`, rather than `:latest` (see [Best Practices for Configuration](/docs/concepts/configuration/overview/#container-images) for more information.) -* If the image is lightly parameterized, capture the parameters in a checked-in script, or at least use `--record`, to annotate the created objects with the command line. +* Always tag your image with a version-specific tag and don't move that tag to a new version. For example, use `:v1234`, `v1.2.3`, `r03062016-1-4`, rather than `:latest` (see [Best Practices for Configuration](/docs/concepts/configuration/overview/#container-images) for more information). +* If the image is lightly parameterized, capture the parameters in a checked-in script, or at least use `--record`to annotate the created objects with the command line. * If the image is heavily parameterized, definitely check in the script. * If features are needed that are not expressible via `kubectl run` flags, switch to configuration files checked into source control. -* Pin to a specific [generator](#generators) version, such as `kubectl run --generator=deployment/v1beta1` +* Pin to a specific [generator](#generators) version, such as `kubectl run --generator=deployment/v1beta1`. #### Generators From c9e79b5bd8a751ceea77cbca517842b9cfdb0353 Mon Sep 17 00:00:00 2001 From: lemon-tree Date: Fri, 18 Aug 2017 00:58:57 +0800 Subject: [PATCH 05/31] Update docker-cli-to-kubectl.md (#5015) Modified "is different than" to "is different from". --- docs/user-guide/docker-cli-to-kubectl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-guide/docker-cli-to-kubectl.md b/docs/user-guide/docker-cli-to-kubectl.md index 01c295d75a..ffbc4cc2a6 100644 --- a/docs/user-guide/docker-cli-to-kubectl.md +++ b/docs/user-guide/docker-cli-to-kubectl.md @@ -53,7 +53,7 @@ kubectl run [-i] [--tty] --attach --image= Unlike `docker run ...`, if `--attach` is specified, we attach to `stdin`, `stdout` and `stderr`, there is no ability to control which streams are attached (`docker -a ...`). -Because we start a Deployment for your container, it will be restarted if you terminate the attached process (e.g. `ctrl-c`), this is different than `docker run -it`. +Because we start a Deployment for your container, it will be restarted if you terminate the attached process (e.g. `ctrl-c`), this is different fromĀ `docker run -it`. To destroy the Deployment (and its pods) you need to run `kubectl delete deployment ` #### docker ps From c22250dfc90fc06f858a218dd3e5698048b1ef2f Mon Sep 17 00:00:00 2001 From: Weibin Lin Date: Fri, 18 Aug 2017 01:00:28 +0800 Subject: [PATCH 06/31] fix misspelling of daemonset (#5013) --- docs/concepts/workloads/controllers/daemonset.md | 6 +++--- .../controllers/{deamonset.yaml => daemonset.yaml} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename docs/concepts/workloads/controllers/{deamonset.yaml => daemonset.yaml} (100%) diff --git a/docs/concepts/workloads/controllers/daemonset.md b/docs/concepts/workloads/controllers/daemonset.md index ce48aa5213..3e06d892c6 100644 --- a/docs/concepts/workloads/controllers/daemonset.md +++ b/docs/concepts/workloads/controllers/daemonset.md @@ -28,13 +28,13 @@ different flags and/or different memory and cpu requests for different hardware ### Create a DaemonSet -You can describe a DaemonSet in a YAML file. For example, the deamonset.yaml file below describes a DaemonSet that runs the fluentd-elasticsearch Docker image: +You can describe a DaemonSet in a YAML file. For example, the daemonset.yaml file below describes a DaemonSet that runs the fluentd-elasticsearch Docker image: -{% include code.html language="yaml" file="deamonset.yaml" ghlink="/docs/concepts/workloads/controllers/deamonset.yaml" %} +{% include code.html language="yaml" file="daemonset.yaml" ghlink="/docs/concepts/workloads/controllers/daemonset.yaml" %} * Create a DaemonSet based on the YAML file: ``` -kubectl create -f deamonset.yaml +kubectl create -f daemonset.yaml ``` ### Required Fields diff --git a/docs/concepts/workloads/controllers/deamonset.yaml b/docs/concepts/workloads/controllers/daemonset.yaml similarity index 100% rename from docs/concepts/workloads/controllers/deamonset.yaml rename to docs/concepts/workloads/controllers/daemonset.yaml From 4fffcae260435b267957a6c923484be5f2d2d67b Mon Sep 17 00:00:00 2001 From: lemon-tree Date: Fri, 18 Aug 2017 01:02:03 +0800 Subject: [PATCH 07/31] Update kubefed.md (#5010) Modified a bad link. --- docs/admin/kubefed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin/kubefed.md b/docs/admin/kubefed.md index 103a645666..a733eac59e 100644 --- a/docs/admin/kubefed.md +++ b/docs/admin/kubefed.md @@ -7,7 +7,7 @@ kubefed controls a Kubernetes Cluster Federation kubefed controls a Kubernetes Cluster Federation. -Find more information at https://github.com/kubernetes/kubernetes. +Find more information at [https://github.com/kubernetes/kubernetes](https://github.com/kubernetes/kubernetes). ``` kubefed From bd17a0e81906a37374a3208c5f9bf6656eb040e5 Mon Sep 17 00:00:00 2001 From: TigerXu Date: Fri, 18 Aug 2017 01:09:16 +0800 Subject: [PATCH 08/31] update accessing-the-api.md (#4734) --- docs/admin/accessing-the-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/admin/accessing-the-api.md b/docs/admin/accessing-the-api.md index 08c1eecd06..d181fe8b43 100644 --- a/docs/admin/accessing-the-api.md +++ b/docs/admin/accessing-the-api.md @@ -17,8 +17,8 @@ following diagram: ## Transport Security -In a typical Kubernetes cluster, the API served on port 443. A TLS connection is -established. The API server presents a certificate. This certificate is +In a typical Kubernetes cluster, the API serves on port 443. +The API server presents a certificate. This certificate is often self-signed, so `$USER/.kube/config` on the user's machine typically contains the root certificate for the API server's certificate, which when specified is used in place of the system default root certificates. This certificate is typically From e30516fbeb3b5791adbdb7ee0a3440af561906a3 Mon Sep 17 00:00:00 2001 From: netroby Date: Fri, 18 Aug 2017 01:10:37 +0800 Subject: [PATCH 09/31] update read me for unable to connect to the server (#4803) * update read me for unable to connect to the server * Fix words, thanks tengqm * Update create-cluster-kubeadm.md --- .../independent/create-cluster-kubeadm.md | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/setup/independent/create-cluster-kubeadm.md b/docs/setup/independent/create-cluster-kubeadm.md index b9b0b023fc..a4577baff6 100644 --- a/docs/setup/independent/create-cluster-kubeadm.md +++ b/docs/setup/independent/create-cluster-kubeadm.md @@ -542,8 +542,24 @@ You may have trouble in the configuration if you see Pod statuses like `RunConta [ubuntu-vagrantfile]: https://github.com/errordeveloper/k8s-playground/blob/22dd39dfc06111235620e6c4404a96ae146f26fd/Vagrantfile#L11) -As with all Kubernetes troubleshooting, normal commands you can take advantage of to help diagnose -what happened are `kubectl describe pod` or `kubectl logs`. Example usage: +1. The following error indicates a possible certificate mismatch. + +``` +# kubectl get po +Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") +``` + +Verify that the `$HOME/.kube/config` file contains a valid certificate, and regenerate a certificate if necessary. +Another workaround is to overwrite the default `kubeconfig` for the "admin" user: + +``` + mv $HOME/.kube $HOME/.kube.bak + mkdir -p $HOME/.kube + sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config + sudo chown $(id -u):$(id -g) $HOME/.kube/config +``` + +The `kubectl describe pod` or `kubectl logs` commands can help you diagnose errors. For example: ```bash kubectl -n ${NAMESPACE} describe pod ${POD_NAME} From a8697c1180c9fca472600afb37c50179eea1ae50 Mon Sep 17 00:00:00 2001 From: XsWack Date: Mon, 14 Aug 2017 16:11:24 +0800 Subject: [PATCH 10/31] Update networking.md fix bad url --- docs/getting-started-guides/ubuntu/networking.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started-guides/ubuntu/networking.md b/docs/getting-started-guides/ubuntu/networking.md index bb16491e2b..b0b805f73c 100644 --- a/docs/getting-started-guides/ubuntu/networking.md +++ b/docs/getting-started-guides/ubuntu/networking.md @@ -19,7 +19,7 @@ Kubernetes-friendly SDN you want. Currently this means support for Flannel. ## Usage The flannel charm is a -[subordinate](https://jujucharms.com/docs/stable/authors-subordinate-services). +[subordinate](https://jujucharms.com/docs/stable/authors-subordinate-applications). This charm will require a principal charm that implements the `kubernetes-cni` interface in order to properly deploy. From 3945f9cf654a0b0e92948593a076035364395b89 Mon Sep 17 00:00:00 2001 From: XsWack Date: Mon, 14 Aug 2017 21:29:08 +0800 Subject: [PATCH 11/31] fix bad url fix bad url --- docs/getting-started-guides/ubuntu/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started-guides/ubuntu/installation.md b/docs/getting-started-guides/ubuntu/installation.md index 6c1ba159fc..b30ab81239 100644 --- a/docs/getting-started-guides/ubuntu/installation.md +++ b/docs/getting-started-guides/ubuntu/installation.md @@ -47,7 +47,7 @@ so we can find them. Deployment of the cluster is [supported on a wide variety of public clouds](#cloud-compatibility), private OpenStack clouds, or raw bare metal clusters. Bare metal deployments are supported via [MAAS](http://maas.io/). -After deciding which cloud to deploy to, follow the [cloud setup page](https://jujucharms.com/docs/devel/getting-started-general#2.-choose-a-cloud) to configure deploying to that cloud. +After deciding which cloud to deploy to, follow the [cloud setup page](https://jujucharms.com/docs/devel/getting-started) to configure deploying to that cloud. Load your [cloud credentials](https://jujucharms.com/docs/2.0/credentials) for each cloud provider you would like to use. From cf4abdbe390ec0a06d7aa4209343319f82bc02c1 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 15 Aug 2017 09:33:45 +0800 Subject: [PATCH 12/31] Update run-single-instance-stateful-application.md modify "mysql" to "MySQL" --- .../run-application/run-single-instance-stateful-application.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/run-application/run-single-instance-stateful-application.md b/docs/tasks/run-application/run-single-instance-stateful-application.md index 47dacc184a..17bb7c594f 100644 --- a/docs/tasks/run-application/run-single-instance-stateful-application.md +++ b/docs/tasks/run-application/run-single-instance-stateful-application.md @@ -160,7 +160,7 @@ Run a MySQL client to connect to the server: kubectl run -it --rm --image=mysql:5.6 mysql-client -- mysql -h -p ``` -This command creates a new Pod in the cluster running a mysql client +This command creates a new Pod in the cluster running a MySQL client and connects it to the server through the Service. If it connects, you know your stateful MySQL database is up and running. From c8acd9950c87d03a8f4c312734081569bbb5e3b7 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 15 Aug 2017 14:30:41 +0800 Subject: [PATCH 13/31] Update parallel-processing-expansion.md modify the first letter of sentence to be in uppercase --- docs/tasks/job/parallel-processing-expansion.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tasks/job/parallel-processing-expansion.md b/docs/tasks/job/parallel-processing-expansion.md index f4bec2dcc1..d6e7921062 100644 --- a/docs/tasks/job/parallel-processing-expansion.md +++ b/docs/tasks/job/parallel-processing-expansion.md @@ -170,7 +170,7 @@ The output can be saved to a file, like this: cat job.yaml.jinja2 | render_template > jobs.yaml ``` -or sent directly to kubectl, like this: +Or sent directly to kubectl, like this: ```shell cat job.yaml.jinja2 | render_template | kubectl create -f - @@ -180,7 +180,7 @@ cat job.yaml.jinja2 | render_template | kubectl create -f - If you have a large number of job objects, you may find that: -- even using labels, managing so many Job objects is cumbersome. +- Even using labels, managing so many Job objects is cumbersome. - You exceed resource quota when creating all the Jobs at once, and do not want to wait to create them incrementally. - You need a way to easily scale the number of pods running @@ -188,7 +188,7 @@ If you have a large number of job objects, you may find that: compute resources. Another would be to limit the number of concurrent requests to a shared resource, such as a database, used by all the pods in the job. -- very large numbers of jobs created at once overload the +- Very large numbers of jobs created at once overload the Kubernetes apiserver, controller, or scheduler. In this case, you can consider one of the From 907d1faf5a6bd310046363fcb40bdaf2fa0f9e1f Mon Sep 17 00:00:00 2001 From: XsWack Date: Tue, 15 Aug 2017 14:34:27 +0800 Subject: [PATCH 14/31] Update petset.md fix bad url --- docs/concepts/workloads/controllers/petset.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/workloads/controllers/petset.md b/docs/concepts/workloads/controllers/petset.md index 73e73bea99..4d34accdf7 100644 --- a/docs/concepts/workloads/controllers/petset.md +++ b/docs/concepts/workloads/controllers/petset.md @@ -259,7 +259,7 @@ You cannot update any field of the PetSet except `spec.replicas` and the `contai You can scale a PetSet by updating the "replicas" field. Note however that the controller will only: 1. Create one pet at a time, in order from {0..N-1}, and wait till each one is in [Running and Ready](/docs/user-guide/pod-states) before creating the next -2. Delete one pet at a time, in reverse order from {N-1..0}, and wait till each one is completely shutdown (past its [terminationGracePeriodSeconds](/docs/user-guide/pods/index#termination-of-pods)) before deleting the next +2. Delete one pet at a time, in reverse order from {N-1..0}, and wait till each one is completely shutdown (past its [terminationGracePeriodSeconds](/docs/concepts/workloads/pods/pod/#termination-of-pods) before deleting the next ```shell $ kubectl get po From bfe4ac9f65c3db016e4085fe56f21d226e48eae9 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 15 Aug 2017 14:44:23 +0800 Subject: [PATCH 15/31] Update index.md modify " ' " of the sentence --- docs/tasks/job/coarse-parallel-processing-work-queue/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/job/coarse-parallel-processing-work-queue/index.md b/docs/tasks/job/coarse-parallel-processing-work-queue/index.md index 7d95beccbd..6ffd1fe1ae 100644 --- a/docs/tasks/job/coarse-parallel-processing-work-queue/index.md +++ b/docs/tasks/job/coarse-parallel-processing-work-queue/index.md @@ -174,7 +174,7 @@ tree, then change directory to `examples/job/work-queue-1`. Otherwise, make a temporary directory, change to it, download the [Dockerfile](Dockerfile?raw=true), and [worker.py](worker.py?raw=true). In either case, -build the image with this command: ` +build the image with this command: ```shell $ docker build -t job-wq-1 . From 693680a67b43a18937766b7d24edb66d80d400ee Mon Sep 17 00:00:00 2001 From: XsWack Date: Wed, 16 Aug 2017 08:18:15 +0800 Subject: [PATCH 16/31] Update minikube.md format the command line --- docs/getting-started-guides/minikube.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/getting-started-guides/minikube.md b/docs/getting-started-guides/minikube.md index 949acab21d..910914292a 100644 --- a/docs/getting-started-guides/minikube.md +++ b/docs/getting-started-guides/minikube.md @@ -101,6 +101,7 @@ To be able to work with the docker daemon on your mac/linux host use the `docker eval $(minikube docker-env) ``` you should now be able to use docker on the command line on your host mac/linux machine talking to the docker daemon inside the minikube VM: + ``` docker ps ``` From 7cc9c4b873ba63084569cf1106cc7a2dbc64ebff Mon Sep 17 00:00:00 2001 From: Stewart-YU Date: Wed, 16 Aug 2017 17:26:05 +0800 Subject: [PATCH 17/31] Update configure-service-account.md Missing a signal. --- docs/tasks/configure-pod-container/configure-service-account.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/configure-pod-container/configure-service-account.md b/docs/tasks/configure-pod-container/configure-service-account.md index 943853251e..51c1460540 100644 --- a/docs/tasks/configure-pod-container/configure-service-account.md +++ b/docs/tasks/configure-pod-container/configure-service-account.md @@ -163,7 +163,7 @@ namespace: 7 bytes ## Add ImagePullSecrets to a service account -First, create an imagePullSecret, as described [here](/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod) +First, create an imagePullSecret, as described [here](/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod). Next, verify it has been created. For example: ```shell From 6b0db5ff908d1d73647511ece6545c623b917fc3 Mon Sep 17 00:00:00 2001 From: Anthony Date: Wed, 16 Aug 2017 20:54:37 +0800 Subject: [PATCH 18/31] Update reserve-compute-resources.md add "." to the sentence --- docs/tasks/administer-cluster/reserve-compute-resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/administer-cluster/reserve-compute-resources.md b/docs/tasks/administer-cluster/reserve-compute-resources.md index 03b65e42d0..fcaa63b832 100644 --- a/docs/tasks/administer-cluster/reserve-compute-resources.md +++ b/docs/tasks/administer-cluster/reserve-compute-resources.md @@ -151,7 +151,7 @@ The scheduler treats `Allocatable` as the available `capacity` for pods. `kubelet` enforce `Allocatable` across pods by default. Enforcement is performed by evicting pods whenever the overall usage across all pods exceeds `Allocatable`. More details on eviction policy can be found -[here](./out-of-resource.md#eviction-policy) This enforcement is controlled by +[here](./out-of-resource.md#eviction-policy). This enforcement is controlled by specifying `pods` value to the kubelet flag `--enforce-node-allocatable`. From 098cb806d19c7444ce3868f44e6d8be8a4e773a3 Mon Sep 17 00:00:00 2001 From: Weibin Lin Date: Thu, 17 Aug 2017 08:57:43 +0800 Subject: [PATCH 19/31] Update define-command-argument-container.md update links --- .../define-command-argument-container.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tasks/inject-data-application/define-command-argument-container.md b/docs/tasks/inject-data-application/define-command-argument-container.md index 619a7eade0..9ea391a804 100644 --- a/docs/tasks/inject-data-application/define-command-argument-container.md +++ b/docs/tasks/inject-data-application/define-command-argument-container.md @@ -129,8 +129,8 @@ Here are some examples: {% capture whatsnext %} * Learn more about [containers and commands](/docs/user-guide/containers/). -* Learn more about [configuring containers](/docs/user-guide/configuring-containers/). -* Learn more about [running commands in a container](/docs/tasks/kubectl/get-shell-running-container/). +* Learn more about [configuring pods and containers](/docs/tasks/). +* Learn more about [running commands in a container](/docs/tasks/debug-application-cluster/get-shell-running-container/). * See [Container](/docs/api-reference/{{page.version}}/#container-v1-core). {% endcapture %} From 287fdab71ab5e5f2faf1c7d9ec7810661c683a21 Mon Sep 17 00:00:00 2001 From: Tony Li Date: Mon, 14 Aug 2017 14:42:12 -0400 Subject: [PATCH 20/31] Clarify the contents of the secrets being mounted It read like both containers had the config for both environments. --- docs/concepts/configuration/secret.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/configuration/secret.md b/docs/concepts/configuration/secret.md index 0d692dd700..0a673537a4 100644 --- a/docs/concepts/configuration/secret.md +++ b/docs/concepts/configuration/secret.md @@ -651,7 +651,7 @@ Now make the pods: } ``` -Both containers will have the following files present on their filesystems: +Both containers will have the following files present on their filesystems with the values for each container's environment: ```shell /etc/secret-volume/username From cc248ef32c72bae5ceb93abba0177de295ecfe7a Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 15 Aug 2017 11:15:58 +0800 Subject: [PATCH 21/31] Update force-delete-stateful-set-pod.md modify "node" to "Node" --- docs/tasks/run-application/force-delete-stateful-set-pod.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/run-application/force-delete-stateful-set-pod.md b/docs/tasks/run-application/force-delete-stateful-set-pod.md index f1988338dd..f969241360 100644 --- a/docs/tasks/run-application/force-delete-stateful-set-pod.md +++ b/docs/tasks/run-application/force-delete-stateful-set-pod.md @@ -42,7 +42,7 @@ Kubernetes (versions 1.5 or newer) will not delete Pods just because a Node is u * The kubelet on the unresponsive Node starts responding, kills the Pod and removes the entry from the apiserver. * Force deletion of the Pod by the user. -The recommended best practice is to use the first or second approach. If a Node is confirmed to be dead (e.g. permanently disconnected from the network, powered down, etc), then delete the node object. If the node is suffering from a network partition, then try to resolve this or wait for it to resolve. When the partition heals, the kubelet will complete the deletion of the Pod and free up its name in the apiserver. +The recommended best practice is to use the first or second approach. If a Node is confirmed to be dead (e.g. permanently disconnected from the network, powered down, etc), then delete the Node object. If the Node is suffering from a network partition, then try to resolve this or wait for it to resolve. When the partition heals, the kubelet will complete the deletion of the Pod and free up its name in the apiserver. Normally, the system completes the deletion once the Pod is no longer running on a Node, or the Node is deleted by an administrator. You may override this by force deleting the Pod. From c91f767b4db0507330931987de23ccdb442a38ea Mon Sep 17 00:00:00 2001 From: Stewart-YU Date: Fri, 18 Aug 2017 01:32:47 +0800 Subject: [PATCH 22/31] Update expose-intro.html (#4868) * Update expose-intro.html Pods each --> each Pods * fix grammar --- docs/tutorials/kubernetes-basics/expose-intro.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/kubernetes-basics/expose-intro.html b/docs/tutorials/kubernetes-basics/expose-intro.html index 2f789fe25d..2bf94c0b5f 100644 --- a/docs/tutorials/kubernetes-basics/expose-intro.html +++ b/docs/tutorials/kubernetes-basics/expose-intro.html @@ -31,7 +31,7 @@ title: Using a Service to Expose Your App

A Service in Kubernetes is an abstraction which defines a logical set of Pods and a policy by which to access them. Services enable a loose coupling between dependent Pods. A Service is defined using YAML (preferred) or JSON, like all Kubernetes objects. The set of Pods targeted by a Service is usually determined by a LabelSelector (see below for why you might want a Service without including selector in the spec).

-

Although Pods each have a unique IP address, those IPs are not exposed outside the cluster without a Service. Services allow your applications to receive traffic. Services can be exposed in different ways by specifying a type in the ServiceSpec:

+

Although each Pod has a unique IP address, those IPs are not exposed outside the cluster without a Service. Services allow your applications to receive traffic. Services can be exposed in different ways by specifying a type in the ServiceSpec:

  • ClusterIP (default) - Exposes the Service on an internal IP in the cluster. This type makes the Service only reachable from within the cluster.
  • NodePort - Exposes the Service on the same port of each selected Node in the cluster using NAT. Makes a Service accessible from outside the cluster using :. Superset of ClusterIP.
  • From 68240a3a4eba4a851c7f7d0147b7d35c7dd131dd Mon Sep 17 00:00:00 2001 From: Lion-Wei Date: Tue, 15 Aug 2017 12:02:56 +0800 Subject: [PATCH 23/31] Update flannel_multi_node_cluster.md --- .../getting-started-guides/fedora/flannel_multi_node_cluster.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started-guides/fedora/flannel_multi_node_cluster.md b/docs/getting-started-guides/fedora/flannel_multi_node_cluster.md index 1a929b8538..d7c3d30e6f 100644 --- a/docs/getting-started-guides/fedora/flannel_multi_node_cluster.md +++ b/docs/getting-started-guides/fedora/flannel_multi_node_cluster.md @@ -9,7 +9,7 @@ title: Fedora (Multi Node) * TOC {:toc} -This document describes how to deploy Kubernetes on multiple hosts to set up a multi-node cluster and networking with flannel. Follow fedora [getting started guide](/docs/getting-started-guides/fedora/fedora_manual_config/) to setup 1 master (fed-master) and 2 or more nodes. Make sure that all nodes have different names (fed-node1, fed-node2 and so on) and labels (fed-node1-label, fed-node2-label, and so on) to avoid any conflict. Also make sure that the Kubernetes master host is running etcd, kube-controller-manager, kube-scheduler, and kube-apiserver services, and the nodes are running docker, kube-proxy and kubelet services. Now install flannel on Kubernetes nodes. flannel on each node configures an overlay network that docker uses. flannel runs on each node to setup a unique class-C container network. +This document describes how to deploy Kubernetes on multiple hosts to set up a multi-node cluster and networking with flannel. Follow fedora [getting started guide](/docs/getting-started-guides/fedora/fedora_manual_config/) to setup 1 master (fed-master) and 2 or more nodes. Make sure that all nodes have different names (fed-node1, fed-node2 and so on) and labels (fed-node1-label, fed-node2-label, and so on) to avoid any conflict. Also make sure that the Kubernetes master host is running etcd, kube-controller-manager, kube-scheduler, and kube-apiserver services, and the nodes are running docker, kube-proxy and kubelet services. Now install flannel on Kubernetes nodes. Flannel on each node configures an overlay network that docker uses. Flannel runs on each node to setup a unique class-C container network. ## Prerequisites From a846d2807f0601e8e0f51843013ec6753646dce5 Mon Sep 17 00:00:00 2001 From: Lion-Wei Date: Tue, 15 Aug 2017 12:10:22 +0800 Subject: [PATCH 24/31] Update managing-tls-in-a-cluster.md --- docs/tasks/tls/managing-tls-in-a-cluster.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/tls/managing-tls-in-a-cluster.md b/docs/tasks/tls/managing-tls-in-a-cluster.md index bae41b6c90..308613f589 100644 --- a/docs/tasks/tls/managing-tls-in-a-cluster.md +++ b/docs/tasks/tls/managing-tls-in-a-cluster.md @@ -71,7 +71,7 @@ EOF Where `172.168.0.24` is the service's cluster IP, `my-svc.my-namespace.svc.cluster.local` is the service's DNS name, `10.0.34.2` is the pod's IP and `my-pod.my-namespace.pod.cluster.local` -is the pod's DNS name. you should see the following output: +is the pod's DNS name. You should see the following output: ``` 2017/03/21 06:48:17 [INFO] generate received request From d55906f8dd4ded0b26aaa1c7f90b836e6eed53d0 Mon Sep 17 00:00:00 2001 From: lemon-tree Date: Tue, 15 Aug 2017 12:21:45 +0800 Subject: [PATCH 25/31] Update accessing-the-api.md Modified the "root certificates" to "root certificate". --- docs/admin/accessing-the-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin/accessing-the-api.md b/docs/admin/accessing-the-api.md index d181fe8b43..03447f2488 100644 --- a/docs/admin/accessing-the-api.md +++ b/docs/admin/accessing-the-api.md @@ -21,7 +21,7 @@ In a typical Kubernetes cluster, the API serves on port 443. The API server presents a certificate. This certificate is often self-signed, so `$USER/.kube/config` on the user's machine typically contains the root certificate for the API server's certificate, which when specified -is used in place of the system default root certificates. This certificate is typically +is used in place of the system default root certificate. This certificate is typically automatically written into your `$USER/.kube/config` when you create a cluster yourself using `kube-up.sh`. If the cluster has multiple users, then the creator needs to share the certificate with other users. From ccca789ee0bacaae324a332248da14278684fd3c Mon Sep 17 00:00:00 2001 From: XsWack Date: Wed, 16 Aug 2017 08:43:37 +0800 Subject: [PATCH 26/31] Update volumes.md fix bad url --- docs/concepts/storage/volumes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/storage/volumes.md b/docs/concepts/storage/volumes.md index f8a294bd6c..2d2f4f710f 100644 --- a/docs/concepts/storage/volumes.md +++ b/docs/concepts/storage/volumes.md @@ -27,7 +27,7 @@ Familiarity with [pods](/docs/user-guide/pods) is suggested. ## Background Docker also has a concept of -[volumes](https://docs.docker.com/userguide/dockervolumes/), though it is +[volumes](https://docs.docker.com/engine/admin/volumes/), though it is somewhat looser and less managed. In Docker, a volume is simply a directory on disk or in another container. Lifetimes are not managed and until very recently there were only local-disk-backed volumes. Docker now provides volume From 87a50e159bb802265d4d58e533b5c9fe142c0263 Mon Sep 17 00:00:00 2001 From: XsWack Date: Wed, 16 Aug 2017 09:06:32 +0800 Subject: [PATCH 27/31] fix six bad url fix six bad url --- docs/tutorials/stateless-application/guestbook.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/tutorials/stateless-application/guestbook.md b/docs/tutorials/stateless-application/guestbook.md index db3da76fbd..331e489922 100644 --- a/docs/tutorials/stateless-application/guestbook.md +++ b/docs/tutorials/stateless-application/guestbook.md @@ -61,12 +61,12 @@ This tutorial shows you how to build and deploy a simple, multi-tier web applica {% include task-tutorial-prereqs.md %} Download the following configuration files: -1. [redis-master-deployment.yaml](https://kubernetes.io/docs/tutorials/docs/tutorials/stateless-application/redis-master-deployment.yaml) -1. [redis-master-service.yaml](https://kubernetes.io/docs/tutorials/docs/tutorials/stateless-application/redis-master-service.yaml) -1. [redis-slave-deployment.yaml](https://kubernetes.io/docs/tutorials/docs/tutorials/stateless-application/redis-slave-deployment.yaml) -1. [redis-slave-service.yaml](https://kubernetes.io/docs/tutorials/docs/tutorials/stateless-application/redis-slave-service.yaml) -1. [frontend-deployment.yaml](https://kubernetes.io/docs/tutorials/docs/tutorials/stateless-application/frontend-deployment.yaml) -1. [frontend-service.yaml](https://kubernetes.io/docs/tutorials/docs/tutorials/stateless-application/frontend-service.yaml) +1. [redis-master-deployment.yaml](/docs/tutorials/stateless-application/guestbook/redis-master-deployment.yaml) +1. [redis-master-service.yaml](/docs/tutorials/stateless-application/guestbook/redis-master-service.yaml) +1. [redis-slave-deployment.yaml](/docs/tutorials/stateless-application/guestbook/redis-slave-deployment.yaml) +1. [redis-slave-service.yaml](/docs/tutorials/stateless-application/guestbook/redis-slave-service.yaml) +1. [frontend-deployment.yaml](/docs/tutorials/stateless-application/guestbook/frontend-deployment.yaml) +1. [frontend-service.yaml](/docs/tutorials/stateless-application/guestbook/frontend-service.yaml) {% endcapture %} @@ -335,4 +335,4 @@ Deleting the Deployments and Services also deletes any running Pods. Use labels [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/guestbook/README.md?pixel)]() - \ No newline at end of file + From 3a4325dc7beee8ee697315fdec7b049ee9d5638c Mon Sep 17 00:00:00 2001 From: XsWack Date: Tue, 15 Aug 2017 14:20:13 +0800 Subject: [PATCH 28/31] fix bad url fix bad URL --- docs/concepts/cluster-administration/federation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/cluster-administration/federation.md b/docs/concepts/cluster-administration/federation.md index 56f7b54a3f..8d6ddaf61d 100644 --- a/docs/concepts/cluster-administration/federation.md +++ b/docs/concepts/cluster-administration/federation.md @@ -97,7 +97,7 @@ The following guides explain some of the resources in detail: * [Secrets](/docs/tasks/administer-federation/secret/) * [Services](/docs/concepts/cluster-administration/federation-service-discovery/) -[API reference docs](/docs/federation/api-reference/) lists all the +[API reference docs](/docs/reference/federation/) lists all the resources supported by federation apiserver. ## Cascading deletion From ef9adeab7327c882c59f940d4bbf48a351a9b0f8 Mon Sep 17 00:00:00 2001 From: XsWack Date: Tue, 15 Aug 2017 14:39:15 +0800 Subject: [PATCH 29/31] Update delete-stateful-set.md fix bad URL --- docs/tasks/run-application/delete-stateful-set.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tasks/run-application/delete-stateful-set.md b/docs/tasks/run-application/delete-stateful-set.md index 227b7528eb..29c8b2e57b 100644 --- a/docs/tasks/run-application/delete-stateful-set.md +++ b/docs/tasks/run-application/delete-stateful-set.md @@ -54,7 +54,7 @@ kubectl delete pods -l app=myapp ### Persistent Volumes -Deleting the Pods in a StatefulSet will not delete the associated volumes. This is to ensure that you have the chance to copy data off the volume before deleting it. Deleting the PVC after the pods have left the [terminating state](/docs/user-guide/pods/index#termination-of-pods) might trigger deletion of the backing Persistent Volumes depending on the storage class and reclaim policy. You should never assume ability to access a volume after claim deletion. +Deleting the Pods in a StatefulSet will not delete the associated volumes. This is to ensure that you have the chance to copy data off the volume before deleting it. Deleting the PVC after the pods have left the [terminating state](/docs/concepts/workloads/pods/pod/#termination-of-pods) might trigger deletion of the backing Persistent Volumes depending on the storage class and reclaim policy. You should never assume ability to access a volume after claim deletion. **Note: Use caution when deleting a PVC, as it may lead to data loss.** From 4dcfd3588fe497ca5b285c4f36cfe03ffb54e113 Mon Sep 17 00:00:00 2001 From: lemon-tree Date: Tue, 15 Aug 2017 14:42:38 +0800 Subject: [PATCH 30/31] Update petset.md Fix the bad link. --- docs/concepts/workloads/controllers/petset.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/workloads/controllers/petset.md b/docs/concepts/workloads/controllers/petset.md index 4d34accdf7..d2cbc18b09 100644 --- a/docs/concepts/workloads/controllers/petset.md +++ b/docs/concepts/workloads/controllers/petset.md @@ -380,7 +380,7 @@ pod "web-0" deleted pod "web-1" deleted ``` -Deleting the pods will *not* delete the volumes. Until we finalize the recycle policy for these volumes they will have to get cleaned up by an admin. This is to ensure that you have the chance to copy data off the volume before deleting it. Simply deleting the PVC after the pods have left the [terminating state](/docs/user-guide/pods/index#termination-of-pods) should trigger deletion of the backing Persistent Volumes. +Deleting the pods will *not* delete the volumes. Until we finalize the recycle policy for these volumes they will have to get cleaned up by an admin. This is to ensure that you have the chance to copy data off the volume before deleting it. Simply deleting the PVC after the pods have left the [terminating state](/docs/concepts/workloads/pods/pod/#termination-of-pods) should trigger deletion of the backing Persistent Volumes. **Note: you will lose all your data once the PVC is deleted, do this with caution.** From f9d6dfdc114eb812f458aba112d3a7e8fefda3bd Mon Sep 17 00:00:00 2001 From: XsWack Date: Fri, 18 Aug 2017 02:21:36 +0800 Subject: [PATCH 31/31] Update init-containers.md (#4896) fix the bad link --- docs/concepts/workloads/pods/init-containers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/workloads/pods/init-containers.md b/docs/concepts/workloads/pods/init-containers.md index 4eb2fe796e..d4eaa11117 100644 --- a/docs/concepts/workloads/pods/init-containers.md +++ b/docs/concepts/workloads/pods/init-containers.md @@ -88,7 +88,7 @@ Here are some ideas for how to use Init Containers: configuration file using Jinja. More detailed usage examples can be found in the [StatefulSets documentation](/docs/concepts/abstractions/controllers/statefulsets/) -and the [Production Pods guide](/docs/user-guide/production-pods.md#handling-initialization). +and the [Production Pods guide](/docs/tasks/#handling-initialization). ### Init Containers in use