Skip to content

Commit

Permalink
Add Tornjak ingress example (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Franssen <marco.franssen@gmail.com>
Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>
Co-authored-by: kfox1111 <Kevin.Fox@pnnl.gov>
  • Loading branch information
3 people authored Nov 10, 2023
1 parent 6cd2282 commit 821ca12
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/openshift/openshift-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ spire-server:
registry: ghcr.io
repository: spiffe/tornjak-backend
tag: ubi-v1.4.1

nodeAttestor:
k8sPsat:
serviceAccountAllowList: ["spire-system:spire-agent"]
Expand Down
35 changes: 34 additions & 1 deletion examples/tornjak/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ helm upgrade --install --namespace spire-server \
helm test spire -n spire-server
```

## Access tornjak
## Access Tornjak

To access Tornjak you will have to use port-forwarding for the time being *(until we add authentication and ingress)*.

Expand All @@ -41,3 +41,36 @@ kubectl -n spire-server port-forward service/spire-tornjak-frontend 3000:3000
You can now access Tornjak at [localhost:3000](http://localhost:3000).

See [values.yaml](./values.yaml) for more details on the chart configurations to achieve this setup.

## Tornjak and Ingress with ingress-nginx

Update examples/production/example-your-values.yaml with your information, most importantly, trustDomain.

```shell
helm upgrade --install --namespace spire-server spire charts/spire \
--values examples/production/values.yaml \
--values examples/tornjak/values.yaml \
--values examples/tornjak/values-ingress.yaml \
--set global.spire.ingressControllerType=ingress-nginx \
--values examples/production/example-your-values.yaml \
--render-subchart-notes --debug
```

## Tornjak and Ingress on Openshift

When deploying on Openshift, follow the deployment setup as described in
[Openshift README](../openshift/README.md)

Then just add Openshift specific configuration to the above command:

```shell
--values examples/openshift/openshift-values.yaml
```

When running on Openshift in some environments like IBM Cloud,
you might need to add the following configurations:

```shell
--set spiffe-csi-driver.kubeletPath=/var/data/kubelet \
--set spiffe-csi-driver.restrictedScc.enabled=true \
```
8 changes: 8 additions & 0 deletions examples/tornjak/values-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
spire-server:
tornjak:
ingress:
enabled: true

tornjak-frontend:
ingress:
enabled: true

0 comments on commit 821ca12

Please sign in to comment.