mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-11-26 19:30:47 +00:00
Add uptime-gizmo chart
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0ef45f1055
commit
bbdba6100b
6 files changed
+185
No files matched your search
@@ -0,0 +1,8 @@
|
||||
apiVersion: v2
|
||||
name: uptime-gizmo
|
||||
description: Uptime Gizmo (Uptime Kuma fork with REST API and MCP) Helm chart
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "3.0.0-beta.9"
|
||||
annotations:
|
||||
version-source: dockerhub-tags-pattern:starit/uptime-gizmo:^3\.0\.0-beta\.[0-9]+$
|
||||
@@ -0,0 +1,73 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
app.kubernetes.io/component: monitoring
|
||||
annotations:
|
||||
version-source: {{ index .Chart.Annotations "version-source" | quote }}
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Release.Name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Release.Name }}
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.port }}
|
||||
name: http
|
||||
{{- if eq .Values.database.type "mariadb" }}
|
||||
env:
|
||||
- name: UPTIME_GIZMO_DB_TYPE
|
||||
value: mariadb
|
||||
- name: UPTIME_GIZMO_DB_HOSTNAME
|
||||
value: {{ .Values.database.host | quote }}
|
||||
- name: UPTIME_GIZMO_DB_PORT
|
||||
value: {{ .Values.database.port | quote }}
|
||||
- name: UPTIME_GIZMO_DB_NAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.database.existingSecret }}
|
||||
key: {{ .Values.database.secretKeys.dbName }}
|
||||
- name: UPTIME_GIZMO_DB_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.database.existingSecret }}
|
||||
key: {{ .Values.database.secretKeys.dbUsername }}
|
||||
- name: UPTIME_GIZMO_DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.database.existingSecret }}
|
||||
key: {{ .Values.database.secretKeys.dbPassword }}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /app/data
|
||||
{{- if .Values.dockerSocket.enabled }}
|
||||
- name: docker-sock
|
||||
mountPath: /var/run/docker.sock
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Release.Name }}-data
|
||||
{{- if .Values.dockerSocket.enabled }}
|
||||
- name: docker-sock
|
||||
hostPath:
|
||||
path: /var/run/docker.sock
|
||||
type: Socket
|
||||
{{- end }}
|
||||
@@ -0,0 +1,27 @@
|
||||
{{- range $name, $config := .Values.ingresses }}
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $.Release.Name }}-{{ $name }}
|
||||
{{- with $config.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
rules:
|
||||
- host: {{ $config.host }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: {{ $.Release.Name }}
|
||||
port:
|
||||
number: {{ $.Values.port }}
|
||||
{{- with $config.tls }}
|
||||
tls:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,15 @@
|
||||
{{- if .Values.persistence.enabled }}
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
{{- if .Values.persistence.storageClass }}
|
||||
storageClassName: {{ .Values.persistence.storageClass }}
|
||||
{{- end }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size }}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ .Release.Name }}
|
||||
ports:
|
||||
- name: http
|
||||
port: {{ .Values.port }}
|
||||
targetPort: {{ .Values.port }}
|
||||
protocol: TCP
|
||||
@@ -0,0 +1,46 @@
|
||||
# Default values for Uptime Gizmo Helm Chart
|
||||
image:
|
||||
repository: starit/uptime-gizmo
|
||||
# Defaults to Chart.AppVersion
|
||||
tag: ""
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
port: 3001
|
||||
|
||||
# sqlite keeps the database on the data volume (no extra setup).
|
||||
# mariadb uses an external server; credentials come from an existing secret.
|
||||
# Uptime Gizmo cannot open an Uptime Kuma database newer than 2.5.0, so
|
||||
# always point it at an empty database.
|
||||
database:
|
||||
type: sqlite
|
||||
host: mariadb.mariadb.svc.cluster.local
|
||||
port: "3306"
|
||||
existingSecret: ""
|
||||
secretKeys:
|
||||
dbName: db-name
|
||||
dbUsername: db-username
|
||||
dbPassword: db-password
|
||||
|
||||
dockerSocket:
|
||||
enabled: false
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "256Mi"
|
||||
limits:
|
||||
cpu: "500m"
|
||||
memory: "512Mi"
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClass: ""
|
||||
size: 5Gi
|
||||
|
||||
ingresses: {}
|
||||
# https:
|
||||
# host: uptime.example.com
|
||||
# annotations: {}
|
||||
# tls:
|
||||
# - hosts:
|
||||
# - uptime.example.com
|
||||
Reference in new issue
Block a user