Files
tech-watch/k8s/miniflux/bootstrap-feeds-job.yaml
2026-07-22 14:41:10 +00:00

36 lines
1.3 KiB
YAML

# Runs miniflux-initializer (see /miniflux-initializer) to create the
# categories/feeds from feeds.yaml via the Miniflux REST API. Idempotent,
# safe to re-run: delete the Job then re-apply after editing feeds.yaml.
# kubectl delete job bootstrap-feeds -n watch --ignore-not-found
# kubectl apply -f k8s/miniflux/bootstrap-feeds-job.yaml
apiVersion: batch/v1
kind: Job
metadata:
name: bootstrap-feeds
namespace: watch
spec:
backoffLimit: 3
template:
spec:
restartPolicy: Never
containers:
- name: bootstrap-feeds
image: docker.io/library/miniflux-initializer:latest
imagePullPolicy: Never
env:
- name: MINIFLUX_URL
# Trailing dot makes this an absolute FQDN: musl's resolver
# (Alpine base image) mishandles ndots-relative lookups here
# and fails with EAI_AGAIN otherwise.
value: http://miniflux.watch.svc.cluster.local.
- name: MINIFLUX_USERNAME
valueFrom:
secretKeyRef:
name: miniflux-credentials
key: ADMIN_USERNAME
- name: MINIFLUX_PASSWORD
valueFrom:
secretKeyRef:
name: miniflux-credentials
key: ADMIN_PASSWORD