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.
This commit is contained in:
+3
-8
@@ -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
|
||||
@@ -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
|
||||
@@ -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:
|
||||
|
||||
@@ -33,9 +33,6 @@ spec:
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: uptime-kuma-app-secrets
|
||||
env:
|
||||
- name: DATABASE_TYPE
|
||||
value: mariadb
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /app/data
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user