https://github.com/redhat-middleware-workshops/rhtr-2020-api-mgmt-kafka-workshop
A lab that guides attendees through the creation of an event streaming architecture protected with API Management
https://github.com/redhat-middleware-workshops/rhtr-2020-api-mgmt-kafka-workshop
Last synced: 3 months ago
JSON representation
A lab that guides attendees through the creation of an event streaming architecture protected with API Management
- Host: GitHub
- URL: https://github.com/redhat-middleware-workshops/rhtr-2020-api-mgmt-kafka-workshop
- Owner: RedHat-Middleware-Workshops
- Created: 2020-08-25T10:29:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-06T21:09:33.000Z (almost 3 years ago)
- Last Synced: 2025-03-21T13:44:18.164Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 26.9 MB
- Stars: 9
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RHTR 2020 Kafka and API Management IoT Lab
## Local Development & Deployment
Refer to the [services README](/services).
## Deployment on OpenShift
Requires an OpenShift 4.4 or later cluster with the CamelK and AMQ Streams
operators installed for all namespaces.```bash
# Generate project.yml from individual definitions in each service
./scripts/generate.complete.project.sh# Create a project namespace and apply the project.yml resources
oc new-project city-of-losangeles
oc apply -f project.complete.yml
```## Deploying the Lab AgnosticD Workload
```bash
# These will vary based on your opentlc ID and provisioned cluster details
export OCP_USERNAME=username-redhat.com
export GUID="1001"
export TARGET_HOST="bastion.$GUID.example.opentlc.com"
export APPS_DOMAIN="apps.cluster-$GUID.$GUID.example.opentlc.com"# Always use this value since it's the workload name
export WORKLOAD="ocp4-workload-iot-managed"# Change this depending on lab size
export USER_COUNT=5# Copy SSH key to authorised keys on the bastion
ssh-copy-id $OCP_USERNAME@bastion.$GUID.example.opentlc.com# Clone the agnosticd workloads repo
git clone https://github.com/redhat-cop/agnosticd/ agnosticd
cd agnosticd/ansibleansible-playbook -i ${TARGET_HOST}, ./configs/ocp-workloads/ocp-workload.yml \
-e"ansible_ssh_private_key_file=~/.ssh/id_rsa" \
-e"ansible_user=${OCP_USERNAME}" \
-e"ocp_username=${OCP_USERNAME}" \
-e"ocp_workload=${WORKLOAD}" \
-e"guid=${GUID}" \
-e"num_users=${USER_COUNT}" \
-e"ocp_workload_test=true" \
-e"ocp_user_needs_quota=true" \
-e"ocp_apps_domain=${APPS_DOMAIN}" \
-e"ACTION=create"
```