├── .gitignore ├── README.md ├── chapter1 ├── commands.txt └── tomcat-mysql │ ├── dev-ns.yaml │ ├── mysql-rc.yaml │ ├── mysql-svc.yaml │ ├── myweb-deployment.yaml │ ├── myweb-rc.yaml │ ├── myweb-rs.yaml │ └── myweb-svc.yaml ├── chapter2 ├── commands.txt ├── configmap-pod.yaml ├── configmap.yaml ├── daemonset.yaml ├── guestbook │ ├── frontend-rc.yaml │ ├── frontend-svc.yaml │ ├── localredis-pod.yaml │ ├── localredis-svc.yaml │ ├── redis-master-rc-v2.yaml │ ├── redis-master-rc.yaml │ ├── redis-master-svc.yaml │ ├── redis-slave-rc.yaml │ └── redis-slave-svc.yaml ├── port │ ├── hostnetwork-pod.yaml │ ├── hostport-pod.yaml │ └── service.yaml ├── restartpolicy-pod.yaml ├── skydns-rc.yaml ├── skydns-svc.yaml ├── static-web.yaml └── webapp-rc.yaml ├── chapter3 ├── commands.txt ├── secret.yaml └── use-secret-pod.yaml └── chapter5 ├── commands.txt ├── invalid-pod.yaml ├── limitrange.yaml ├── quota ├── best-effort.yaml ├── compute-resource.yaml ├── limits.yaml ├── not-best-effort.yaml └── object-count.yaml └── web-pod.yaml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # k8s-guide-code 2 | 《Kubernetes权威指南 第2版》源代码 3 | -------------------------------------------------------------------------------- /chapter1/commands.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter1/commands.txt -------------------------------------------------------------------------------- /chapter1/tomcat-mysql/dev-ns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: dev 5 | -------------------------------------------------------------------------------- /chapter1/tomcat-mysql/mysql-rc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter1/tomcat-mysql/mysql-rc.yaml -------------------------------------------------------------------------------- /chapter1/tomcat-mysql/mysql-svc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter1/tomcat-mysql/mysql-svc.yaml -------------------------------------------------------------------------------- /chapter1/tomcat-mysql/myweb-deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter1/tomcat-mysql/myweb-deployment.yaml -------------------------------------------------------------------------------- /chapter1/tomcat-mysql/myweb-rc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter1/tomcat-mysql/myweb-rc.yaml -------------------------------------------------------------------------------- /chapter1/tomcat-mysql/myweb-rs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter1/tomcat-mysql/myweb-rs.yaml -------------------------------------------------------------------------------- /chapter1/tomcat-mysql/myweb-svc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter1/tomcat-mysql/myweb-svc.yaml -------------------------------------------------------------------------------- /chapter2/commands.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/commands.txt -------------------------------------------------------------------------------- /chapter2/configmap-pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/configmap-pod.yaml -------------------------------------------------------------------------------- /chapter2/configmap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/configmap.yaml -------------------------------------------------------------------------------- /chapter2/daemonset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/daemonset.yaml -------------------------------------------------------------------------------- /chapter2/guestbook/frontend-rc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/guestbook/frontend-rc.yaml -------------------------------------------------------------------------------- /chapter2/guestbook/frontend-svc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/guestbook/frontend-svc.yaml -------------------------------------------------------------------------------- /chapter2/guestbook/localredis-pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/guestbook/localredis-pod.yaml -------------------------------------------------------------------------------- /chapter2/guestbook/localredis-svc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/guestbook/localredis-svc.yaml -------------------------------------------------------------------------------- /chapter2/guestbook/redis-master-rc-v2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/guestbook/redis-master-rc-v2.yaml -------------------------------------------------------------------------------- /chapter2/guestbook/redis-master-rc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/guestbook/redis-master-rc.yaml -------------------------------------------------------------------------------- /chapter2/guestbook/redis-master-svc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/guestbook/redis-master-svc.yaml -------------------------------------------------------------------------------- /chapter2/guestbook/redis-slave-rc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/guestbook/redis-slave-rc.yaml -------------------------------------------------------------------------------- /chapter2/guestbook/redis-slave-svc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/guestbook/redis-slave-svc.yaml -------------------------------------------------------------------------------- /chapter2/port/hostnetwork-pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/port/hostnetwork-pod.yaml -------------------------------------------------------------------------------- /chapter2/port/hostport-pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/port/hostport-pod.yaml -------------------------------------------------------------------------------- /chapter2/port/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/port/service.yaml -------------------------------------------------------------------------------- /chapter2/restartpolicy-pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/restartpolicy-pod.yaml -------------------------------------------------------------------------------- /chapter2/skydns-rc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/skydns-rc.yaml -------------------------------------------------------------------------------- /chapter2/skydns-svc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/skydns-svc.yaml -------------------------------------------------------------------------------- /chapter2/static-web.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/static-web.yaml -------------------------------------------------------------------------------- /chapter2/webapp-rc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter2/webapp-rc.yaml -------------------------------------------------------------------------------- /chapter3/commands.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter3/commands.txt -------------------------------------------------------------------------------- /chapter3/secret.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter3/secret.yaml -------------------------------------------------------------------------------- /chapter3/use-secret-pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter3/use-secret-pod.yaml -------------------------------------------------------------------------------- /chapter5/commands.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter5/commands.txt -------------------------------------------------------------------------------- /chapter5/invalid-pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter5/invalid-pod.yaml -------------------------------------------------------------------------------- /chapter5/limitrange.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter5/limitrange.yaml -------------------------------------------------------------------------------- /chapter5/quota/best-effort.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter5/quota/best-effort.yaml -------------------------------------------------------------------------------- /chapter5/quota/compute-resource.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter5/quota/compute-resource.yaml -------------------------------------------------------------------------------- /chapter5/quota/limits.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter5/quota/limits.yaml -------------------------------------------------------------------------------- /chapter5/quota/not-best-effort.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter5/quota/not-best-effort.yaml -------------------------------------------------------------------------------- /chapter5/quota/object-count.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter5/quota/object-count.yaml -------------------------------------------------------------------------------- /chapter5/web-pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/custa/k8s-guide-code/HEAD/chapter5/web-pod.yaml --------------------------------------------------------------------------------