From a30d6a2c3207aa7056c5f4c967b391ac2639207c Mon Sep 17 00:00:00 2001 From: Jimmy Song Date: Wed, 8 Nov 2017 16:23:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=93=BE=E6=8E=A5=E5=92=8C?= =?UTF-8?q?=E9=94=99=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appendix/debug-kubernetes-services.html | 2 +- appendix/docker-best-practice.html | 2 +- appendix/index.html | 2 +- appendix/issues.html | 2 +- appendix/material-share.html | 2 +- appendix/tricks.html | 2 +- cloud-native/kubernetes-and-cloud-native-app-overview.html | 2 +- concepts/concepts.html | 2 +- concepts/configmap.html | 6 +++--- concepts/cronjob.html | 2 +- concepts/daemonset.html | 2 +- concepts/deployment.html | 2 +- concepts/garbage-collection.html | 2 +- concepts/horizontal-pod-autoscaling.html | 2 +- concepts/index.html | 2 +- concepts/ingress.html | 2 +- concepts/init-containers.html | 2 +- concepts/job.html | 2 +- concepts/label.html | 6 +++--- concepts/namespace.html | 2 +- concepts/network-policy.html | 2 +- concepts/node.html | 2 +- concepts/objects.html | 2 +- concepts/pod-lifecycle.html | 2 +- concepts/pod-overview.html | 2 +- concepts/pod-security-policy.html | 2 +- concepts/pod.html | 2 +- concepts/replicaset.html | 2 +- concepts/secret.html | 2 +- concepts/service.html | 2 +- concepts/serviceaccount.html | 2 +- concepts/statefulset.html | 2 +- concepts/volume.html | 2 +- develop/client-go-sample.html | 2 +- develop/contribute.html | 2 +- develop/developing-environment.html | 2 +- develop/index.html | 2 +- develop/minikube.html | 2 +- develop/testing.html | 2 +- guide/access-cluster.html | 2 +- guide/access-kubernetes-cluster.html | 2 +- guide/application-development-deployment-flow.html | 2 +- guide/authenticate-across-clusters-kubeconfig.html | 2 +- guide/cluster-security-management.html | 2 +- guide/command-usage.html | 2 +- guide/configure-liveness-readiness-probes.html | 2 +- guide/configure-pod-service-account.html | 2 +- guide/connecting-to-applications-port-forward.html | 2 +- guide/deploy-applications-in-kubernetes.html | 2 +- guide/docker-cli-to-kubectl.html | 2 +- guide/index.html | 2 +- guide/ip-masq-agent.html | 2 +- guide/kubectl-cheatsheet.html | 2 +- guide/kubectl-user-authentication-authorization.html | 2 +- guide/kubelet-authentication-authorization.html | 2 +- guide/managing-tls-in-a-cluster.html | 2 +- guide/migrating-hadoop-yarn-to-kubernetes.html | 2 +- guide/rbac.html | 2 +- guide/resource-configuration.html | 2 +- guide/resource-quota-management.html | 2 +- guide/secret-configuration.html | 2 +- guide/service-access-application-cluster.html | 2 +- guide/tls-bootstrapping.html | 2 +- guide/using-kubectl.html | 2 +- guide/using-statefulset.html | 2 +- index.html | 2 +- practice/app-log-collection.html | 2 +- practice/cephfs.html | 2 +- practice/ci-cd.html | 2 +- practice/configuration-best-practice.html | 2 +- practice/create-kubeconfig.html | 2 +- practice/create-private-charts-repo.html | 2 +- practice/create-tls-and-secret-key.html | 2 +- practice/dashboard-addon-installation.html | 2 +- practice/dashboard-upgrade.html | 2 +- practice/data-persistence-problem.html | 2 +- practice/distributed-load-test.html | 2 +- practice/drone-ci-cd.html | 2 +- practice/edge-node-configuration.html | 2 +- practice/efk-addon-installation.html | 2 +- practice/etcd-cluster-installation.html | 4 ++-- practice/glusterfs.html | 2 +- practice/heapster-addon-installation.html | 2 +- practice/helm.html | 2 +- practice/index.html | 2 +- practice/install-kbernetes1.6-on-centos.html | 2 +- practice/jenkins-ci-cd.html | 2 +- practice/kubectl-installation.html | 2 +- practice/kubedns-addon-installation.html | 2 +- practice/manage-compute-resources-container.html | 2 +- practice/manually-upgrade.html | 2 +- practice/master-installation.html | 2 +- practice/monitor.html | 2 +- practice/network-and-cluster-perfermance-test.html | 2 +- practice/nginx-ingress-installation.html | 2 +- practice/node-installation.html | 2 +- practice/operation.html | 2 +- practice/service-discovery-and-loadbalancing.html | 2 +- practice/service-rolling-update.html | 2 +- practice/services-management-tool.html | 2 +- ...orage-for-containers-using-glusterfs-with-openshift.html | 2 +- practice/storage.html | 2 +- practice/traefik-ingress-installation.html | 2 +- practice/update-and-upgrade.html | 2 +- practice/using-ceph-for-persistent-storage.html | 2 +- practice/using-glusterfs-for-persistent-storage.html | 2 +- practice/using-heapster-to-get-object-metrics.html | 2 +- .../using-prometheus-to-monitor-kuberentes-cluster.html | 2 +- search_plus_index.json | 2 +- usecases/big-data.html | 2 +- usecases/configuring-request-routing.html | 2 +- usecases/edge-computing.html | 2 +- usecases/index.html | 2 +- usecases/install-and-expand-istio-mesh.html | 2 +- usecases/integrating-vms.html | 2 +- usecases/istio-installation.html | 2 +- usecases/istio.html | 2 +- usecases/linkerd-user-guide.html | 2 +- usecases/linkerd.html | 2 +- usecases/microservices.html | 2 +- .../running-spark-with-kubernetes-native-scheduler.html | 2 +- usecases/serverless.html | 2 +- usecases/service-discovery-in-microservices.html | 2 +- usecases/service-mesh.html | 2 +- usecases/spark-standalone-on-kubernetes.html | 2 +- 125 files changed, 130 insertions(+), 130 deletions(-) diff --git a/appendix/debug-kubernetes-services.html b/appendix/debug-kubernetes-services.html index bf45e6071..3de908be9 100644 --- a/appendix/debug-kubernetes-services.html +++ b/appendix/debug-kubernetes-services.html @@ -2037,7 +2037,7 @@ kubectl top pod POD_NAME --containers diff --git a/appendix/docker-best-practice.html b/appendix/docker-best-practice.html index ff26dc616..ecc5d7c8a 100644 --- a/appendix/docker-best-practice.html +++ b/appendix/docker-best-practice.html @@ -2085,7 +2085,7 @@ diff --git a/appendix/index.html b/appendix/index.html index c4fa3743c..0e40e9746 100644 --- a/appendix/index.html +++ b/appendix/index.html @@ -2014,7 +2014,7 @@ diff --git a/appendix/issues.html b/appendix/issues.html index 49350a7b8..e0e725fa0 100644 --- a/appendix/issues.html +++ b/appendix/issues.html @@ -2076,7 +2076,7 @@ kubectl patch deploy --namespace kube-system tiller-deploy -p diff --git a/appendix/material-share.html b/appendix/material-share.html index 10d0c175d..b740a3242 100644 --- a/appendix/material-share.html +++ b/appendix/material-share.html @@ -2060,7 +2060,7 @@ diff --git a/appendix/tricks.html b/appendix/tricks.html index e6b99b640..daa99c345 100644 --- a/appendix/tricks.html +++ b/appendix/tricks.html @@ -2126,7 +2126,7 @@ diff --git a/cloud-native/kubernetes-and-cloud-native-app-overview.html b/cloud-native/kubernetes-and-cloud-native-app-overview.html index e657a7b57..0a393a9a4 100644 --- a/cloud-native/kubernetes-and-cloud-native-app-overview.html +++ b/cloud-native/kubernetes-and-cloud-native-app-overview.html @@ -2344,7 +2344,7 @@ diff --git a/concepts/concepts.html b/concepts/concepts.html index 7ea5df600..5be66f9be 100644 --- a/concepts/concepts.html +++ b/concepts/concepts.html @@ -2087,7 +2087,7 @@ diff --git a/concepts/configmap.html b/concepts/configmap.html index 8e214a268..aab2a40fc 100644 --- a/concepts/configmap.html +++ b/concepts/configmap.html @@ -1959,7 +1959,7 @@
-

前言

+

ConfigMap

其实ConfigMap功能在Kubernetes1.2版本的时候就有了,许多应用程序会从配置文件、命令行参数或环境变量中读取配置信息。这些配置信息需要与docker image解耦,你总不能每修改一个配置就重做一个image吧?ConfigMap API给我们提供了向容器中注入配置信息的机制,ConfigMap可以被用来保存单个属性,也可以用来保存整个配置文件或者JSON二进制大对象。

ConfigMap概览

ConfigMap API资源用来保存key-value pair配置数据,这个数据可以在pods里使用,或者被用来为像controller一样的系统组件存储配置数据。虽然ConfigMap跟Secrets类似,但是ConfigMap更方便的处理不含敏感信息的字符串。 注意:ConfigMaps不是属性配置文件的替代品。ConfigMaps只是作为多个properties文件的引用。你可以把它理解为Linux系统中的/etc目录,专门用来存储配置文件的目录。下面举个例子,使用ConfigMap配置来创建Kuberntes Volumes,ConfigMap中的每个data项都会成为一个新文件。

@@ -2248,7 +2248,7 @@ log_level=INFO

运行这个Pod后的结果是very

Copyright © jimmysong.io 2017 all right reserved,powered by GitbookUpdated: -2017-08-29 10:28:43 +2017-11-08 16:03:37
@@ -2292,7 +2292,7 @@ log_level=INFO diff --git a/concepts/cronjob.html b/concepts/cronjob.html index 9e5888624..7c36e17ce 100644 --- a/concepts/cronjob.html +++ b/concepts/cronjob.html @@ -2099,7 +2099,7 @@ job "hello-1202039034" deleted diff --git a/concepts/daemonset.html b/concepts/daemonset.html index 93a73f01c..40f40995d 100644 --- a/concepts/daemonset.html +++ b/concepts/daemonset.html @@ -2078,7 +2078,7 @@ diff --git a/concepts/deployment.html b/concepts/deployment.html index 3c9e7927c..f5239dacf 100644 --- a/concepts/deployment.html +++ b/concepts/deployment.html @@ -2551,7 +2551,7 @@ $ echo $? diff --git a/concepts/garbage-collection.html b/concepts/garbage-collection.html index a64fa6d1b..cc001bf00 100644 --- a/concepts/garbage-collection.html +++ b/concepts/garbage-collection.html @@ -2095,7 +2095,7 @@ curl -X DELETE localhost:8080/apis/extensions/v1beta1/namespaces/default/replica diff --git a/concepts/horizontal-pod-autoscaling.html b/concepts/horizontal-pod-autoscaling.html index 0e560d264..a4051a352 100644 --- a/concepts/horizontal-pod-autoscaling.html +++ b/concepts/horizontal-pod-autoscaling.html @@ -2108,7 +2108,7 @@ kubectl delete hpa diff --git a/concepts/index.html b/concepts/index.html index b1183eff8..406b0d81b 100644 --- a/concepts/index.html +++ b/concepts/index.html @@ -2071,7 +2071,7 @@ Kubernetes 还提供完善的管理] diff --git a/concepts/ingress.html b/concepts/ingress.html index 2fbe6d605..d6f9144c9 100644 --- a/concepts/ingress.html +++ b/concepts/ingress.html @@ -2227,7 +2227,7 @@ NAME RULE BACKEND ADDRESS diff --git a/concepts/init-containers.html b/concepts/init-containers.html index ecb874fda..702b9b99d 100644 --- a/concepts/init-containers.html +++ b/concepts/init-containers.html @@ -2201,7 +2201,7 @@ myapp-pod 1/1 Running 0 9m diff --git a/concepts/job.html b/concepts/job.html index 02e8f2271..d4c368a7c 100644 --- a/concepts/job.html +++ b/concepts/job.html @@ -2039,7 +2039,7 @@ $ kubectl logs $pods diff --git a/concepts/label.html b/concepts/label.html index 8d9b32dd5..2edb6884e 100644 --- a/concepts/label.html +++ b/concepts/label.html @@ -1968,7 +1968,7 @@

Kubernetes最终将对labels最终索引和反向索引用来优化查询和watch,在UI和命令行中会对它们排序。不要在label中使用大型、非标识的结构化数据,记录这样的数据应该用annotation。

动机

-

Label能够将组织架构映射到系统架构上(就像是康威定律),这样能够更便于微服务的管理,你可以给object打s上如下类型的label:

+

Label能够将组织架构映射到系统架构上(就像是康威定律),这样能够更便于微服务的管理,你可以给object打上如下类型的label: