azure-ddns: migrate to envFrom with a per-container InfisicalSecret

Also moves the manifests into a component directory, matching the other migrated apps.
This commit is contained in:
2026-08-23 22:42:09 +02:00
parent c408522988
commit 0329546d87
4 changed files with 36 additions and 73 deletions
@@ -0,0 +1,25 @@
apiVersion: secrets.infisical.com/v1alpha1
kind: InfisicalSecret
metadata:
name: azure-ddns-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: "/azure-ddns/azure-ddns"
# Non-recursive: keys are already named as the container expects.
recursive: false
managedSecretReference:
secretName: azure-ddns-app-secrets
secretNamespace: azure-ddns
secretType: Opaque
+14
View File
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: azure-ddns
namespace: azure-ddns
spec:
selector:
app: azure-ddns
ports:
- name: azure-ddns
port: 443
targetPort: 443
protocol: TCP
type: ClusterIP
+31
View File
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: azure-ddns
namespace: azure-ddns
spec:
replicas: 1
selector:
matchLabels:
app: azure-ddns
serviceName: azure-ddns
template:
metadata:
labels:
app: azure-ddns
spec:
terminationGracePeriodSeconds: 60
containers:
- name: azure-ddns
image: gitea.jsme.be/jeffrey/azure-ddns-python:1.1
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 200m
memory: 256Mi
envFrom:
- secretRef:
name: azure-ddns-app-secrets
restartPolicy: Always