-
OpenShift Cluster
-
Camel K CLI - kamel
-
OpenShift CLI - oc
Parameter | Example Value | Definition |
---|---|---|
token |
sha256~vFanQbthlPKfsaldJT3bdLXIyEkd7ypO_XPygY1DNtQ |
access token for a user with cluster-admin privileges |
server |
Cluster API URL. |
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
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