Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
972d8660e4 | ||
|
|
2abf3d0a7f | ||
|
|
8447421071 | ||
|
|
67037e45d2 | ||
|
|
a0de9be8b4 | ||
|
|
78f67a7acf | ||
|
|
cf7eb73818 | ||
|
|
c8ef9ce884 | ||
|
|
e5c3859854 | ||
|
|
c1cd9550fc | ||
|
|
b60dfef5e5 | ||
|
|
6d8716f044 | ||
|
|
8c78075249 |
54
99-rssbridge-deployment.yaml
Normal file
54
99-rssbridge-deployment.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
#---
|
||||||
|
#apiVersion: apps/v1
|
||||||
|
#kind: Deployment
|
||||||
|
#metadata:
|
||||||
|
# # TODO: add rssbridge
|
||||||
|
# name: {{ include "common.names.fullname" . }}
|
||||||
|
# labels:
|
||||||
|
# {{- include "common.labels" . | nindent 4 }}
|
||||||
|
# {{- with .Values.controller.labels }}
|
||||||
|
# {{- toYaml . | nindent 4 }}
|
||||||
|
# {{- end }}
|
||||||
|
# {{- with .Values.controller.annotations }}
|
||||||
|
# annotations:
|
||||||
|
# {{- toYaml . | nindent 4 }}
|
||||||
|
# {{- end }}
|
||||||
|
#spec:
|
||||||
|
# revisionHistoryLimit: {{ .Values.controller.revisionHistoryLimit }}
|
||||||
|
# replicas: {{ .Values.controller.replicas }}
|
||||||
|
# {{- $strategy := default "Recreate" .Values.controller.strategy }}
|
||||||
|
# {{- if and (ne $strategy "Recreate") (ne $strategy "RollingUpdate") }}
|
||||||
|
# {{- fail (printf "Not a valid strategy type for Deployment (%s)" $strategy) }}
|
||||||
|
# {{- end }}
|
||||||
|
# strategy:
|
||||||
|
# type: {{ $strategy }}
|
||||||
|
# {{- with .Values.controller.rollingUpdate }}
|
||||||
|
# {{- if and (eq $strategy "RollingUpdate") (or .surge .unavailable) }}
|
||||||
|
# rollingUpdate:
|
||||||
|
# {{- with .unavailable }}
|
||||||
|
# maxUnavailable: {{ . }}
|
||||||
|
# {{- end }}
|
||||||
|
# {{- with .surge }}
|
||||||
|
# maxSurge: {{ . }}
|
||||||
|
# {{- end }}
|
||||||
|
# {{- end }}
|
||||||
|
# {{- end }}
|
||||||
|
# selector:
|
||||||
|
# matchLabels:
|
||||||
|
# # TODO: add rssbridge
|
||||||
|
# {{- include "common.labels.selectorLabels" . | nindent 6 }}
|
||||||
|
# template:
|
||||||
|
# metadata:
|
||||||
|
# {{- with .Values.podAnnotations }}
|
||||||
|
# annotations:
|
||||||
|
# {{- toYaml . | nindent 8 }}
|
||||||
|
# {{- end }}
|
||||||
|
# labels:
|
||||||
|
# # TODO: add rssbridge
|
||||||
|
# {{- include "common.labels.selectorLabels" . | nindent 8 }}
|
||||||
|
# {{- with .Values.podLabels }}
|
||||||
|
# {{- toYaml . | nindent 8 }}
|
||||||
|
# {{- end }}
|
||||||
|
# spec:
|
||||||
|
# # TODO: add rssbridge
|
||||||
|
#
|
||||||
@ -3,7 +3,7 @@ apiVersion: v2
|
|||||||
description: Helm chart for ttrss
|
description: Helm chart for ttrss
|
||||||
name: ttrss
|
name: ttrss
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.1
|
version: 0.0.19
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- ttrss
|
- ttrss
|
||||||
@ -25,3 +25,6 @@ dependencies:
|
|||||||
- name: common
|
- name: common
|
||||||
repository: "https://scm.docker.cabillot.eu/perso/helm-library-common/raw/branch/master/"
|
repository: "https://scm.docker.cabillot.eu/perso/helm-library-common/raw/branch/master/"
|
||||||
version: 4.2.0
|
version: 4.2.0
|
||||||
|
- name: mariadb
|
||||||
|
repository: "https://charts.bitnami.com/bitnami"
|
||||||
|
version: 12.2.5
|
||||||
|
|||||||
37
charts/ttrss/templates/01-pvc.yaml
Normal file
37
charts/ttrss/templates/01-pvc.yaml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: pvc-rss-data
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1000Mi
|
||||||
|
hostPath:
|
||||||
|
path: /data/volume-rss-data
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
storageClassName: local-path
|
||||||
|
volumeMode: Filesystem
|
||||||
|
nodeAffinity:
|
||||||
|
required:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: kubernetes.io/hostname
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- opti
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: rss-data
|
||||||
|
namespace: rsscabilloteu
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1000Mi
|
||||||
|
storageClassName: local-path
|
||||||
|
volumeName: pvc-rss-data
|
||||||
46
charts/ttrss/templates/02-cronjob.yaml
Normal file
46
charts/ttrss/templates/02-cronjob.yaml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{{- include "common.values.setup" . }}
|
||||||
|
---
|
||||||
|
apiVersion: "batch/v1"
|
||||||
|
kind: "CronJob"
|
||||||
|
metadata:
|
||||||
|
name: {{ include "common.names.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "common.labels" . | nindent 4 }}
|
||||||
|
{{- with .Values.controller.labels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
schedule: {{ .Values.cronjob.schedule }}
|
||||||
|
concurrencyPolicy: {{ .Values.cronjob.concurrencyPolicy }}
|
||||||
|
successfulJobsHistoryLimit: {{ .Values.cronjob.successfulJobsHistoryLimit }}
|
||||||
|
failedJobsHistoryLimit: {{ .Values.cronjob.failedJobsHistoryLimit }}
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
restartPolicy: Never
|
||||||
|
backoffLimit: 0
|
||||||
|
automountServiceAccountToken: false
|
||||||
|
containers:
|
||||||
|
- name: "mydl-mongo-dump"
|
||||||
|
image: "docker.io/library/mariadb:10.2"
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
command : ["/bin/sh", "-c"]
|
||||||
|
args: [ "echo toto" ]
|
||||||
|
# TODO: volumemount avec le pvc deja cree ?
|
||||||
|
# volumeMounts:
|
||||||
|
# - mountPath: "/dump"
|
||||||
|
# name: "mydl-mongo-dump"
|
||||||
|
# TODO: surement des envs ?
|
||||||
|
# env:
|
||||||
|
# - name: "MONGO_INITDB_ROOT_USERNAME"
|
||||||
|
# value: "toto"
|
||||||
|
# TODO: volumemount avec le pvc deja cree ?
|
||||||
|
# volumes:
|
||||||
|
# - name: "mydl-mongo-dump"
|
||||||
|
# persistentVolumeClaim:
|
||||||
|
# claimName: "mydl-mongo-dump"
|
||||||
@ -16,10 +16,10 @@ env:
|
|||||||
TZ: America/New_York
|
TZ: America/New_York
|
||||||
TTRSS_DB_NAME: web_ttrss
|
TTRSS_DB_NAME: web_ttrss
|
||||||
TTRSS_DB_USER: web_ttrss
|
TTRSS_DB_USER: web_ttrss
|
||||||
TTRSS_DB_PASS: TODO:
|
TTRSS_DB_PASS: TODO
|
||||||
TTRSS_DB_TYPE: mysql
|
TTRSS_DB_TYPE: mysql
|
||||||
TTRSS_DB_PORT: 3306
|
TTRSS_DB_PORT: 3306
|
||||||
TTRSS_DB_PORT_3306_TCP_ADDR: TODO:
|
TTRSS_DB_PORT_3306_TCP_ADDR: TODO
|
||||||
TTRSS_DB_PORT_3306_TCP_PORT: 3306
|
TTRSS_DB_PORT_3306_TCP_PORT: 3306
|
||||||
TTRSS_SELF_URL_PATH: https://rss.opti.cabillot.eu/
|
TTRSS_SELF_URL_PATH: https://rss.opti.cabillot.eu/
|
||||||
TTRSS_SELF_URL: https://rss.opti.cabillot.eu/
|
TTRSS_SELF_URL: https://rss.opti.cabillot.eu/
|
||||||
@ -50,19 +50,26 @@ ingress:
|
|||||||
automountServiceAccountToken: false
|
automountServiceAccountToken: false
|
||||||
|
|
||||||
# Enabled mariadb
|
# Enabled mariadb
|
||||||
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/mariadb
|
# ... for more options see https://github.com/bitnami/charts/tree/main/bitnami/mariadb
|
||||||
mariadb:
|
mariadb:
|
||||||
enabled: false
|
enabled: true
|
||||||
architecture: standalone
|
architecture: standalone
|
||||||
auth:
|
auth:
|
||||||
database: web_ttrss
|
database: web_ttrss
|
||||||
username: web_ttrss
|
username: web_ttrss
|
||||||
password: TODO:
|
password: TODO
|
||||||
rootPassword: TODO:
|
rootPassword: TODO
|
||||||
primary:
|
primary:
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
# storageClass: ""
|
existingClaim: "rss-data"
|
||||||
|
storageClass: "local-path"
|
||||||
|
volumePermissions:
|
||||||
|
enabled: true
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
persistence:
|
persistence:
|
||||||
@ -81,3 +88,9 @@ persistence:
|
|||||||
path: "/mnt/musique"
|
path: "/mnt/musique"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPath: "/media"
|
mountPath: "/media"
|
||||||
|
|
||||||
|
cronjob:
|
||||||
|
schedule: "29 13 * * *"
|
||||||
|
concurrencyPolicy: "Forbid"
|
||||||
|
successfulJobsHistoryLimit: 3
|
||||||
|
failedJobsHistoryLimit: 5
|
||||||
Loading…
x
Reference in New Issue
Block a user