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:
2026-08-23 20:34:38 +02:00
parent 14ef1c6e91
commit 10545c03be
8 changed files with 28 additions and 20 deletions
@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: searxng
namespace: searxng
spec:
replicas: 1
selector:
matchLabels:
app: searxng
template:
metadata:
labels:
app: searxng
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 10
enableServiceLinks: false
containers:
- name: searxng
image: searxng/searxng:latest
ports:
- containerPort: 8080
envFrom:
- secretRef:
name: searxng-app-secrets
resources:
requests:
cpu: 50m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
volumeMounts:
- name: data
mountPath: /etc/searxng
volumes:
- name: data
persistentVolumeClaim:
claimName: searxng-pvc
@@ -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
@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: searxng-pvc
namespace: searxng
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 1Gi
+13
View File
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: searxng
namespace: searxng
spec:
selector:
app: searxng
ports:
- name: http
port: 8080
targetPort: 8080
type: ClusterIP