This is an automated email from the ASF dual-hosted git repository. dongjoon pushed a commit to branch gh-pages in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/gh-pages by this push: new 45f8a89 Add README.md for ArtifactHub description 45f8a89 is described below commit 45f8a8987e9601a29c8b537a764da109cea131cf Author: Dongjoon Hyun <dongj...@apache.org> AuthorDate: Tue May 13 14:56:45 2025 -0700 Add README.md for ArtifactHub description --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/README.md b/README.md new file mode 100644 index 0000000..7822fa2 --- /dev/null +++ b/README.md @@ -0,0 +1,70 @@ +# Apache Spark Kubernetes Operator + +[](https://artifacthub.io/packages/search?repo=spark-kubernetes-operator) +[](https://opensource.org/licenses/Apache-2.0) + +Apache Spark⢠K8s Operator is a subproject of [Apache Spark](https://spark.apache.org/) and +aims to extend K8s resource manager to manage Apache Spark applications via +[Operator Pattern](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/). + +## Releases + +- <https://github.com/apache/spark-kubernetes-operator/releases/tag/v0.1.0> + +## Install Helm Chart + +```bash +$ helm repo add spark-kubernetes-operator https://apache.github.io/spark-kubernetes-operator +$ helm repo update +$ helm install spark-kubernetes-operator spark-kubernetes-operator/spark-kubernetes-operator +$ helm list +NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION +spark-kubernetes-operator default 1 2025-05-13 12:11:15.303067 -0700 PDT deployed spark-kubernetes-operator-0.1.0 0.1.0 +``` + +## Run Spark Pi App + +```bash +$ kubectl apply -f https://raw.githubusercontent.com/apache/spark-kubernetes-operator/refs/tags/v0.1.0/examples/pi.yaml + +$ kubectl get sparkapp +NAME CURRENT STATE AGE +pi ResourceReleased 4m10s + +$ kubectl delete sparkapp/pi +``` + +## Run Spark Cluster + +```bash +$ kubectl apply -f https://raw.githubusercontent.com/apache/spark-kubernetes-operator/refs/tags/v0.1.0/examples/prod-cluster-with-three-workers.yaml + +$ kubectl get sparkcluster +NAME CURRENT STATE AGE +prod RunningHealthy 10s + +$ kubectl delete sparkcluster prod +sparkcluster.spark.apache.org "prod" deleted +``` + +## Clean Up + +Check the existing Spark applications and clusters. If exists, delete them. + +``` +$ kubectl get sparkapp +No resources found in default namespace. + +$ kubectl get sparkcluster +No resources found in default namespace. +``` + +Remove HelmChart and CRDs. + +``` +$ helm uninstall spark-kubernetes-operator + +$ kubectl delete crd sparkapplications.spark.apache.org + +$ kubectl delete crd sparkclusters.spark.apache.org +``` --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org