From 1f42e4aa3eb97f624c13622bc3eee743f91b251f Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Fri, 27 Nov 2026 21:44:39 +1100 Subject: [PATCH] Point cephrgw-operator at s3.ceph.unkin.net --- apps/base/cephrgw-system/deployment.yaml | 13 +++++++++---- apps/base/cephrgw-system/vaultstaticsecret.yaml | 8 +++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/apps/base/cephrgw-system/deployment.yaml b/apps/base/cephrgw-system/deployment.yaml index 12e4645..452f4fb 100644 --- a/apps/base/cephrgw-system/deployment.yaml +++ b/apps/base/cephrgw-system/deployment.yaml @@ -32,13 +32,18 @@ spec: - --health-probe-bind-address=:8081 - --leader-elect envFrom: - # Provides CEPH_RGW_ACCESS_KEY/SECRET_KEY and the endpoints - # (CEPH_RGW_ENDPOINT / CEPH_RGW_ADMIN_ENDPOINT), plus optional - # CEPH_RGW_REGION / CEPH_RGW_CA / CEPH_RGW_INSECURE. Rendered from - # Vault per docs/ceph-setup.md; not managed in GitOps. + # Provides CEPH_RGW_ACCESS_KEY/SECRET_KEY, plus optional + # CEPH_RGW_REGION / CEPH_RGW_INSECURE. Rendered from Vault per + # docs/ceph-setup.md; not managed in GitOps. - secretRef: name: cephrgw-credentials env: + # Explicit env wins over envFrom, so these override any endpoint + # still present in the Vault-rendered secret. + - name: CEPH_RGW_ENDPOINT + value: https://s3.ceph.unkin.net + - name: CEPH_RGW_ADMIN_ENDPOINT + value: https://s3.ceph.unkin.net # Trust the internal unkin.net (Vault PKI) CA so the operator can # verify radosgw's TLS cert. vault-ca-cert is reflected into every # namespace from the certificates namespace. diff --git a/apps/base/cephrgw-system/vaultstaticsecret.yaml b/apps/base/cephrgw-system/vaultstaticsecret.yaml index 11009df..5fd1519 100644 --- a/apps/base/cephrgw-system/vaultstaticsecret.yaml +++ b/apps/base/cephrgw-system/vaultstaticsecret.yaml @@ -1,16 +1,14 @@ --- # Renders the radosgw credentials from Vault into the cephrgw-credentials # Secret the operator Deployment consumes via envFrom. The KV secret's keys -# (CEPH_RGW_ACCESS_KEY/SECRET_KEY, CEPH_RGW_ENDPOINT, optional -# CEPH_RGW_ADMIN_ENDPOINT/REGION/CA) are copied verbatim, so they land as the -# matching env vars. +# (CEPH_RGW_ACCESS_KEY/SECRET_KEY, optional CEPH_RGW_REGION) are copied +# verbatim, so they land as the matching env vars. Endpoints are set in the +# Deployment. # # The path sits under the templated default policy # (kv/data/kubernetes/namespace///*), so it needs no dedicated Vault # role or policy. Seed the values with: # vault kv put kv/kubernetes/namespace/cephrgw-system/default/cephrgw-credentials \ -# CEPH_RGW_ENDPOINT=https://s3.ceph.unkin.net \ -# CEPH_RGW_ADMIN_ENDPOINT=https://radosgw.service.consul:443 \ # CEPH_RGW_ACCESS_KEY=... CEPH_RGW_SECRET_KEY=... apiVersion: secrets.hashicorp.com/v1beta1 kind: VaultStaticSecret