apiVersion: apps/v1 kind: Deployment metadata: namespace: netbox name: netbox-worker spec: replicas: 1 selector: matchLabels: app: netbox-worker template: metadata: labels: app: netbox-worker spec: restartPolicy: Always terminationGracePeriodSeconds: 60 securityContext: runAsUser: 999 runAsGroup: 0 fsGroup: 0 containers: - name: netbox-worker image: netboxcommunity/netbox:v4.6.8-5.0.2 # Overrides CMD only, so tini stays the entrypoint and migrations # are left to the web pod. args: - /opt/netbox/venv/bin/python - /opt/netbox/netbox/manage.py - rqworker resources: requests: memory: "256Mi" cpu: "100m" limits: memory: "1Gi" cpu: "1000m" envFrom: - secretRef: name: netbox-app-secrets volumeMounts: - name: netbox-data mountPath: /opt/netbox/netbox/media subPath: media - name: netbox-data mountPath: /opt/netbox/netbox/reports subPath: reports - name: netbox-data mountPath: /opt/netbox/netbox/scripts subPath: scripts volumes: - name: netbox-data persistentVolumeClaim: claimName: netbox-data-pvc