https://github.com/radanalyticsio/oshinko-oshizushi
an operator to wrap oshinko s2i mechanics
https://github.com/radanalyticsio/oshinko-oshizushi
Last synced: 4 months ago
JSON representation
an operator to wrap oshinko s2i mechanics
- Host: GitHub
- URL: https://github.com/radanalyticsio/oshinko-oshizushi
- Owner: radanalyticsio
- License: apache-2.0
- Created: 2019-07-11T13:56:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-05T20:31:27.000Z (over 6 years ago)
- Last Synced: 2025-02-15T20:53:11.377Z (over 1 year ago)
- Language: Dockerfile
- Size: 53.7 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Oshinko Oshizushi
An operator that encapsulates the source-to-image process for creating Apache
Spark based Deployments and Jobs within OpenShift.
## Dependencies
This operator requires that you also have the
[Apache Spark Operator](https://operatorhub.io/operator/radanalytics-spark) installed.
## Quickstart
**Prerequisites**
1. A terminal shell with the OpenShift client tool (`oc`) installed.
1. An active login to OpenShift with `cluster-admin` role privileges.
(this is required to install the custom resource definitions)
1. A copy of this repository.
**Procedure**
1. Install the custom resource definitions.
```
oc apply -f deploy/crds
```
1. Install the operator.
```
oc apply -f deploy
```
1. Create an application.
```
oc apply -f examples/oshinkoapplication-sparkpi-python27.yaml
```
You should now see the operator creating an ImageStream, Build, and Deployment
for the application. You will also see a Spark cluster being deployed.
**Validation**
To check that the application is working, you can run the following commands
to create and expose an external route and then access the application for an estimate
of the value for Pi. For a longer description of this application and its
functionality, please see [this tutorial](https://radanalytics.io/my-first-radanalytics-app.html).
1. Create a service
```
oc create service clusterip sparkpi --tcp=8080
```
1. Expose the service
```
oc expose svc/sparkpi
```
1. Curl the endpoint for a terrible estimate of Pi
```
curl http://`oc get routes/sparkpi --template='{{.spec.host}}'`/sparkpi
```
If everything has worked you will see a message from the service returning
an estimate for the value of Pi.