apiVersion: apps/v1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" labels: app.kubernetes.io/name: netbox name: netbox-housekeeping namespace: netbox spec: selector: matchLabels: app.kubernetes.io/name: netbox template: metadata: annotations: {} labels: app.kubernetes.io/name: netbox spec: containers: - command: - /opt/netbox/housekeeping.sh env: - name: REDIS_PASSWORD valueFrom: secretKeyRef: key: redis-password name: redis - name: DB_PASSWORD valueFrom: secretKeyRef: key: postgres-password name: netbox-postgresql envFrom: - configMapRef: name: netbox - secretRef: name: netbox image: netboxcommunity/netbox:v3.4.2 imagePullPolicy: Always name: netbox-housekeeping resources: {} restartPolicy: Always securityContext: {}