From 4207de7d636ebff8b93556b395ebf6222b2451b5 Mon Sep 17 00:00:00 2001 From: Steve Perry Date: Sat, 19 May 2018 21:43:52 -0700 Subject: [PATCH] Improve left nav for Tasks. (#8582) * Add weights to first three Task sections. * Add one more weight. --- .../tasks/configure-pod-container/_index.md | 2 +- .../assign-cpu-resource.md | 1 + .../assign-memory-resource.md | 1 + .../assign-pods-nodes.md | 1 + .../attach-handler-lifecycle-event.md | 1 + .../configure-liveness-readiness-probes.md | 1 + .../configure-persistent-volume-storage.md | 1 + .../configure-pod-configmap.md | 1 + .../configure-pod-initialization.md | 1 + .../configure-projected-volume-storage.md | 1 + .../configure-service-account.md | 1 + .../configure-volume-storage.md | 1 + .../extended-resource.md | 1 + .../pull-image-private-registry.md | 1 + .../quality-service-pod.md | 1 + .../security-context.md | 1 + .../share-process-namespace.md | 1 + .../translate-compose-kubernetes.md} | 6 +-- content/en/docs/tasks/tools/_index.md | 2 +- .../en/docs/tasks/tools/install-kubeadm.md | 1 + .../en/docs/tasks/tools/install-kubectl.md | 1 + .../en/docs/tasks/tools/install-minikube.md | 1 + content/en/docs/tools/kompose/_index.md | 43 ------------------- static/_redirects | 1 + 24 files changed, 23 insertions(+), 50 deletions(-) rename content/en/docs/{tools/kompose/user-guide.md => tasks/configure-pod-container/translate-compose-kubernetes.md} (99%) delete mode 100644 content/en/docs/tools/kompose/_index.md diff --git a/content/en/docs/tasks/configure-pod-container/_index.md b/content/en/docs/tasks/configure-pod-container/_index.md index c797dc19a5..ea8d5a89d5 100755 --- a/content/en/docs/tasks/configure-pod-container/_index.md +++ b/content/en/docs/tasks/configure-pod-container/_index.md @@ -1,5 +1,5 @@ --- title: "Configure Pods and Containers" -weight: 30 +weight: 20 --- diff --git a/content/en/docs/tasks/configure-pod-container/assign-cpu-resource.md b/content/en/docs/tasks/configure-pod-container/assign-cpu-resource.md index bfe53504fe..8a6eebb01a 100644 --- a/content/en/docs/tasks/configure-pod-container/assign-cpu-resource.md +++ b/content/en/docs/tasks/configure-pod-container/assign-cpu-resource.md @@ -1,6 +1,7 @@ --- title: Assign CPU Resources to Containers and Pods content_template: templates/task +weight: 20 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/assign-memory-resource.md b/content/en/docs/tasks/configure-pod-container/assign-memory-resource.md index 90aae46c47..451e2123f5 100644 --- a/content/en/docs/tasks/configure-pod-container/assign-memory-resource.md +++ b/content/en/docs/tasks/configure-pod-container/assign-memory-resource.md @@ -1,6 +1,7 @@ --- title: Assign Memory Resources to Containers and Pods content_template: templates/task +weight: 10 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/assign-pods-nodes.md b/content/en/docs/tasks/configure-pod-container/assign-pods-nodes.md index e2e043f929..53487e7c56 100644 --- a/content/en/docs/tasks/configure-pod-container/assign-pods-nodes.md +++ b/content/en/docs/tasks/configure-pod-container/assign-pods-nodes.md @@ -1,6 +1,7 @@ --- title: Assign Pods to Nodes content_template: templates/task +weight: 120 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md b/content/en/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md index c632d90f60..c85f18bbe1 100644 --- a/content/en/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md +++ b/content/en/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md @@ -1,6 +1,7 @@ --- title: Attach Handlers to Container Lifecycle Events content_template: templates/task +weight: 140 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md index db9f6e7d2e..750af757b4 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md +++ b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md @@ -1,6 +1,7 @@ --- title: Configure Liveness and Readiness Probes content_template: templates/task +weight: 110 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md b/content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md index 987254bd44..dae2a30654 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md +++ b/content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md @@ -1,6 +1,7 @@ --- title: Configure a Pod to Use a PersistentVolume for Storage content_template: templates/task +weight: 60 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md b/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md index 2717606c9a..77aea25c28 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md +++ b/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md @@ -1,6 +1,7 @@ --- title: Configure a Pod to Use a ConfigMap content_template: templates/task +weight: 150 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/configure-pod-initialization.md b/content/en/docs/tasks/configure-pod-container/configure-pod-initialization.md index bd4db4174c..c5ac3a2101 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-pod-initialization.md +++ b/content/en/docs/tasks/configure-pod-container/configure-pod-initialization.md @@ -1,6 +1,7 @@ --- title: Configure Pod Initialization content_template: templates/task +weight: 130 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/configure-projected-volume-storage.md b/content/en/docs/tasks/configure-pod-container/configure-projected-volume-storage.md index cf1e589eca..f12bd37dd8 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-projected-volume-storage.md +++ b/content/en/docs/tasks/configure-pod-container/configure-projected-volume-storage.md @@ -4,6 +4,7 @@ reviewers: - pmorie title: Configure a Pod to Use a Projected Volume for Storage content_template: templates/task +weight: 70 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/configure-service-account.md b/content/en/docs/tasks/configure-pod-container/configure-service-account.md index 6863365cd2..2c96fc6b15 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-service-account.md +++ b/content/en/docs/tasks/configure-pod-container/configure-service-account.md @@ -4,6 +4,7 @@ reviewers: - liggitt - thockin title: Configure Service Accounts for Pods +weight: 90 --- A service account provides an identity for processes that run in a Pod. diff --git a/content/en/docs/tasks/configure-pod-container/configure-volume-storage.md b/content/en/docs/tasks/configure-pod-container/configure-volume-storage.md index a9ab2d935c..e3a73199ae 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-volume-storage.md +++ b/content/en/docs/tasks/configure-pod-container/configure-volume-storage.md @@ -1,6 +1,7 @@ --- title: Configure a Pod to Use a Volume for Storage content_template: templates/task +weight: 50 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/extended-resource.md b/content/en/docs/tasks/configure-pod-container/extended-resource.md index 64192f90e8..108927af1e 100644 --- a/content/en/docs/tasks/configure-pod-container/extended-resource.md +++ b/content/en/docs/tasks/configure-pod-container/extended-resource.md @@ -1,6 +1,7 @@ --- title: Assign Extended Resources to a Container content_template: templates/task +weight: 40 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md b/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md index 39750d2f34..f502294894 100644 --- a/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md +++ b/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md @@ -1,6 +1,7 @@ --- title: Pull an Image from a Private Registry content_template: templates/task +weight: 100 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/quality-service-pod.md b/content/en/docs/tasks/configure-pod-container/quality-service-pod.md index 20fff410f7..27356fed82 100644 --- a/content/en/docs/tasks/configure-pod-container/quality-service-pod.md +++ b/content/en/docs/tasks/configure-pod-container/quality-service-pod.md @@ -1,6 +1,7 @@ --- title: Configure Quality of Service for Pods content_template: templates/task +weight: 30 --- diff --git a/content/en/docs/tasks/configure-pod-container/security-context.md b/content/en/docs/tasks/configure-pod-container/security-context.md index b2f67588c7..662ba725a1 100644 --- a/content/en/docs/tasks/configure-pod-container/security-context.md +++ b/content/en/docs/tasks/configure-pod-container/security-context.md @@ -5,6 +5,7 @@ reviewers: - thockin title: Configure a Security Context for a Pod or Container content_template: templates/task +weight: 80 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/configure-pod-container/share-process-namespace.md b/content/en/docs/tasks/configure-pod-container/share-process-namespace.md index f0e1cfc735..31a741651a 100644 --- a/content/en/docs/tasks/configure-pod-container/share-process-namespace.md +++ b/content/en/docs/tasks/configure-pod-container/share-process-namespace.md @@ -6,6 +6,7 @@ approvers: - yujuhong - dchen1107 content_template: templates/task +weight: 160 --- {{% capture overview %}} diff --git a/content/en/docs/tools/kompose/user-guide.md b/content/en/docs/tasks/configure-pod-container/translate-compose-kubernetes.md similarity index 99% rename from content/en/docs/tools/kompose/user-guide.md rename to content/en/docs/tasks/configure-pod-container/translate-compose-kubernetes.md index 73eece6769..51a7944e2e 100644 --- a/content/en/docs/tools/kompose/user-guide.md +++ b/content/en/docs/tasks/configure-pod-container/translate-compose-kubernetes.md @@ -1,12 +1,8 @@ --- - approvers: - cdrage - title: Translate a Docker Compose File to Kubernetes Resources -redirect_from: -- "/docs/tools/kompose/" -- "/docs/tools/kompose/index.html" +weight: 170 --- {{< toc >}} diff --git a/content/en/docs/tasks/tools/_index.md b/content/en/docs/tasks/tools/_index.md index 4b7c6df5df..78a5ead6cd 100755 --- a/content/en/docs/tasks/tools/_index.md +++ b/content/en/docs/tasks/tools/_index.md @@ -1,5 +1,5 @@ --- title: "Install Tools" -weight: 20 +weight: 10 --- diff --git a/content/en/docs/tasks/tools/install-kubeadm.md b/content/en/docs/tasks/tools/install-kubeadm.md index d0d788746f..dec00f4296 100644 --- a/content/en/docs/tasks/tools/install-kubeadm.md +++ b/content/en/docs/tasks/tools/install-kubeadm.md @@ -1,6 +1,7 @@ --- title: Installing kubeadm content_template: templates/task +weight: 30 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/tools/install-kubectl.md b/content/en/docs/tasks/tools/install-kubectl.md index cb4fe121ef..bb5ad89868 100644 --- a/content/en/docs/tasks/tools/install-kubectl.md +++ b/content/en/docs/tasks/tools/install-kubectl.md @@ -4,6 +4,7 @@ reviewers: - mikedanese title: Install and Set Up kubectl content_template: templates/task +weight: 10 --- {{% capture overview %}} diff --git a/content/en/docs/tasks/tools/install-minikube.md b/content/en/docs/tasks/tools/install-minikube.md index 73ee16ca54..830469052f 100644 --- a/content/en/docs/tasks/tools/install-minikube.md +++ b/content/en/docs/tasks/tools/install-minikube.md @@ -1,6 +1,7 @@ --- title: Install Minikube content_template: templates/task +weight: 20 --- {{% capture overview %}} diff --git a/content/en/docs/tools/kompose/_index.md b/content/en/docs/tools/kompose/_index.md deleted file mode 100644 index 9e1ac5ef6f..0000000000 --- a/content/en/docs/tools/kompose/_index.md +++ /dev/null @@ -1,43 +0,0 @@ ---- - -approvers: -- cdrage - -title: Kompose Overview ---- - -`kompose` is a tool to help users who are familiar with `docker-compose` move to **Kubernetes**. `kompose` takes a Docker Compose file and translates it into Kubernetes resources. - -`kompose` is a convenience tool to go from local Docker development to managing your application with Kubernetes. Transformation of the Docker Compose format to Kubernetes resources manifest may not be exact, but it helps tremendously when first deploying an application on Kubernetes. - -## Use Case - -If you have a Docker Compose `docker-compose.yml` or a Docker Distributed Application Bundle `docker-compose-bundle.dab` file, you can convert it into Kubernetes deployments and services like this: - -```console -$ kompose --bundle docker-compose-bundle.dab convert -WARN[0000]: Unsupported key networks - ignoring -file "redis-svc.yaml" created -file "web-svc.yaml" created -file "web-deployment.yaml" created -file "redis-deployment.yaml" created - -$ kompose -f docker-compose.yml convert -WARN[0000]: Unsupported key networks - ignoring -file "redis-svc.yaml" created -file "web-svc.yaml" created -file "web-deployment.yaml" created -file "redis-deployment.yaml" created -``` - -## Installation - -Grab the latest [release](https://github.com/kubernetes-incubator/kompose/releases) for your OS, untar and extract the binary. - -### Linux - -```sh -wget https://github.com/kubernetes-incubator/kompose/releases/download/v0.1.2/kompose_linux-amd64.tar.gz -tar -xvf kompose_linux-amd64.tar.gz --strip 1 -sudo mv kompose /usr/local/bin -``` diff --git a/static/_redirects b/static/_redirects index e931541709..c55b90fa19 100644 --- a/static/_redirects +++ b/static/_redirects @@ -276,6 +276,7 @@ /docs/tasks/web-ui-dashboard/ /docs/tasks/access-application-cluster/web-ui-dashboard/ 301 /docs/templatedemos/* /docs/home/contribute/page-templates/ 301 +/docs/tools/kompose/user-guide/ /docs/tasks/configure-pod-container/translate-compose-kubernetes/ 301 /docs/tools/kompose/ /docs/tools/kompose/user-guide/ 301 /docs/troubleshooting/ /docs/tasks/debug-application-cluster/troubleshooting/ 301