Skip to content

Latest commit

 

History

History
174 lines (114 loc) · 5.47 KB

wrap_up_operator_config.MD

File metadata and controls

174 lines (114 loc) · 5.47 KB

Wrap up operator config

  1. Dev spaces
  2. Metadata configuration
  3. AMQ Streams - Kafka
  4. OpenShift serverless - Knative

Dev spaces

  1. Open specifications tab.

  2. Click "create Che cluster":
    A cloud development environment (CDE) service for OpenShift. Built on the open source Eclipse Che project, Red Hat OpenShift Dev Spaces uses Kubernetes and containers to provide developers and other IT team members with a consistent, secure, and zero-configuration development environment.

  3. Create Che cluster with default settings.

  4. Select the route for your OpenShift dev space (it can take some minutes for this to pop up). Or

  5. Click "Login with OpenShift".

  6. Fill in login credentials.

  7. Allow the selected permissions.

  8. Link the current workshop GitHub repository (https://github.com/maarten-vandeperre/knative-serverless-example-workshop).

  9. Wait for the provisioning of the workspace (can take some minutes as well).

  10. Open a terminal and start exploring. E.g.,

    oc whoami
    oc get pod

Metadata configuration

  1. Make sure you're using the created project
    oc project demo-project
  2. Change the content of the tutorial/scripts/.namespace file (in the dev spaces workspace) to your project name. For us, it is "demo-project"
  3. Change the content of the tutorial/scripts/.root_domain file (in the dev spaces workspace) to your base domain from the OpenShift sandbox. For us, it is "apps.cluster-gq27g.gq27g.sandbox3037.opentlc.com"
  4. Do a find and replace on the domain
  5. Fetch a Quay.io CLI secret in order to execute docker push commands to your Quay repository (will be required for debezium).
    1. Go to quay.io.
    2. Go to user settings.
    3. Click "generate encrypted password"
    4. Go to Docker config and view the password.
    5. Store the encrypted password in rh-ee-mvandepe-auth.json file in the root of the project. (i.e., replace with it).
    6. Store configuration in a secret
         oc create secret generic \
             kafka-connect-cluster-push-secret \
             --from-file=.dockerconfigjson=./rh-ee-mvandepe-auth.json \
             --type=kubernetes.io/dockerconfigjson

AMQ Streams - Kafka

  1. Open Kafka tab.

  2. Click "create Kafka" (in the current namespace).

  3. Click "create Kafka with default settings".

  4. Check for resources to be provisioned.

  5. When all resources are available, the cluster status should reach the ready state.

  6. Create the Kafka connect cluster (Debezium connector):
    !!! Make sure that you have configured the metadata as described in previous section !!!
    Execute the following command in the terminal of the dev space, in the project root:

    sh tutorial/scripts/01_script.sh
  7. Created Kafka Connect cluster should be visible in the UI.

OpenShift serverless - Knative

  1. Open "Knative Eventing" tab.

  2. Click "create Knative eventing".
    !!! This should be created in the "knative-eventing" namespace !!!

  3. Open "Knative Serving" tab.

  4. Click "create Knative serving".
    !!! This should be created in the "knative-serving" namespace !!!

  5. Create with default values.

  6. When all resources are provisioned, you should be able to see the serverless section for all namespaces.
    We'll check for our "demo-project" namespace.

  7. Open "Knative Kafka" tab.

  8. Create the Knative Kafka cluster. !!! list all the brokers (from the namespaces) you want to use for broker and channel and enable source and sink. If you followed our namings, it should be:

    my-cluster-kafka-bootstrap.demo-project.svc.cluster.local:9092