open-horizon / examples

Code examples you can use with Horizon.
Apache License 2.0
40 stars 65 forks source link

Example edge cluster service with Operator #310

Closed dabooz closed 3 years ago

dabooz commented 4 years ago

Initial material here: https://ibm.ent.box.com/notes/622995576630 for creating an operator We will need more material describing the hzn side. We need both a sample and the doc on how to create the sample.

t-fine commented 4 years ago

KC doc on how to create a kube operator: https://ibm.ent.box.com/notes/658454881571

testing operator: https://github.ibm.com/booz/kube-operator

t-fine commented 4 years ago

Content for this page: https://www-03preprod.ibm.com/support/knowledgecenter/SSFKVV_4.1/devices/developing/creating_hello_world.html

Creating your own hello world for clusters

In order to deploy a containerized edge service to an edge cluster, a software developer first has to build a Kubernetes Operator that deploys the containerized edge service in a Kubernetes cluster. In the following example you will learn more about writing operators and how use one to deploy an edge service to a cluster (in this case ibm.helloworld), and learn how you can pass horizon environment variables (in addition to any other environment variables needed) to your deployed service pods.

See Creating your own Hello World cluster service (LINK: https://github.com/open-horizon/examples/tree/master/edge/services/operator)

To run the ibm.operator service see Using the Operator Example Edge Service with Deployment Policy (LINK: https://github.com/open-horizon/examples/tree/master/edge/services/operator/CreateService.md

Rene-Ch1 commented 4 years ago

I incorporated the K content and sent to Troy (links prob don't work yet). https://www-03preprod.ibm.com/support/knowledgecenter/SSFKVV_4.1/devices/developing/creating_hello_world.html