Skip to content

Commit

Permalink
Support installing gateway using OCM
Browse files Browse the repository at this point in the history
  • Loading branch information
dejanb committed Oct 13, 2022
1 parent 0d46e5d commit 42b0984
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ develop/init.sh # only the first time and when you want to reset gateway state
docker-compose -f develop/gateway-compose.yaml up
```

## Start gateway in Kubernetes

If you have installed local kubernetes cluster like MicroShift, you can deploy gateway (along with the mesh) with

```
kubectl create namespace eclipsecon-gateway
kubectl apply -n eclipsecon-gateway -f deployments/gateways/gateway-daemonset.yaml
```

## Installing softdevice on microbit (only needed first time)

Download the [softdevice](https://www.nordicsemi.com/Products/Development-software/S140/Download) and unpack.
Expand Down
10 changes: 10 additions & 0 deletions deployments/gateways/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,16 @@ oc delete crd klusterlets.operator.open-cluster-management.io

=== Rollout the gateway application

You can deploy gateway on each cluster in a set by creating a `placement` and appropriate work for it

[source,shell]
----
kubectl apply -n eclipsecon-2022 -f placement.yaml
clusteradm create work eclipsecon-gateway -f gateway-daemonset.yaml --placement gateway
----

=== Rollout the gateway application using work manifest

For each gateway, create the following resource in its (gateway) namespace:

[source,yaml]
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions deployments/gateways/placement.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: cluster.open-cluster-management.io/v1beta1
kind: Placement
metadata:
name: gateway
namespace: eclipsecon-2022
spec:
clusterSets:
- eclipsecon

0 comments on commit 42b0984

Please sign in to comment.