Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
Draft
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
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ maintainers:
email: info@opencloud.eu
url: https://opencloud.eu
type: application
version: 0.1.2
version: 0.1.3
# renovate: datasource=docker depName=opencloudeu/opencloud-rolling
appVersion: latest
kubeVersion: ""
Expand Down
10 changes: 9 additions & 1 deletion templates/opencloud/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ spec:
- name: OC_EXCLUDE_RUN_SERVICES
value: {{ join "," . | quote }}
{{- end }}
{{- if .Values.prometheus.enabled }}
- name: "PROXY_DEBUG_ADDR"
value: ":9205"
{{- end }}
# Do not use SSL between proxy and OpenCloud
- name: PROXY_TLS
value: "false"
Expand All @@ -157,7 +161,7 @@ spec:
value: "{{ .Values.opencloud.insecure }}"
# Basic auth (only needed when not using Keycloak)
- name: PROXY_ENABLE_BASIC_AUTH
value: {{ if .Values.keycloak.enabled }}"false"{{ else }}"true"{{ end }}
value: {{ tpl (toString .Values.opencloud.enableBasicAuth) . | quote }}
# These vars are needed to the csp config file to include the web office apps and the importer
- name: ONLYOFFICE_DOMAIN
value: "{{ .Values.global.domain.onlyoffice }}"
Expand Down Expand Up @@ -269,6 +273,10 @@ spec:
ports:
- name: http
containerPort: 9200
{{- if .Values.prometheus.enabled }}
- name: metrics
containerPort: 9205
{{- end }}
- name: nats
containerPort: 9233
startupProbe:
Expand Down
6 changes: 6 additions & 0 deletions templates/opencloud/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if .Values.prometheus.enabled }}
- port: 9205
targetPort: metrics
protocol: TCP
name: metrics
{{- end }}
- port: 9233
targetPort: 9233
protocol: TCP
Expand Down
19 changes: 19 additions & 0 deletions templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if and .Values.prometheus.enabled .Values.prometheus.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: Service
metadata:
name: {{ include "opencloud.opencloud.fullname" . }}
namespace: {{ include "opencloud.namespace" . }}
labels:
{{- include "opencloud.labels" . | nindent 4 }}
{{- with .Values.prometheus.serviceMonitor.labels }}
{{- toYaml . | nindent 4}}
{{- end }}
spec:
selector:
matchLabels:
{{- include "opencloud.selectorLabels" . | nindent 4 }}
endpoints:
- port: metrics
path: "/metrics"
{{- end }}
12 changes: 11 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ opencloud:
# Insecure mode (for self-signed certificates)
insecure: true
# Enable basic auth (set to false to use Keycloak only)
enableBasicAuth: false
enableBasicAuth: "{{ not .Values.keycloak.enabled }}"
# Admin password
adminPassword: admin
# Create demo users
Expand Down Expand Up @@ -499,6 +499,16 @@ opencloud:
# Create bucket if it doesn't exist
createBucket: true

# =====================================================================
# Monitoring prometheus
# =====================================================================

prometheus:
enabled: true
serviceMonitor:
enabled: true
labels: {}

# =====================================================================
# GATEWAY-API HTTPRoute
# =====================================================================
Expand Down