first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user