Consolidate all the examples to a common relative path (#109)
Signed-off-by: Mariusz Sabath <[email protected]>
This commit is contained in:
@@ -15,7 +15,7 @@ Next, edit values.yaml with your settings. Check it into your git repo if using
|
|||||||
Then, deploy the chart pointing at your mysql instance like so:
|
Then, deploy the chart pointing at your mysql instance like so:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
helm upgrade --install --namespace spire-server spire charts/spire -f values.yaml --set "spire-server.dataStore.sql.password=${DBPW}"
|
helm upgrade --install --namespace spire-server spire charts/spire -f examples/external-mysql/values.yaml --set "spire-server.dataStore.sql.password=${DBPW}"
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [production example](../production) for production recommendations.
|
See the [production example](../production) for production recommendations.
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Next, edit values.yaml with your settings. Check it into your git repo if using
|
|||||||
Then, deploy the chart pointing at your postgresql instance like so:
|
Then, deploy the chart pointing at your postgresql instance like so:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
helm upgrade --install --namespace spire-server spire charts/spire -f values.yaml --set "spire-server.dataStore.sql.password=${DBPW}"
|
helm upgrade --install --namespace spire-server spire charts/spire -f examples/external-postgresql/values.yaml --set "spire-server.dataStore.sql.password=${DBPW}"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -12,27 +12,27 @@ kubectl label namespace "spire-server" pod-security.kubernetes.io/enforce=restri
|
|||||||
Update the `example-your-values.yaml` file with your values, then:
|
Update the `example-your-values.yaml` file with your values, then:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
helm upgrade --install --namespace spire-server spire ../../charts/spire \
|
helm upgrade --install --namespace spire-server spire charts/spire \
|
||||||
-f values.yaml -f example-your-values.yaml --render-subchart-notes
|
-f examples/production/values.yaml -f examples/production/example-your-values.yaml --render-subchart-notes
|
||||||
```
|
```
|
||||||
|
|
||||||
If your using ingress-nginx and want to expose the spiffe oidc discovery provider outside the
|
If your using ingress-nginx and want to expose the spiffe oidc discovery provider outside the
|
||||||
cluster, add the following to the end of the helm upgrade example:
|
cluster, add the following to the end of the helm upgrade example:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
-f values-expose-spiffe-oidc-discovery-provider-ingress-nginx.yaml
|
-f examples/production/values-expose-spiffe-oidc-discovery-provider-ingress-nginx.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to expose your spire-server outside of Kubernetes and are using ingress-nginx, add following values file when running `helm template/install/upgrade`.
|
If you want to expose your spire-server outside of Kubernetes and are using ingress-nginx, add following values file when running `helm template/install/upgrade`.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
-f values-expose-spire-server-ingress-nginx.yaml
|
-f examples/production/values-expose-spire-server-ingress-nginx.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
helm upgrade --install --namespace spire-server spire charts/spire -f values.yaml -f values-expose-spire-server-ingress-nginx.yaml
|
helm upgrade --install --namespace spire-server spire charts/spire -f examples/production/values.yaml -f examples/production/values-expose-spire-server-ingress-nginx.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to expose your federation endpoint outside of Kubernetes and are using ingress-nginx
|
If you want to expose your federation endpoint outside of Kubernetes and are using ingress-nginx
|
||||||
@@ -42,25 +42,25 @@ you have two options as described here:
|
|||||||
If you chose profile https_web, use:
|
If you chose profile https_web, use:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
-f values-expose-federation-https-web-ingress-nginx.yaml
|
-f examples/production/values-expose-federation-https-web-ingress-nginx.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
helm upgrade --install --namespace spire-server spire charts/spire -f values.yaml -f values-expose-federation-https-web-ingress-nginx.yaml
|
helm upgrade --install --namespace spire-server spire charts/spire -f examples/production/values.yaml -f examples/production/values-expose-federation-https-web-ingress-nginx.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
If you chose profile https_spiffe, use:
|
If you chose profile https_spiffe, use:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
-f values-expose-federation-https-spiffe-ingress-nginx.yaml
|
-f examples/production/values-expose-federation-https-spiffe-ingress-nginx.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
helm upgrade --install --namespace spire-server spire charts/spire -f values.yaml -f values-expose-federation-https-spiffe-ingress-nginx.yaml
|
helm upgrade --install --namespace spire-server spire charts/spire -f examples/production/values.yaml -f examples/production/values-expose-federation-https-spiffe-ingress-nginx.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
See [values.yaml](./values.yaml) for more details on the chart configurations to achieve this setup.
|
See [values.yaml](./values.yaml) for more details on the chart configurations to achieve this setup.
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ kubectl create namespace "spire-server"
|
|||||||
kubectl label namespace "spire-server" pod-security.kubernetes.io/enforce=restricted
|
kubectl label namespace "spire-server" pod-security.kubernetes.io/enforce=restricted
|
||||||
|
|
||||||
# deploy SPIRE with Tornjak enabled
|
# deploy SPIRE with Tornjak enabled
|
||||||
helm upgrade --install --namespace spire-server \
|
helm upgrade --install --namespace spire-server spire charts/spire \
|
||||||
--values ../production/values.yaml \
|
--values examples/production/values.yaml \
|
||||||
--values ./values.yaml \
|
--values examples/tornjak/values.yaml \
|
||||||
--render-subchart-notes \
|
--render-subchart-notes
|
||||||
spire ../../charts/spire
|
|
||||||
|
|
||||||
# test the Tornjak deployment
|
# test the Tornjak deployment
|
||||||
helm test spire -n spire-server
|
helm test spire -n spire-server
|
||||||
|
|||||||
Reference in New Issue
Block a user