From e8a2330fcbe1378e382d97ca462c908de88a11a3 Mon Sep 17 00:00:00 2001 From: Lance-Drane Date: Thu, 20 Jun 2024 12:06:49 -0400 Subject: [PATCH] fix ipsportal.yaml to work with development instance Signed-off-by: Lance-Drane --- .gitignore | 2 ++ DeployingOnSpin.md | 4 +++- ipsportal.yaml | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a81c8ee..186c9fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +ipsportal-secrets.yaml + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/DeployingOnSpin.md b/DeployingOnSpin.md index d4ca473..1e870d4 100644 --- a/DeployingOnSpin.md +++ b/DeployingOnSpin.md @@ -112,7 +112,9 @@ Create the `ipsportal` namespace: rancher namespace create ipsportal ``` -Set up secrets from example YAML file, update `ipsportal.yaml` before running, base64 encode, e.g. `echo -n "password" | base64`. Update bearer-token from https://rancher2.spin.nersc.gov/apikeys +- Copy `ipsportal-secrets-example.yaml` into `ipsportal-secrets.yaml` +- modify the values of each key with the base64-encoded values, e.g. `echo -n "password" | base64` +- Update bearer-token from https://rancher2.spin.nersc.gov/apikeys Deploy: diff --git a/ipsportal.yaml b/ipsportal.yaml index ce18aa8..aaf9925 100644 --- a/ipsportal.yaml +++ b/ipsportal.yaml @@ -154,7 +154,8 @@ spec: spec: containers: - name: ipsportal - image: ghcr.io/hpc-simtools/ips-portal/ipsportal:latest + # use "latest" tag for production instance + image: ghcr.io/hpc-simtools/ips-portal/ipsportal:dev imagePullPolicy: Always envFrom: - secretRef: