From 154dcbc1754075c4fd448a76980b3d3793891fe6 Mon Sep 17 00:00:00 2001 From: wissam Date: Sun, 22 Aug 2021 21:09:57 +0300 Subject: [PATCH] Add Uptime-Kuma helm chart --- charts/uptime-kuma/.helmignore | 23 ++++ charts/uptime-kuma/Chart.yaml | 17 +++ charts/uptime-kuma/README.md | 123 ++++++++++++++++++ charts/uptime-kuma/templates/NOTES.txt | 22 ++++ charts/uptime-kuma/templates/_helpers.tpl | 62 +++++++++ charts/uptime-kuma/templates/configmap.yaml | 12 ++ charts/uptime-kuma/templates/deployment.yaml | 82 ++++++++++++ charts/uptime-kuma/templates/hpa.yaml | 28 ++++ charts/uptime-kuma/templates/ingress.yaml | 61 +++++++++ charts/uptime-kuma/templates/pvc.yaml | 27 ++++ charts/uptime-kuma/templates/service.yaml | 15 +++ .../uptime-kuma/templates/serviceaccount.yaml | 12 ++ .../templates/tests/test-connection.yaml | 15 +++ charts/uptime-kuma/values.yaml | 94 +++++++++++++ 14 files changed, 593 insertions(+) create mode 100644 charts/uptime-kuma/.helmignore create mode 100644 charts/uptime-kuma/Chart.yaml create mode 100644 charts/uptime-kuma/README.md create mode 100644 charts/uptime-kuma/templates/NOTES.txt create mode 100644 charts/uptime-kuma/templates/_helpers.tpl create mode 100644 charts/uptime-kuma/templates/configmap.yaml create mode 100644 charts/uptime-kuma/templates/deployment.yaml create mode 100644 charts/uptime-kuma/templates/hpa.yaml create mode 100644 charts/uptime-kuma/templates/ingress.yaml create mode 100644 charts/uptime-kuma/templates/pvc.yaml create mode 100644 charts/uptime-kuma/templates/service.yaml create mode 100644 charts/uptime-kuma/templates/serviceaccount.yaml create mode 100644 charts/uptime-kuma/templates/tests/test-connection.yaml create mode 100644 charts/uptime-kuma/values.yaml diff --git a/charts/uptime-kuma/.helmignore b/charts/uptime-kuma/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/uptime-kuma/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/uptime-kuma/Chart.yaml b/charts/uptime-kuma/Chart.yaml new file mode 100644 index 0000000..e9201e9 --- /dev/null +++ b/charts/uptime-kuma/Chart.yaml @@ -0,0 +1,17 @@ +apiVersion: v2 +name: uptime-kuma +appVersion: 1.3.2 +description: A fancy self-hosted monitoring tool. +home: https://github.com/louislam/uptime-kuma +maintainers: + - email: admin@josa.ngo + name: Jordan Open Source Association +version: 1.0.0 +keywords: + - monitoring + - uptime + - uptime-kuma + - healthcheck +icon: https://github.com/louislam/uptime-kuma/blob/master/public/icon.png +sources: + - https://github.com/louislam/uptime-kuma diff --git a/charts/uptime-kuma/README.md b/charts/uptime-kuma/README.md new file mode 100644 index 0000000..e1a9da4 --- /dev/null +++ b/charts/uptime-kuma/README.md @@ -0,0 +1,123 @@ +# Uptime-Kuma + +A fancy self-hosted monitoring tool. + +Chart version : 1.0.0 + +Default Uptime-Kuma image [here](https://github.com/louislam/uptime-kuma) + +Current Uptime-Kuma image version: [1.3.2](https://github.com/louislam/uptime-kuma/releases/tag/1.3.2) + + +## Prerequisites +- Kubernetes 1.20 +- Helm 3+ + + +## Installing the Chart + +Add JOSA's chart repository to Helm: + +```console +$ helm repo add josa https://charts.josa.ngo +$ helm repo update +``` + +Install the chart with the release name `my-release`: + +```console +$ helm install my-release josa/uptime-kuma +``` + +These commands deploy Uptime-Kuma on the Kubernetes cluster in the default configuration. The [Values](#values) section lists the parameters that can be configured during installation. + + +## Uninstalling the Chart + +To uninstall/delete the `my-release` release: + +```console +$ helm delete my-release +``` + +## Enviroment Variables + +See `values.yaml` for available enviroment variables. + + +## Values + +The following tables lists the configurable parameters of the Uptime-Kuma chart and their default values per section/component: + + +### Deployment values + +| Parameter | Description | Default | +|-----------------------|-----------------------------------------------------------|---------------------------------------------------| +| `imagePullSecrets` | Docker registry secret names as an array | `[]` | +| `nameOverride` | String to partially override uptime-kuma.fullname | `nil` | +| `fullnameOverride` | String to fully override uptime-kuma.fullname | `nil` | +| `image.repository` | Uptime-Kuma image | `louislam/uptime-kuma` | +| `image.tag` | Uptime-Kuma image tag | `""` (defaults to chart appVersion if empty) | +| `image.pullPolicy` | Uptime-Kuma image pull policy | `IfNotPresent` | +| `replicaCount` | Number of Uptime-Kuma replicas to deploy | `1` | +| `affinity` | Affinity for pod assignment | `{}` (evaluated as a template) | +| `nodeSelector` | Node labels for pod assignment | `{}` (evaluated as a template) | +| `tolerations` | Tolerations for pod assignment | `[]` (evaluated as a template) | +| `podAnnotations` | Annotations for Uptime-Kuma pods | `{}` (evaluated as a template) | +| `podSecurityContext` | Uptime-Kuma pods' Security Context | `{}` (evaluated as a template) | +| `securityContext` | Uptime-Kuma containers' Security Context | `{}` (evaluated as a template) | +| `resources` | The resources for the Uptime-Kuma container | `{}` (evaluated as a template) | +| `env` | Environment variables to configure Uptime-Kuma container | `{}` (evaluated as a configMap) | +| `secretNamesForEnv` | Array of secrets names contaning extra env vars | `[]` | + + +### Exposure values + +| Parameter | Description | Default | +|---------------------------------------|--------------------------------------------------|------------------------------- | +| `service.type` | Kubernetes service type | `ClusterIP` | +| `service.port` | Service HTTP port | `80` | +| `ingress.enabled` | Enable ingress controller resource | `false` | +| `ingress.annotations` | Ingress annotations | `{}` (evaluated as a template) | +| `ingress.className` | Ingress className | `""` | +| `ingress.hosts` | Hosts array for the ingress resource | `[]` | +| `ingress.hosts[0].host` | Host for the ingress resource | `[]` | +| `ingress.hosts[0].paths` | paths array for the ingress resource host | `[]` | +| `ingress.hosts[0].paths[0].path` | Ingress path | `/` | +| `ingress.hosts[0].paths[0].pathType` | Ingress path type | `ImplementationSpecific` | +| `ingress.tls` | TLS configuration for the hosts | `[]` | +| `ingress.tls[0].hosts` | Hosts to be covered with the TLS configuration | `nil` | +| `ingress.tls[0].secretName` | TLS configuration secret name | `nil` | + + +### Persistence values + +| Name | Description | Default | +| --------------------------------|-----------------------------------------------------------------------------------------------------------|-------------------| +| `persistence.enabled` | Enable persistence | `true` | +| `persistence.accessMode` | Access mode to the PV | `[ReadWriteOnce]` | +| `persistence.storageClass` | Storage class to use with the PVC | `"-"` | +| `persistence.existingClaim` | If you want to reuse an existing claim, you can pass the name of the PVC using the existingClaim variable | `""` | +| `persistence.size` | Size for the PV | `4Gi` | +| `persistence.annotations` | Annotations for Uptime-Kuma PVC | `{}` | + + +### RBAC values + +| Parameter | Description | Default | +|-------------------------------|---------------------------------------------------------------|-----------------------------------------------------| +| `serviceAccount.create` | Enable the creation of a ServiceAccount for Uptime-Kuma pods | `true` | +| `serviceAccount.name` | Name of the created ServiceAccount | Generated using the `uptime-kuma.fullname` template | +| `serviceAccount.annotations` | Annotations to add to the service account | `{}` (evaluated as a template) | + + +### Other values + +| Parameter | Description | Default | +|-------------------------------------------------|-----------------------------------------|------------| +| `autoscaling.enabled` | Enable autoscaling for Uptime-Kuma | `false` | +| `autoscaling.minReplicas` | Minimum number of Uptime-Kuma replicas | `1` | +| `autoscaling.maxReplicas` | Maximum number of Uptime-Kuma replicas | `100` | +| `autoscaling.targetCPUUtilizationPercentage` | Target CPU utilization percentage | `80` | +| `autoscaling.targetMemoryUtilizationPercentage` | Target Memory utilization percentage | `80` | diff --git a/charts/uptime-kuma/templates/NOTES.txt b/charts/uptime-kuma/templates/NOTES.txt new file mode 100644 index 0000000..823a375 --- /dev/null +++ b/charts/uptime-kuma/templates/NOTES.txt @@ -0,0 +1,22 @@ +1. Get the application URL by running these commands: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + {{- range .paths }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} + {{- end }} +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "uptime-kuma.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo http://$NODE_IP:$NODE_PORT +{{- else if contains "LoadBalancer" .Values.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "uptime-kuma.fullname" . }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "uptime-kuma.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + echo http://$SERVICE_IP:{{ .Values.service.port }} +{{- else if contains "ClusterIP" .Values.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "uptime-kuma.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT +{{- end }} diff --git a/charts/uptime-kuma/templates/_helpers.tpl b/charts/uptime-kuma/templates/_helpers.tpl new file mode 100644 index 0000000..1c0fa87 --- /dev/null +++ b/charts/uptime-kuma/templates/_helpers.tpl @@ -0,0 +1,62 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "uptime-kuma.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "uptime-kuma.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "uptime-kuma.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "uptime-kuma.labels" -}} +helm.sh/chart: {{ include "uptime-kuma.chart" . }} +{{ include "uptime-kuma.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "uptime-kuma.selectorLabels" -}} +app.kubernetes.io/name: {{ include "uptime-kuma.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "uptime-kuma.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "uptime-kuma.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} diff --git a/charts/uptime-kuma/templates/configmap.yaml b/charts/uptime-kuma/templates/configmap.yaml new file mode 100644 index 0000000..f51ef51 --- /dev/null +++ b/charts/uptime-kuma/templates/configmap.yaml @@ -0,0 +1,12 @@ +{{- if .Values.env }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "uptime-kuma.fullname" . }}-config + labels: + {{- include "uptime-kuma.labels" . | nindent 4 }} +data: +{{- range $envKey, $envVal := .Values.env }} + {{ $envKey | upper }}: {{ $envVal | quote }} +{{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/uptime-kuma/templates/deployment.yaml b/charts/uptime-kuma/templates/deployment.yaml new file mode 100644 index 0000000..401331b --- /dev/null +++ b/charts/uptime-kuma/templates/deployment.yaml @@ -0,0 +1,82 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "uptime-kuma.fullname" . }} + labels: + {{- include "uptime-kuma.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + {{- include "uptime-kuma.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "uptime-kuma.selectorLabels" . | nindent 8 }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "uptime-kuma.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + envFrom: + {{- if .Values.env }} + - configMapRef: + name: {{ include "uptime-kuma.fullname" . }}-config + {{- end }} + {{- range .Values.secretNamesForEnv }} + - secretRef: + name: {{ . }} + {{- end }} + ports: + - name: http + containerPort: 3001 + protocol: TCP + livenessProbe: + exec: + command: + - node + - extra/healthcheck.js + readinessProbe: + httpGet: + path: / + port: http + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - name: data + mountPath: /app/data + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + volumes: + - name: data + {{- if .Values.persistence.enabled }} + persistentVolumeClaim: + claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "uptime-kuma.fullname" . }}{{- end }} + {{- else }} + emptyDir: {} + {{- end }} \ No newline at end of file diff --git a/charts/uptime-kuma/templates/hpa.yaml b/charts/uptime-kuma/templates/hpa.yaml new file mode 100644 index 0000000..85ec823 --- /dev/null +++ b/charts/uptime-kuma/templates/hpa.yaml @@ -0,0 +1,28 @@ +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "uptime-kuma.fullname" . }} + labels: + {{- include "uptime-kuma.labels" . | nindent 4 }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "uptime-kuma.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} diff --git a/charts/uptime-kuma/templates/ingress.yaml b/charts/uptime-kuma/templates/ingress.yaml new file mode 100644 index 0000000..4fd4a66 --- /dev/null +++ b/charts/uptime-kuma/templates/ingress.yaml @@ -0,0 +1,61 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "uptime-kuma.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} + {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} + {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} + {{- end }} +{{- end }} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1 +{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + {{- include "uptime-kuma.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .pathType }} + {{- end }} + backend: + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} + {{- else }} + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/uptime-kuma/templates/pvc.yaml b/charts/uptime-kuma/templates/pvc.yaml new file mode 100644 index 0000000..39eeee3 --- /dev/null +++ b/charts/uptime-kuma/templates/pvc.yaml @@ -0,0 +1,27 @@ +{{- if .Values.persistence.enabled }} +{{- if not .Values.persistence.existingClaim -}} +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + {{- if .Values.persistence.annotations }} + annotations: +{{ toYaml .Values.persistence.annotations | indent 4 }} + {{- end }} + labels: + {{- include "uptime-kuma.labels" . | nindent 4 }} + name: {{ template "uptime-kuma.fullname" . }} +spec: + accessModes: +{{ toYaml .Values.persistence.accessModes | indent 4 }} + {{- if .Values.persistence.storageClass }} + {{- if (eq "-" .Values.persistence.storageClass) }} + storageClassName: "" + {{- else }} + storageClassName: {{ .Values.persistence.storageClass | quote }} + {{- end }} + {{- end }} + resources: + requests: + storage: {{ .Values.persistence.size | quote }} +{{- end -}} +{{- end }} \ No newline at end of file diff --git a/charts/uptime-kuma/templates/service.yaml b/charts/uptime-kuma/templates/service.yaml new file mode 100644 index 0000000..44238ac --- /dev/null +++ b/charts/uptime-kuma/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "uptime-kuma.fullname" . }} + labels: + {{- include "uptime-kuma.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + {{- include "uptime-kuma.selectorLabels" . | nindent 4 }} diff --git a/charts/uptime-kuma/templates/serviceaccount.yaml b/charts/uptime-kuma/templates/serviceaccount.yaml new file mode 100644 index 0000000..77a13d3 --- /dev/null +++ b/charts/uptime-kuma/templates/serviceaccount.yaml @@ -0,0 +1,12 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "uptime-kuma.serviceAccountName" . }} + labels: + {{- include "uptime-kuma.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +{{- end }} diff --git a/charts/uptime-kuma/templates/tests/test-connection.yaml b/charts/uptime-kuma/templates/tests/test-connection.yaml new file mode 100644 index 0000000..af42e7b --- /dev/null +++ b/charts/uptime-kuma/templates/tests/test-connection.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ include "uptime-kuma.fullname" . }}-test-connection" + labels: + {{- include "uptime-kuma.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": test +spec: + containers: + - name: wget + image: busybox + command: ['wget'] + args: ['{{ include "uptime-kuma.fullname" . }}:{{ .Values.service.port }}'] + restartPolicy: Never diff --git a/charts/uptime-kuma/values.yaml b/charts/uptime-kuma/values.yaml new file mode 100644 index 0000000..b045d07 --- /dev/null +++ b/charts/uptime-kuma/values.yaml @@ -0,0 +1,94 @@ +# Default values for uptime-kuma. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 1 + +image: + repository: louislam/uptime-kuma + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: "" + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +podAnnotations: {} + +podSecurityContext: {} + # fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +service: + type: ClusterIP + port: 80 + +ingress: + enabled: false + className: "" + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: uptime-kuma.local + paths: + - path: / + pathType: ImplementationSpecific + tls: [] + # - secretName: uptime-kuma-tls + # hosts: + # - uptime-kuma.local + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + # targetMemoryUtilizationPercentage: 80 + +nodeSelector: {} + +tolerations: [] + +affinity: {} + +persistence: + enabled: true + accessMode: + - ReadWriteOnce + size: 4Gi + storageClass: "" + existingClaim: "" + +env: {} + +secretNamesForEnv: [] \ No newline at end of file