hadoop/hadoop-hdds/docs/content/start/Kubernetes.md
Nanda kumar b661dcf563 HDDS-2002. Update documentation for 0.4.1 release.
Signed-off-by: Anu Engineer <aengineer@apache.org>
2019-08-23 19:04:13 -07:00

1.7 KiB

title
Ozone on Kubernetes

{{< requirements >}}

  • Working kubernetes cluster (LoadBalancer, PersistentVolume are not required)
  • kubectl {{< /requirements >}}

As the apache/ozone docker images are available from the dockerhub 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) Deploy to kubernetes

kubernetes/examples folder of the ozone distribution contains kubernetes deployment resource files for multiple use cases.

To deploy to a hosted cluster use the ozone subdirectory:

cd kubernetes/examples/ozone
kubectl apply -f .

And you can check the results with

kubectl get pod
Access the services

Now you can access any of the services. By default the services are not published but you can access them with port-foward rules.

kubectl port-forward s3g-0 9878:9878
kubectl port-forward scm-0 9876:9876