From 5a2388d86ef37532fb646247ec4286ae83be113f Mon Sep 17 00:00:00 2001 From: Eric977 Date: Sat, 21 Dec 2024 13:04:43 +0800 Subject: [PATCH] fix review comment --- .../01-installation/02-kubernetes.md | 46 ++++++++----------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/docs/02-quick-start/01-installation/02-kubernetes.md b/docs/02-quick-start/01-installation/02-kubernetes.md index 1b5ecc104..b56b8ed9a 100644 --- a/docs/02-quick-start/01-installation/02-kubernetes.md +++ b/docs/02-quick-start/01-installation/02-kubernetes.md @@ -1,31 +1,18 @@ --- sidebar_label: Kubernetes --- - # Try Ozone With Kubernetes +Ozone is designed to work well under Kubernetes. This document provides a guide for deploying and experimenting with Ozone on K8s, using MiniKube or a self-hosted Kubernetes cluster. + ## Minikube ### Requirements -* Working minikube setup -* kubectl +- Working minikube setup +- kubectl + ### Deploy the Services The `kubernetes/examples` directory of the Ozone distribution contains Kubernetes deployment resource files for multiple use cases. By default the Kubernetes resource files are configured to use the [apache/ozone](https://hub.docker.com/r/apache/ozone) image from Docker Hub. @@ -42,10 +29,14 @@ And you can check the results with kubectl get pod ``` -Note: the `kubernetes/examples/minikube` resource set is optimized for minikube usage: +:::note + +the `kubernetes/examples/minikube` resource set is optimized for minikube usage: -* You can have multiple Datanodes even if you have only one host (in a real production cluster usually you need one Datanode per physical host) -* The services are published with node port +- You can have multiple Datanodes even if you have only one host (in a real production cluster usually you need one Datanode per physical host) +- The services are published with node port + +::: ### Access the services @@ -73,18 +64,16 @@ Opening kubernetes service default/s3g-public in default browser... ## Hosted Kubernetes Cluster -**Requirements:** - -* Working Kubernetes cluster (LoadBalancer, PersistentVolume are not required) -* kubectl +### Requirements: -As *apache/ozone* Docker images are available from Docker Hub, the deployment process is very similar to Minikube deployment. The only big difference is that we have dedicated set of k8s files for hosted clusters (for example we can use one Datanode per host) +- Working Kubernetes cluster (LoadBalancer, PersistentVolume are not required) +- kubectl ### Deploy to Kubernetes -`kubernetes/examples` folder of the Ozone distribution contains Kubernetes deployment resource files for multiple use cases. +As [apache/ozone](https://hub.docker.com/r/apache/ozone) images are available from Docker Hub, the deployment process is very similar to Minikube deployment. The only big difference is that we have dedicated set of k8s files for hosted clusters (for example we can use one Datanode per host) -To deploy to a hosted cluster use the Ozone subdirectory: +To deploy to a hosted cluster, use the Ozone subdirectory: ``` bash cd kubernetes/examples/ozone @@ -95,6 +84,7 @@ And you can check the results with ``` bash kubectl get pod +kubectl exec scm-0 -- ozone version ``` ### Access the services