From 10545c03beae00ee55c195863d678d22d8b06b8a Mon Sep 17 00:00:00 2001 From: Jeffrey Smeets Date: Sun, 23 Aug 2026 20:34:38 +0200 Subject: [PATCH] searxng: migrate to envFrom; move remaining literals into Infisical Non-secret config now lives in Infisical alongside the secrets, so containers carry envFrom only and no loose env entries. --- .../deployment.yaml} | 11 +++----- .../searxng/searxng/infisicalsecret.yaml | 25 +++++++++++++++++++ .../persistentvolumeclaim.yaml} | 0 .../service.yaml} | 0 .../uptime-kuma/mariadb/statefulset.yaml | 3 --- .../uptime-kuma/uptime-kuma/statefulset.yaml | 3 --- .../zipline-postgres-statefulset.yaml | 3 --- .../zipline/zipline/zipline-statefulset.yaml | 3 --- 8 files changed, 28 insertions(+), 20 deletions(-) rename applications/searxng/{searxng-deployment.yaml => searxng/deployment.yaml} (75%) create mode 100644 applications/searxng/searxng/infisicalsecret.yaml rename applications/searxng/{searxng-persistentvolumeclaim.yaml => searxng/persistentvolumeclaim.yaml} (100%) rename applications/searxng/{searxng-service.yaml => searxng/service.yaml} (100%) diff --git a/applications/searxng/searxng-deployment.yaml b/applications/searxng/searxng/deployment.yaml similarity index 75% rename from applications/searxng/searxng-deployment.yaml rename to applications/searxng/searxng/deployment.yaml index 7a256e7..023c350 100644 --- a/applications/searxng/searxng-deployment.yaml +++ b/applications/searxng/searxng/deployment.yaml @@ -21,14 +21,9 @@ spec: image: searxng/searxng:latest ports: - containerPort: 8080 - env: - - name: SEARXNG_BASE_URL - value: "https://search.jsme.be" - - name: SEARXNG_SECRET - valueFrom: - secretKeyRef: - name: searxng-secrets - key: SEARXNG_SECRET_KEY + envFrom: + - secretRef: + name: searxng-app-secrets resources: requests: cpu: 50m diff --git a/applications/searxng/searxng/infisicalsecret.yaml b/applications/searxng/searxng/infisicalsecret.yaml new file mode 100644 index 0000000..504209f --- /dev/null +++ b/applications/searxng/searxng/infisicalsecret.yaml @@ -0,0 +1,25 @@ +apiVersion: secrets.infisical.com/v1alpha1 +kind: InfisicalSecret +metadata: + name: searxng-app-secrets + namespace: infisical +spec: + hostAPI: https://infisical.jsme.be + resyncInterval: 30 + authentication: + kubernetesAuth: + identityId: "5458def7-7c63-40d2-95da-41c614d0933a" + serviceAccountRef: + name: infisical-auth + namespace: infisical + autoCreateServiceAccountToken: true + secretsScope: + projectSlug: "kubernetes" + envSlug: "prod" + secretsPath: "/searxng/searxng" + # Non-recursive: keys are already named as the container expects. + recursive: false + managedSecretReference: + secretName: searxng-app-secrets + secretNamespace: searxng + secretType: Opaque diff --git a/applications/searxng/searxng-persistentvolumeclaim.yaml b/applications/searxng/searxng/persistentvolumeclaim.yaml similarity index 100% rename from applications/searxng/searxng-persistentvolumeclaim.yaml rename to applications/searxng/searxng/persistentvolumeclaim.yaml diff --git a/applications/searxng/searxng-service.yaml b/applications/searxng/searxng/service.yaml similarity index 100% rename from applications/searxng/searxng-service.yaml rename to applications/searxng/searxng/service.yaml diff --git a/applications/uptime-kuma/mariadb/statefulset.yaml b/applications/uptime-kuma/mariadb/statefulset.yaml index 33b2a1a..9201622 100644 --- a/applications/uptime-kuma/mariadb/statefulset.yaml +++ b/applications/uptime-kuma/mariadb/statefulset.yaml @@ -35,9 +35,6 @@ spec: envFrom: - secretRef: name: uptime-kuma-mariadb-secrets - env: - - name: MARIADB_RANDOM_ROOT_PASSWORD - value: "true" volumes: - name: uptime-kuma-mariadb-database persistentVolumeClaim: diff --git a/applications/uptime-kuma/uptime-kuma/statefulset.yaml b/applications/uptime-kuma/uptime-kuma/statefulset.yaml index 5d3f4f2..e6e79f0 100644 --- a/applications/uptime-kuma/uptime-kuma/statefulset.yaml +++ b/applications/uptime-kuma/uptime-kuma/statefulset.yaml @@ -33,9 +33,6 @@ spec: envFrom: - secretRef: name: uptime-kuma-app-secrets - env: - - name: DATABASE_TYPE - value: mariadb volumeMounts: - name: data mountPath: /app/data diff --git a/applications/zipline/postgres/zipline-postgres-statefulset.yaml b/applications/zipline/postgres/zipline-postgres-statefulset.yaml index 477de29..6e684de 100644 --- a/applications/zipline/postgres/zipline-postgres-statefulset.yaml +++ b/applications/zipline/postgres/zipline-postgres-statefulset.yaml @@ -34,9 +34,6 @@ spec: envFrom: - secretRef: name: zipline-postgres-secrets - env: - - name: PGDATA - value: /var/lib/postgres/data volumes: - name: zipline-postgresql-database persistentVolumeClaim: diff --git a/applications/zipline/zipline/zipline-statefulset.yaml b/applications/zipline/zipline/zipline-statefulset.yaml index 88f261d..8f9b78e 100644 --- a/applications/zipline/zipline/zipline-statefulset.yaml +++ b/applications/zipline/zipline/zipline-statefulset.yaml @@ -38,9 +38,6 @@ spec: envFrom: - secretRef: name: zipline-app-secrets - env: - - name: CORE_TRUSTED_PROXIES - value: "10.42.0.0/16" restartPolicy: Always volumes: - name: uploads