Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ajout de matomo #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions apps/matomo/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
replicaCount: 1

matomoUsername: user

matomoPassword: ""

matomoEmail: [email protected]

matomoWebsiteName: example

matomoWebsiteHost: https://example.org

allowEmptyPassword: true

containerPorts:
http: 8080
https: 8443

persistence:
enabled: true
storageClass: ""
accessModes:
- ReadWriteOnce
size: 8Gi
dataSource: {}
existingClaim: ""
hostPath: ""
annotations: {}
selector: {}

ingress:
enabled: false

mariadb:
enabled: true
architecture: standalone
auth:
rootPassword: ""
database: bitnami_matomo
username: bn_matomo
password: ""
primary:
persistence:
enabled: true
storageClass: ""
accessModes:
- ReadWriteOnce
size: 8Gi
hostPath: ""
existingClaim: ""
resourcesPreset: "micro"
15 changes: 15 additions & 0 deletions apps/matomo/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: matomo
namespace: matomo
resources:
- resources/certificate.yaml
- resources/httpproxy.yaml
helmCharts:
- name: matomo
version: "2024.10.2" # Specify the version of the Matomo chart
repo: "oci://registry-1.docker.io/bitnamicharts/matomo" # Repository for the Matomo chart
releaseName: "matomo" # Release name for your Helm deployment
namespace: matomo # Matomo namespace
valuesFile: "helm/values.yaml" # Reference to your `values.yaml` file
20 changes: 20 additions & 0 deletions apps/matomo/matomo.argoapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: services-matomo
namespace: argocd
spec:
destination:
namespace: matomo
server: https://cedille.kubernetes.omni.siderolabs.io?cluster=k8s-services
project: k8s-services
source:
path: apps/matomo
repoURL: https://github.com/ClubCedille/k8s-services.git
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
16 changes: 16 additions & 0 deletions apps/matomo/ressources/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: matomo-tls
namespace: matomo
spec:
secretName: matomo-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
commonName: matomo.svc.cedille.club
dnsNames:
- matomo.svc.cedille.club
# Optional: Set the duration and renewal time
duration: 2160h
renewBefore: 360h
26 changes: 26 additions & 0 deletions apps/matomo/ressources/httpproxy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: projectcontour.io/v1
kind: HTTPProxy
metadata:
name: matomo
namespace: matomo
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
virtualhost:
fqdn: matomo.svc.cedille.club
tls:
secretName: matomo-tls
routes:
- conditions:
- header:
contains: application/grpc
name: Content-Type
- prefix: /websocket
enableWebsockets: true
services:
- name: matomo-server
port: 80
protocol: h2c
- services:
- name: matomo-server
port: 80
Loading