Five components under applications/netbox: the web pod, an rqworker, a daily housekeeping CronJob, postgres 18 and two valkey instances. The task queue runs appendonly on its own PVC so queued jobs survive a restart, while the cache instance is disposable. Worker and cronjob override args rather than command, which replaces CMD while keeping tini as the entrypoint, so only the web pod runs migrations. Media, reports and scripts share one RWX PVC via subPaths because both the web pod and the worker mount them. Exposed on the internal gateway only.
15 lines
237 B
YAML
15 lines
237 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: netbox-redis
|
|
namespace: netbox
|
|
spec:
|
|
selector:
|
|
app: netbox-redis
|
|
type: ClusterIP
|
|
ports:
|
|
- name: netbox-redis-port
|
|
protocol: TCP
|
|
port: 6379
|
|
targetPort: 6379
|