diff --git a/.gitignore b/.gitignore
index 460a88c521..efdcc2a53e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,3 +24,4 @@ Session.vim
tags
kubernetes.github.io.iml
+_redirects
diff --git a/.travis.yml b/.travis.yml
index 791d289e88..e527e16dbc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,8 +16,10 @@ install:
- cp -r $GOPATH/src/k8s.io/kubernetes/vendor/* $GOPATH/src/
- rm -rf $GOPATH/src/k8s.io/kubernetes/vendor/*
- cp -r $GOPATH/src/k8s.io/kubernetes/staging/src/* $GOPATH/src/
+- go get -v k8s.io/kubernetes/cmd/mungedocs
script:
- go test -v k8s.io/kubernetes.github.io/test
- $GOPATH/bin/md-check --root-dir=$HOME/gopath/src/k8s.io/kubernetes.github.io
- ./verify-docs-format.sh
+- $GOPATH/bin/mungedocs --verbose --verify --upstream=origin --root-dir=$HOME/gopath/src/k8s.io/kubernetes.github.io/docs/ --repo-root=$HOME/gopath/src/k8s.io/kubernetes.github.io --skip-munges=remove-whitespace,blank-lines-surround-preformatted,header-lines,sync-examples,analytics,analytics,kubectl-dash-f,table-of-contents,md-links,kubectl-dash-f
diff --git a/Makefile b/Makefile
index 3657cb577a..36a4842840 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: all build build-preview help serve
+.PHONY: all build build-preview generate-redirects help serve
help: ## Show this help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@@ -11,5 +11,8 @@ build: ## Build site with production settings and put deliverables in _site.
build-preview: ## Build site with drafts and future posts enabled.
jekyll build --drafts --future
+generate-redirects: ## Generate a redirects file and copy it into the _site directory.
+ mkdir -p _site && REDIRECTS_PATH=_site/_redirects ruby redirects.rb
+
serve: ## Boot the development server.
jekyll serve
diff --git a/_data/concepts.yml b/_data/concepts.yml
index 71c6512909..4f41c2c818 100644
--- a/_data/concepts.yml
+++ b/_data/concepts.yml
@@ -2,16 +2,31 @@ bigheader: "Concepts"
abstract: "Detailed explanations of Kubernetes system concepts and abstractions."
toc:
- docs/concepts/index.md
+
- title: Kubectl Command Line
section:
- docs/concepts/tools/kubectl/object-management-overview.md
+ - docs/concepts/tools/kubectl/object-management-using-imperative-commands.md
+ - docs/concepts/tools/kubectl/object-management-using-imperative-config.md
+ - docs/concepts/tools/kubectl/object-management-using-declarative-config.md
+
- title: Kubernetes Objects
section:
- docs/concepts/abstractions/overview.md
- docs/concepts/abstractions/pod.md
+
- title: Controllers
section:
- docs/concepts/abstractions/controllers/statefulsets.md
+
- title: Object Metadata
section:
- docs/concepts/object-metadata/annotations.md
+
+- title: Configuration
+ section:
+ - docs/concepts/configuration/container-command-args.md
+
+- title: Policies
+ section:
+ - docs/concepts/policy/container-capabilities.md
diff --git a/_data/guides.yml b/_data/guides.yml
index f66d0706ee..511ece0885 100644
--- a/_data/guides.yml
+++ b/_data/guides.yml
@@ -3,17 +3,7 @@ abstract: "How to get started, and accomplish tasks, using Kubernetes."
toc:
- docs/user-guide/index.md
-- title: Getting Started
- section:
- - docs/whatisk8s.md
- - docs/getting-started-guides/kubeadm.md
- - docs/getting-started-guides/kops.md
- - docs/getting-started-guides/kargo.md
- - docs/hellonode.md
- - docs/getting-started-guides/kubectl.md
- - docs/getting-started-guides/binary_release.md
- - title: Online Training Course
- path: https://www.udacity.com/course/scalable-microservices-with-kubernetes--ud615
+- docs/whatisk8s.md
- title: Accessing the Cluster
section:
@@ -66,9 +56,13 @@ toc:
- title: Containers and Pods
section:
+ - docs/user-guide/simple-nginx.md
+ - docs/user-guide/pods/single-container.md
- docs/user-guide/pods/multi-container.md
- docs/user-guide/pods/init-container.md
+ - docs/user-guide/configuring-containers.md
- docs/user-guide/pod-templates.md
+ - docs/user-guide/production-pods.md
- docs/user-guide/containers.md
- docs/user-guide/environment-guide/index.md
- docs/user-guide/compute-resources.md
@@ -93,7 +87,7 @@ toc:
- docs/user-guide/connecting-to-applications-proxy.md
- docs/user-guide/connecting-to-applications-port-forward.md
- title: Using Explorer to Examine the Runtime Environment
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/explorer
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/explorer
- title: Creating a Cluster
section:
@@ -119,11 +113,14 @@ toc:
- title: Running Kubernetes on Custom Solutions
section:
- docs/getting-started-guides/scratch.md
+ - docs/getting-started-guides/kubeadm.md
- title: Custom Cloud Solutions
section:
- docs/getting-started-guides/coreos/index.md
- docs/getting-started-guides/ubuntu/index.md
- docs/getting-started-guides/rackspace.md
+ - docs/getting-started-guides/kops.md
+ - docs/getting-started-guides/kargo.md
- title: On-Premise VMs
section:
- docs/getting-started-guides/coreos/index.md
@@ -164,6 +161,7 @@ toc:
- docs/getting-started-guides/ubuntu/troubleshooting.md
- docs/getting-started-guides/ubuntu/decommissioning.md
- docs/getting-started-guides/ubuntu/calico.md
+ - docs/getting-started-guides/ubuntu/operational-considerations.md
- docs/getting-started-guides/ubuntu/glossary.md
- docs/getting-started-guides/ubuntu/local.md
- docs/getting-started-guides/ubuntu/logging.md
@@ -174,6 +172,7 @@ toc:
- docs/admin/cluster-large.md
- docs/admin/multiple-zones.md
- docs/admin/high-availability/index.md
+ - docs/getting-started-guides/binary_release.md
- title: Administering Clusters
section:
@@ -189,6 +188,7 @@ toc:
- docs/admin/disruptions.md
- docs/admin/resourcequota/index.md
- docs/admin/resourcequota/walkthrough.md
+ - docs/admin/resourcequota/limitstorageconsumption.md
- docs/admin/rescheduler.md
- docs/admin/sysctls.md
- docs/admin/cluster-components.md
@@ -200,7 +200,7 @@ toc:
- docs/admin/networking.md
- docs/admin/dns.md
- title: Setting Up and Configuring DNS
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/cluster-dns
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/cluster-dns
- docs/admin/master-node-communication.md
- docs/admin/network-plugins.md
- docs/admin/static-pods.md
diff --git a/_data/reference.yml b/_data/reference.yml
index de1dec2c14..0d7dc82db6 100644
--- a/_data/reference.yml
+++ b/_data/reference.yml
@@ -188,13 +188,13 @@ toc:
- title: Kubernetes Design Docs
section:
- title: Kubernetes Architecture
- path: https://github.com/kubernetes/kubernetes/blob/release-1.3/docs/design/architecture.md
+ path: https://github.com/kubernetes/kubernetes/blob/release-1.5/docs/design/architecture.md
- title: Kubernetes Design Overview
- path: https://github.com/kubernetes/kubernetes/blob/release-1.3/docs/design/
+ path: https://github.com/kubernetes/kubernetes/blob/release-1.5/docs/design/
- title: Kubernetes Identity and Access Management
- path: https://github.com/kubernetes/kubernetes/blob/release-1.3/docs/design/access.md
+ path: https://github.com/kubernetes/kubernetes/blob/release-1.5/docs/design/access.md
- docs/admin/ovs-networking.md
- title: Security Contexts
- path: https://github.com/kubernetes/kubernetes/blob/release-1.3/docs/design/security_context.md
+ path: https://github.com/kubernetes/kubernetes/blob/release-1.5/docs/design/security_context.md
- title: Security in Kubernetes
- path: https://github.com/kubernetes/kubernetes/blob/release-1.3/docs/design/security.md
+ path: https://github.com/kubernetes/kubernetes/blob/release-1.5/docs/design/security.md
diff --git a/_data/samples.yml b/_data/samples.yml
index e94f2b3223..012b00e2c7 100644
--- a/_data/samples.yml
+++ b/_data/samples.yml
@@ -6,72 +6,70 @@ toc:
- title: Storage / Database / KV
section:
- title: Apache Cassandra Database
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/cassandra
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/storage/cassandra
- title: Ceph
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/rbd/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/volumes/rbd/
- title: CephFS
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/cephfs/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/volumes/cephfs/
- title: CockroachDB
path: https://github.com/kubernetes/kubernetes/tree/release-1.4/examples/cockroachdb/
- title: GlusterFS
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/glusterfs/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/volumes/glusterfs/
- title: Hazelcast
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/hazelcast
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/storage/hazelcast
- title: iSCSI
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/iscsi/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/volumes/iscsi/
- title: MySQL Galera
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/mysql-galera
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/storage/mysql-galera
- title: NFS
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/nfs/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/volumes/nfs/
- title: Redis
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/redis/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/storage/redis/
- title: RethinkDB
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/rethinkdb/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/storage/rethinkdb/
- title: Vitess
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/vitess/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/storage/vitess/
- title: Big Data
section:
- title: Apache Spark
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/spark
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/spark
- title: Apache Storm
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/storm
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/storm
- title: Messaging / Queueing
section:
- - title: Celery + RabbitMQ
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/celery-rabbitmq
- title: Hazelcast
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/hazelcast
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/storage/hazelcast
- title: Miscellaneous
section:
- title: Meteor Applications
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/meteor/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/meteor/
- title: OpenShift Origin
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/openshift-origin/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/openshift-origin/
- title: Selenium
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/selenium/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/selenium/
- title: Monitoring and Logging
section:
- title: Elasticsearch
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/elasticsearch/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/elasticsearch/
- title: NewRelic
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/newrelic
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/newrelic
- title: Multi-tier Applications
section:
- title: Guestbook - Go Server
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/guestbook-go/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/guestbook-go/
- title: GuestBook - PHP Server
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/guestbook/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/guestbook/
- docs/getting-started-guides/meanstack.md
- title: MySQL + Wordpress
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/mysql-wordpress-pd/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/mysql-wordpress-pd/
- title: MySQL + Phabricator Server
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/phabricator/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/phabricator/
- title: Nodejs + Mongo
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/nodesjs-mongodb
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/nodesjs-mongodb
- title: Petstore
- path: https://github.com/kubernetes/kubernetes/tree/release-1.3/examples/k8petstore/
+ path: https://github.com/kubernetes/kubernetes/tree/release-1.5/examples/k8petstore/
diff --git a/_data/tasks.yml b/_data/tasks.yml
index 231a583524..de066c9ed2 100644
--- a/_data/tasks.yml
+++ b/_data/tasks.yml
@@ -9,6 +9,7 @@ toc:
- docs/tasks/configure-pod-container/define-command-argument-container.md
- docs/tasks/configure-pod-container/assign-cpu-ram-container.md
- docs/tasks/configure-pod-container/configure-volume-storage.md
+ - docs/tasks/configure-pod-container/configure-persistent-volume-storage.md
- docs/tasks/configure-pod-container/distribute-credentials-secure.md
- docs/tasks/configure-pod-container/pull-image-private-registry.md
- docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md
diff --git a/_data/tools.yml b/_data/tools.yml
index 8c09e7e095..b5e3a29e7f 100644
--- a/_data/tools.yml
+++ b/_data/tools.yml
@@ -7,6 +7,8 @@ toc:
section:
- title: Kubectl
path: /docs/user-guide/kubectl/
+ - title: Kubeadm
+ path: /docs/getting-started-guides/kubeadm
- title: Kubefed
path: /docs/admin/federation/kubefed/
- title: Kubernetes Dashboard
diff --git a/_data/tutorials.yml b/_data/tutorials.yml
index 954d0841a1..695d2b8805 100644
--- a/_data/tutorials.yml
+++ b/_data/tutorials.yml
@@ -29,9 +29,11 @@ toc:
section:
- docs/tutorials/kubernetes-basics/update-intro.html
- docs/tutorials/kubernetes-basics/update-interactive.html
+- title: Online Training Course
+ path: https://www.udacity.com/course/scalable-microservices-with-kubernetes--ud615
+- docs/tutorials/stateless-application/hello-minikube.md
- title: Stateless Applications
section:
- - docs/tutorials/stateless-application/hello-minikube.md
- docs/tutorials/stateless-application/run-stateless-application-deployment.md
- docs/tutorials/stateless-application/expose-external-ip-address-service.md
- docs/tutorials/stateless-application/expose-external-ip-address.md
@@ -41,6 +43,9 @@ toc:
- docs/tutorials/stateful-application/run-stateful-application.md
- docs/tutorials/stateful-application/run-replicated-stateful-application.md
- docs/tutorials/stateful-application/zookeeper.md
+- title: Connecting Applications
+ section:
+ - docs/tutorials/connecting-apps/connecting-frontend-backend.md
- title: Services
section:
- docs/tutorials/services/source-ip.md
diff --git a/_includes/case-study-styles.html b/_includes/case-study-styles.html
deleted file mode 100644
index 48058bd27b..0000000000
--- a/_includes/case-study-styles.html
+++ /dev/null
@@ -1,313 +0,0 @@
-
-
diff --git a/_includes/code.html b/_includes/code.html
index ce653054e8..59a27ebf1a 100644
--- a/_includes/code.html
+++ b/_includes/code.html
@@ -7,5 +7,20 @@
```
{: id="{{include.file | handleize}}"}
{% endcapture %}
-
\ No newline at end of file
+
diff --git a/_includes/footer-scripts.html b/_includes/footer-scripts.html
new file mode 100644
index 0000000000..091545d12a
--- /dev/null
+++ b/_includes/footer-scripts.html
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
diff --git a/_includes/head-header.html b/_includes/head-header.html
deleted file mode 100644
index fa859604d2..0000000000
--- a/_includes/head-header.html
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% seo %}
-
-
-
-
-
-
-
-
-
-
diff --git a/_includes/head.html b/_includes/head.html
new file mode 100644
index 0000000000..2f85549db5
--- /dev/null
+++ b/_includes/head.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+ {% if page.class == "gridPage" %}{% endif %}
+
+
+
+
+
+ {% seo %}
+
diff --git a/_includes/header.html b/_includes/header.html
new file mode 100644
index 0000000000..436e4262c4
--- /dev/null
+++ b/_includes/header.html
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
diff --git a/_includes/user-guide-content-moved.md b/_includes/user-guide-content-moved.md
new file mode 100644
index 0000000000..8b93e29f12
--- /dev/null
+++ b/_includes/user-guide-content-moved.md
@@ -0,0 +1,3 @@
+The topics in the [User Guide](/docs/user-guide/) section of the Kubernetes docs
+are being moved to the [Tasks](/docs/tasks/), [Tutorials](/docs/tutorials/), and
+[Concepts](/docs/concepts) sections. The content in this topic has moved to:
diff --git a/_layouts/basic.html b/_layouts/basic.html
new file mode 100644
index 0000000000..d2b684df52
--- /dev/null
+++ b/_layouts/basic.html
@@ -0,0 +1,15 @@
+
+
+
+ {% include head.html %}
+
+
+ {% include header.html %}
+
+ {{ content }}
+
+ {% include footer.html %}
+
+ {% include footer-scripts.html %}
+
+
diff --git a/_layouts/docwithnav.html b/_layouts/docwithnav.html
index 4ac68e8acd..073e1c9344 100755
--- a/_layouts/docwithnav.html
+++ b/_layouts/docwithnav.html
@@ -10,7 +10,11 @@
-{% include head-header.html %}
+{% include head.html %}
+
+
+
+{% include header.html %}
@@ -43,6 +47,7 @@
+
Edit This Page
@@ -71,57 +76,7 @@
{% include_cached footer.html %}
+{% include footer-scripts.html %}
-
-
-
-
-
diff --git a/case-studies/index.html b/case-studies/index.html
index f593d73fb9..e4e15111c5 100644
--- a/case-studies/index.html
+++ b/case-studies/index.html
@@ -1,11 +1,10 @@
---
title: Case Studies
+layout: basic
+class: gridPage
+cid: caseStudies
---
-
-
-{% include head-header.html %}
-
Kubernetes User Case Studies
A collection of users running Kubernetes in production.
@@ -98,8 +97,3 @@ title: Case Studies
-{% include footer.html %}
-{% include case-study-styles.html %}
-
-
-
diff --git a/case-studies/pearson.html b/case-studies/pearson.html
index 50f16ce7ae..45428b0bf3 100644
--- a/case-studies/pearson.html
+++ b/case-studies/pearson.html
@@ -1,11 +1,10 @@
---
title: Pearson Case Study
+layout: basic
+class: gridPage
+cid: caseStudies
---
-
-
-{% include head-header.html %}
-
@@ -80,9 +79,3 @@ title: Pearson Case Study
-
-{% include footer.html %}
-{% include case-study-styles.html %}
-
-
-