https://github.com/ibmstreams/streams-resource-templates
Resource templates for creating customized Streams application images.
https://github.com/ibmstreams/streams-resource-templates
Last synced: 11 months ago
JSON representation
Resource templates for creating customized Streams application images.
- Host: GitHub
- URL: https://github.com/ibmstreams/streams-resource-templates
- Owner: IBMStreams
- License: apache-2.0
- Created: 2020-11-04T18:23:53.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-19T21:01:26.000Z (about 5 years ago)
- Last Synced: 2025-01-23T18:50:35.630Z (over 1 year ago)
- Language: Shell
- Size: 25.4 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# streams-resource-templates
This repository contains examples for customizing your IBM Streams application resources.
_An application image and application resource template are used in your application resource. A default image and resource template are included with Streams. An application resource template is a pod specification. You can use the provided image and template or create your own. A custom application resource template is defined in a configmap. The configmap is specified when provisioning or editing a service instance. There can be multiple resource templates in a configmap. You might need to create a custom image and a resource template or only create a resource template._
### Adding additional dependencies:
If you require additional dependencies that are not provided in the default application image, you must create a custom application image and a custom resource template. For an example, see the following directory: **CustomImageAdditionalDependencies**.
### Customizing the user:
NOTE: Running an application with a specified user UID is only supported on Streams 5.5.x.x code base.
All application pods by default are run with the streamsapp user. If you need to run your application with a different user, you must create a custom application image and a custom resource template. For an example, see the following directory: **CustomImageNewUser**.
### Using persistent storage:
If your application requires a persistent volume claim to be mounted on your application pod, you must create a custom resource template. For an example, see the following directory: **CustomDefaultTagAndPVC**.
### Custom attributes:
If your application requires different Kubernetes characteristics than what is provided by the default application resource template (for example, your application requires specific labels and additional CPU), you must create a custom resource template. For an example, see the following directory: **CustomDefaultTagAndPVC**.
### Use Geospatial toolkit and creating custom resource template
If you use a custom resource template and you have an application that requires the geospatial toolkit, the shared volume must be defined as an emptyDir volume. The geospatial toolkit requires more shared memory than the Docker default. For an example, see the following directory: **CustomDefaultTagAndPVC**.
### Tooling
A sample script, build.sh, can be used to build a custom application image. For details, download the script and run ./build.sh --help. The script is in the base directory for this repository.
### Reference
For details about customizing your application resoures, see [**_Customizing your application resource_**](https://www.ibm.com/support/knowledgecenter/SSQNUZ_latest/svc-streams/admin-app.html).