Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 2.01 KB

Kubernetes_Service.md

File metadata and controls

42 lines (30 loc) · 2.01 KB

Running in IBM Cloud Kubernetes Service

Prerequisites

To build and run the sample, you must have the done the following:

Deploy the Application

  1. From the Event Streams for IBM Cloud instance dashboard, click Service Credentials and select or create a new one. Copy its content, create a file credentials.json and paste the content.

  2. To deploy the application you first need to bind the Event Streams for IBM Cloud service instance to the cluster. Create a secret using the content from the file credentials.json

    kubectl create secret generic eventstreams-binding --from-file=binding=credentials.json

    The command above creates a secret in your cluster named eventstreams-binding.

  3. Configure the CLI to run kubectl

  4. Deploy the application in the cluster:

    kubectl apply -f kafka-java-liberty-sample.yaml
  5. Access the application:

    kubectl wait pod kafka-java-liberty-sample --for=condition=Ready
    kubectl port-forward kafka-java-liberty-sample 9080:9080

    Point your browser to http://localhost:9080

Further references

If you want find out more about IBM Cloud Kubernetes Service or Kubernetes then check the following documents:

IBM Cloud Kubernetes Service

Kubernetes Documentation