Compare commits

...

13 Commits

Author SHA1 Message Date
Julien Cabillot
972d8660e4 . 2023-06-21 21:46:09 -04:00
Julien Cabillot
2abf3d0a7f . 2023-06-21 18:24:51 -04:00
Julien Cabillot
8447421071 . 2023-06-21 18:22:04 -04:00
Julien Cabillot
67037e45d2 . 2023-06-21 18:17:52 -04:00
Julien Cabillot
a0de9be8b4 . 2023-06-21 18:15:18 -04:00
Julien Cabillot
78f67a7acf test cronob 2023-06-21 18:15:07 -04:00
Julien Cabillot
cf7eb73818 . 2023-06-21 18:08:04 -04:00
Julien Cabillot
c8ef9ce884 . 2023-06-21 18:00:14 -04:00
Julien Cabillot
e5c3859854 . 2023-06-21 17:59:54 -04:00
Julien Cabillot
c1cd9550fc test pv pvc 2023-06-21 17:57:58 -04:00
Julien Cabillot
b60dfef5e5 test mariadb bitnami 2023-06-13 19:32:59 -04:00
Julien Cabillot
6d8716f044 fix links 2023-06-13 18:25:18 -04:00
Julien Cabillot
8c78075249 wip 2023-06-13 17:32:01 -04:00
5 changed files with 161 additions and 8 deletions

View 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
#

View File

@ -3,7 +3,7 @@ apiVersion: v2
description: Helm chart for ttrss
name: ttrss
type: application
version: 0.0.1
version: 0.0.19
kubeVersion: ">=1.16.0-0"
keywords:
- ttrss
@ -25,3 +25,6 @@ dependencies:
- name: common
repository: "https://scm.docker.cabillot.eu/perso/helm-library-common/raw/branch/master/"
version: 4.2.0
- name: mariadb
repository: "https://charts.bitnami.com/bitnami"
version: 12.2.5

View 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

View 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"

View File

@ -16,10 +16,10 @@ env:
TZ: America/New_York
TTRSS_DB_NAME: web_ttrss
TTRSS_DB_USER: web_ttrss
TTRSS_DB_PASS: TODO:
TTRSS_DB_PASS: TODO
TTRSS_DB_TYPE: mysql
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_SELF_URL_PATH: https://rss.opti.cabillot.eu/
TTRSS_SELF_URL: https://rss.opti.cabillot.eu/
@ -50,19 +50,26 @@ ingress:
automountServiceAccountToken: false
# 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:
enabled: false
enabled: true
architecture: standalone
auth:
database: web_ttrss
username: web_ttrss
password: TODO:
rootPassword: TODO:
password: TODO
rootPassword: TODO
primary:
persistence:
enabled: true
# storageClass: ""
existingClaim: "rss-data"
storageClass: "local-path"
volumePermissions:
enabled: true
metrics:
enabled: true
serviceMonitor:
enabled: true
# TODO:
persistence:
@ -81,3 +88,9 @@ persistence:
path: "/mnt/musique"
readOnly: true
mountPath: "/media"
cronjob:
schedule: "29 13 * * *"
concurrencyPolicy: "Forbid"
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 5