Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #287 from kaczyns/smmr-v03
Browse files Browse the repository at this point in the history
multiple namespace instructions updates kabanero 0.3.x
  • Loading branch information
jantley-ibm authored Feb 19, 2020
2 parents 0f554e7 + f280658 commit 7ecf38c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions ref/general/configuration/app-deploy-namespace.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,40 @@ For a full list of supported attributes in a `kabanero.yaml` configuration file,
oc apply -f kabanero.yaml -n kabanero
----
+
. If your application's `app-deploy.yaml` sets `spec.createKnativeService` to `true`, you will need to modify the Service Mesh Member Role to include the deployment namespaces. Obtain a copy of the Service Mesh Member Role (SMMR) by running the following command:
+
----
oc get smmr default -n istio-system -o yaml > smmr.yaml
----
+
Edit the `smmr.yaml` file and specify the namespaces where you intend to deploy applications as separate entries in the list for the `members` attribute.
The following section of a `smmr.yaml` file shows the `production` and `test` namespaces in the `members` list, after the existing namespaces:
+
----
apiVersion: maistra.io/v1
kind: ServiceMeshMemberRole
metadata:
name: default
namespace: istio-system
spec:
members:
- knative-serving
- tekton-pipelines
- kabanero
- production
- test
----
+
Apply your changes to the Service Mesh Member Role by running the following command:
+
----
oc apply -f smmr.yaml -n istio-system
----
+
. Modify your Appsody application `app-deploy.yaml` file to use one of the namespaces you configured in the `targetNamespaces` attribute of the Kabanero CR instance.
Here is an example `app-deploy.yaml` file that deploys the `appsody-hello-world` application to the `test` namespace:
+
Expand Down

0 comments on commit 7ecf38c

Please sign in to comment.