Skip to content

Commit af25853

Browse files
committed
Add miniflux v2.9.9
1 parent b63ad83 commit af25853

File tree

5 files changed

+173
-0
lines changed

5 files changed

+173
-0
lines changed

misc/miniflux/v2/deployment.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: miniflux
5+
labels:
6+
app.kubernetes.io/name: "miniflux"
7+
spec:
8+
replicas: 1
9+
selector:
10+
matchLabels:
11+
app.kubernetes.io/name: "miniflux"
12+
template:
13+
metadata:
14+
labels:
15+
app.kubernetes.io/name: "miniflux"
16+
spec:
17+
serviceAccountName: miniflux
18+
containers:
19+
- name: miniflux
20+
image: miniflux:latest
21+
command:
22+
- /usr/bin/miniflux
23+
args:
24+
- -c
25+
- /etc/miniflux.conf
26+
env:
27+
- name: RUN_MIGRATIONS
28+
value: "1"
29+
envFrom:
30+
- secretRef:
31+
name: miniflux-secret
32+
optional: true
33+
resources:
34+
requests:
35+
memory: 128Mi
36+
cpu: 100m
37+
limits:
38+
memory: 256Mi
39+
ports:
40+
- name: http
41+
protocol: TCP
42+
containerPort: 8080
43+
livenessProbe:
44+
httpGet:
45+
path: /liveness
46+
port: http
47+
scheme: HTTP
48+
initialDelaySeconds: 10
49+
periodSeconds: 10
50+
timeoutSeconds: 5
51+
failureThreshold: 3
52+
successThreshold: 2
53+
readinessProbe:
54+
httpGet:
55+
path: /readiness
56+
port: http
57+
scheme: HTTP
58+
periodSeconds: 10
59+
timeoutSeconds: 5
60+
failureThreshold: 3
61+
successThreshold: 2
62+
volumeMounts:
63+
- mountPath: /etc/miniflux.conf
64+
name: miniflux-config
65+
subPath: miniflux.conf
66+
volumes:
67+
- name: miniflux-config
68+
configMap:
69+
name: miniflux-config
70+
defaultMode: 0644

misc/miniflux/v2/files/miniflux.conf

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Number of entries to archive for each job interval.
2+
CLEANUP_ARCHIVE_BATCH_SIZE=10000
3+
# Number of days after which marking read items as removed. Use -1 to disable this feature.
4+
CLEANUP_ARCHIVE_READ_DAYS=60
5+
# Number of days after marking unread items as removed. Use -1 to disable this feature.
6+
CLEANUP_ARCHIVE_UNREAD_DAYS=180
7+
# Cleanup job frequency to remove old sessions and archive entries.
8+
CLEANUP_FREQUENCY_HOURS=24
9+
# Number of days after removing old user sessions from the database.
10+
CLEANUP_REMOVE_SESSIONS_DAYS=30
11+
12+
# Set to 1 to create an admin user from environment variables.
13+
CREATE_ADMIN=0
14+
15+
# Set the maximum amount of time a connection may be reused.
16+
DATABASE_CONNECTION_LIFETIME=5
17+
# Maximum number of database connections.
18+
DATABASE_MAX_CONNS=20
19+
# Minimum number of database connections.
20+
DATABASE_MIN_CONNS=1
21+
22+
# Set the value to 1 to scrape video duration from YouTube website and use it as a reading time.
23+
FETCH_YOUTUBE_WATCH_TIME=1
24+
25+
# Number of days after which new entries should be retained. Set 7 to fetch only entries 7 days old.
26+
FILTER_ENTRY_MAX_AGE_DAYS=30
27+
# The minimum interval for manual refresh.
28+
FORCE_REFRESH_INTERVAL=30
29+
30+
# Address to listen on. Use absolute path for a Unix socket.
31+
LISTEN_ADDR=127.0.0.1:8080
32+
33+
# Show date and time in log messages.
34+
LOG_DATE_TIME=1
35+
# Supported values are stderr, stdout, or a file name.
36+
LOG_FILE=stderr
37+
# Supported log formats are text or json.
38+
LOG_FORMAT=text
39+
# Supported values are debug, info, warning, or error.
40+
LOG_LEVEL=info
41+
42+
# List of networks allowed to access the /metrics endpoint (comma-separated values).
43+
METRICS_ALLOWED_NETWORKS=127.0.0.1/8
44+
# Set to 1 to enable metrics collection. It exposes a /metrics endpoint that can be used with Prometheus Monitoring software.
45+
METRICS_COLLECTOR=1
46+
METRICS_PASSWORD=
47+
# Refresh interval to collect database metrics.
48+
METRICS_REFRESH_INTERVAL=60
49+
50+
# Number of background workers to refresh feeds. Workers fetch information of feeds from a work queue.
51+
WORKER_POOL_SIZE=5
52+
53+
# YouTube API key for use with FETCH_YOUTUBE_WATCH_TIME. If non-empty, the duration will be fetched from the YouTube API. Otherwise, the duration will be fetched from the YouTube website.
54+
YOUTUBE_API_KEY=

misc/miniflux/v2/kustomization.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- deployment.yaml
6+
- service.yaml
7+
- rbac.yaml
8+
9+
configMapGenerator:
10+
- name: miniflux-config
11+
files:
12+
- miniflux.conf=files/miniflux.conf
13+
options:
14+
disableNameSuffixHash: true
15+
16+
namespace: default
17+
labels:
18+
- pairs:
19+
app.kubernetes.io/part-of: "miniflux"
20+
app.kubernetes.io/version: "2.2.9"
21+
includeTemplates: true
22+
23+
24+
images:
25+
- name: miniflux
26+
newName: miniflux/miniflux
27+
newTag: "2.2.9"

misc/miniflux/v2/rbac.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: miniflux
5+
labels:
6+
app.kubernetes.io/name: "miniflux"
7+
automountServiceAccountToken: true

misc/miniflux/v2/service.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: miniflux
5+
labels:
6+
app.kubernetes.io/name: "miniflux"
7+
spec:
8+
type: ClusterIP
9+
ports:
10+
- name: http
11+
protocol: TCP
12+
port: 80
13+
targetPort: http
14+
selector:
15+
app.kubernetes.io/name: "miniflux"

0 commit comments

Comments
 (0)