Word smithing Tornjak documentation (#582)
* Word smithing Signed-off-by: Alan Cha <[email protected]> * Fix typo Signed-off-by: Alan Cha <[email protected]> * Remove unneccesary dash Signed-off-by: Alan Cha <[email protected]> --------- Signed-off-by: Alan Cha <[email protected]>
This commit is contained in:
+13
-20
@@ -6,18 +6,17 @@
|
|||||||
|
|
||||||
## Deploy Standard SPIRE
|
## Deploy Standard SPIRE
|
||||||
|
|
||||||
Follow the production installation of SPIRE as described in the [install instructions] (https://artifacthub.io/packages/helm/spiffe/spire) document.
|
Follow the production installation of SPIRE as described in the [install instructions](https://artifacthub.io/packages/helm/spiffe/spire) document.
|
||||||
|
|
||||||
## Upgrade to enable Tornjak
|
## Upgrade to Enable Tornjak
|
||||||
|
|
||||||
Before we can deploy Tornjak with SPIRE we need to decide whether the services would be
|
Before we can deploy Tornjak with SPIRE, we need to decide whether the services will be using direct access, ingress, or some other method.
|
||||||
using direct access, Ingress, or some other method.
|
|
||||||
|
|
||||||
## Tornjak with Direct Access
|
## Tornjak with Direct Access
|
||||||
|
|
||||||
This can be done using port-forward. For example, to start Tornjak APIs on port 10000
|
This can be done using port forward.
|
||||||
|
|
||||||
Deploy SPIRE with Tornjak enabled
|
Deploy SPIRE with Tornjak enabled and start the Tornjak API on port 10000.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
export TORNJAK_API=http://localhost:10000
|
export TORNJAK_API=http://localhost:10000
|
||||||
@@ -33,11 +32,8 @@ helm upgrade --install -n spire-mgmt spire spire \
|
|||||||
helm test spire -n spire-server
|
helm test spire -n spire-server
|
||||||
```
|
```
|
||||||
|
|
||||||
Run following commands from your shell, to start port forwarding for Tornjak backend (APIs)
|
Port forward the Tornjak backend (APIs) and Tornjak frontend (UI) services. Execute these commands in separate consoles.
|
||||||
and Tornjak frontend (UI) services.
|
If you deployed in a different namespace, your values might differ. Consult the install notes printed when running above `helm upgrade` command in that case.
|
||||||
If you deployed in different namespace, your values might differ. Consult the install notes printed when running above `helm upgrade` command in that case.
|
|
||||||
|
|
||||||
Since `port-forward` is a blocking command, execute them in two different consoles:
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl -n spire-server port-forward service/spire-tornjak-backend 10000:10000
|
kubectl -n spire-server port-forward service/spire-tornjak-backend 10000:10000
|
||||||
@@ -53,8 +49,7 @@ See [values.yaml](./values.yaml) for more details on the chart configurations to
|
|||||||
|
|
||||||
## Deploy Tornjak with ingress-nginx
|
## Deploy Tornjak with ingress-nginx
|
||||||
|
|
||||||
Update your-values.yaml with your ingress information, most importantly, trustDomain, and redeploy
|
Update `your-values.yaml` with your ingress information (most importantly your trustDomain) and redeploy by adding the following:
|
||||||
adding the following:
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
--set global.spire.ingressControllerType=ingress-nginx \
|
--set global.spire.ingressControllerType=ingress-nginx \
|
||||||
@@ -63,11 +58,10 @@ adding the following:
|
|||||||
|
|
||||||
## Deploy Tornjak with Ingress on Openshift
|
## Deploy Tornjak with Ingress on Openshift
|
||||||
|
|
||||||
Obtain the OpenShift Apps Subdomain for Ingress and assign it to the `trustDomain`
|
Obtain the OpenShift apps subdomain for ingress and assign it to the `trustDomain` environment variable:
|
||||||
environment variable:
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
export appdomain=$(oc get cm -n openshift-config-managed console-public -o go-template="{{ .data.consoleURL }}" | sed 's@https://@@; s/^[^.]*\.//')
|
export appdomain=$(oc get cm -n openshift-config-managed console-public -o go-template="{{ .data.consoleURL }}" | sed 's@https://@@; s/^[^.]*\.//')
|
||||||
echo $appdomain
|
echo $appdomain
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -79,8 +73,7 @@ So it can be passed as follow:
|
|||||||
--values examples/tornjak/values-ingress.yaml \
|
--values examples/tornjak/values-ingress.yaml \
|
||||||
```
|
```
|
||||||
|
|
||||||
When running on Openshift in some environments like IBM Cloud,
|
When running on Openshift in some environments like IBM Cloud, you may need to add the following configurations:
|
||||||
you might need to also add the following configurations:
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
--values examples/openshift/values-ibm-cloud.yaml
|
--values examples/openshift/values-ibm-cloud.yaml
|
||||||
@@ -88,14 +81,14 @@ you might need to also add the following configurations:
|
|||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
|
|
||||||
Confirm access to the Tornjak API (backend):
|
Confirm access to the Tornjak API (backend):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl https://tornjak-backend.$appdomain
|
curl https://tornjak-backend.$appdomain
|
||||||
"Welcome to the Tornjak Backend!"
|
"Welcome to the Tornjak Backend!"
|
||||||
```
|
```
|
||||||
|
|
||||||
If the APIs are accessible, we can verify the Tornjak UI (A React application running in the local browser) can be accessed.
|
If the APIs are accessible, we can verify the Tornjak UI (a React application running in the local browser) can be accessed.
|
||||||
Test access to Tornjak by opening the URL provided in Tornjak-frontend route:
|
Test access to Tornjak by opening the URL provided in Tornjak-frontend route:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
Reference in New Issue
Block a user