GithubHelp home page GithubHelp logo

guilhermecamposo / demo_serverless_minio Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

Example on how to use Camel K for a serverless integration with Minio

Jinja 65.39% Groovy 13.30% Java 21.31%
camel camelk minio serverless

demo_serverless_minio's Introduction

Camel K Serveless Minio Integration Demo

Requirements

  • OpenShift Cluster

  • Camel K CLI - kamel

  • OpenShift CLI - oc

Preparing the Environment Using Ansible

Parameters

Parameter Example Value Definition

token

sha256~vFanQbthlPKfsaldJT3bdLXIyEkd7ypO_XPygY1DNtQ

access token for a user with cluster-admin privileges

server

https://api.${domain}.com:6443

Cluster API URL.

Running the playbook

You will need an user with permission to create a project and install operators on cluster level. Export the user’s token and the server API address as environment variables, then run the following command under the ansible folder:

cd ansible/

ansible-playbook -e token=${token} -e server=${server} playbook.yml

Running the Integration

Before using kamel CLI make sure your are connected to the right namespace.

oc login
oc project camel-k-serverless

Then move to camel-k folder and run the integration.

With properties:

kamel run --property file:minio.properties MinioUploader.java

With configmaps:

oc create -f minio-config.yml -n camel-k-serverless
kamel run --config configmap:minio-config MinioUploader.java

Testing the Integration

You may test your deployment using cURL:

ROUTE=$(oc get routes.serving.knative.dev minio-uploader  -o jsonpath='{.status.url}' -n camel-k-serverless)

curl --request POST $ROUTE --header 'Content-Type: text/plain' --data-raw 'This is the file content.'

demo_serverless_minio's People

Contributors

guilhermecamposo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.