From 5bc6a5e8520edf7e3b13d158106a972d56b9f5bf Mon Sep 17 00:00:00 2001 From: Dustin Ngo Date: Sat, 11 Jan 2025 05:12:53 +0900 Subject: [PATCH] feat: Add authorization overlays (#5695) * feat: Add authorization overlays * Update kustomize/auth/patches.yaml --------- Co-authored-by: Mikyo King --- kustomize/auth/kustomization.yaml | 5 +++++ kustomize/auth/patches.yaml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 kustomize/auth/kustomization.yaml create mode 100644 kustomize/auth/patches.yaml diff --git a/kustomize/auth/kustomization.yaml b/kustomize/auth/kustomization.yaml new file mode 100644 index 0000000000..b97c178748 --- /dev/null +++ b/kustomize/auth/kustomization.yaml @@ -0,0 +1,5 @@ +bases: + - ../../base + +patchesStrategicMerge: + - patches.yaml diff --git a/kustomize/auth/patches.yaml b/kustomize/auth/patches.yaml new file mode 100644 index 0000000000..bb60a2cfc0 --- /dev/null +++ b/kustomize/auth/patches.yaml @@ -0,0 +1,22 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: phoenix +spec: + template: + spec: + containers: + - name: phoenix + env: + - name: PHOENIX_ENABLE_AUTH + value: "true" + # When enabling Auth, you must provide a secret + # For example, set a Kubernetes Secret with: + # kubectl create secret generic phoenix-secret --from-literal=secret-key='[YOUR-SECRET]' + # then use + # valueFrom: + # secretKeyRef: + # name: phoenix-secret + # key: secret-key + - name: PHOENIX_SECRET + value: "3413f9a7735bb780c6b8e4db7d946a492b64d26112a955cdea6a797f4c833593" \ No newline at end of file