Gluttony-Cluster/freshrss/freshrss-deployment.yaml

60 lines
1.5 KiB
YAML
Raw Normal View History

2023-10-15 03:15:26 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: freshrss
namespace: freshrss-ns
spec:
replicas: 1
selector:
matchLabels:
app: freshrss
template:
metadata:
labels:
app: freshrss
spec:
strategy:
type: Recreate
2023-10-15 03:15:26 +00:00
containers:
- name: freshrss
2023-11-10 18:56:41 +00:00
image: freshrss/freshrss
2023-11-10 18:23:43 +00:00
env:
2023-11-28 00:58:26 +00:00
- name: CRON_MIN
value: "*/10"
2023-11-10 18:23:43 +00:00
- name: OIDC_ENABLED
2023-11-10 18:50:23 +00:00
value: "1"
2023-11-10 18:23:43 +00:00
- name: OIDC_SCOPES
2023-11-10 18:48:12 +00:00
value: "openid profile email"
2023-11-10 18:23:43 +00:00
- name: OIDC_X_FORWARDED_HEADERS
value: "X-Forwarded-Host X-Forwarded-Port X-Forwarded-Proto"
- name: OIDC_PROVIDER_METADATA_URL
valueFrom:
secretKeyRef:
2023-11-10 18:27:34 +00:00
name: freshrss-oidc-config
2023-11-10 18:33:35 +00:00
key: OIDC_PROVIDER_METADATA_URL
2023-11-10 18:23:43 +00:00
- name: OIDC_CLIENT_ID
valueFrom:
secretKeyRef:
2023-11-10 18:27:34 +00:00
name: freshrss-oidc-config
2023-11-10 18:33:35 +00:00
key: OIDC_CLIENT_ID
2023-11-10 18:23:43 +00:00
- name: OIDC_CLIENT_SECRET
valueFrom:
secretKeyRef:
2023-11-10 18:27:34 +00:00
name: freshrss-oidc-config
2023-11-10 18:33:35 +00:00
key: OIDC_CLIENT_SECRET
2023-11-10 18:23:43 +00:00
- name: OIDC_CLIENT_CRYPTO_KEY
valueFrom:
secretKeyRef:
2023-11-10 18:27:34 +00:00
name: freshrss-oidc-config
2023-11-10 18:33:35 +00:00
key: OIDC_CLIENT_CRYPTO_KEY
2023-10-15 03:15:26 +00:00
ports:
- containerPort: 80
volumeMounts:
- name: freshrss-storage
mountPath: /config
volumes:
- name: freshrss-storage
persistentVolumeClaim:
claimName: freshrss-pvc