|
| 1 | +# OpenProject Configuration |
| 2 | +# Production-ready configuration with demo optimizations |
| 3 | + |
| 4 | +global: |
| 5 | + security: |
| 6 | + allowInsecureImages: false |
| 7 | + |
| 8 | + imagePullSecrets: |
| 9 | + - name: {{ (coalesce .Values.container.openproject.imagePullSecret .Values.container.default.imagePullSecret) | quote }} |
| 10 | + |
| 11 | +image: |
| 12 | + registry: {{ (coalesce .Values.container.openproject.registry .Values.container.default.registry) | quote }} |
| 13 | + repository: {{ .Values.container.openproject.repository | quote }} |
| 14 | + tag: {{ .Values.container.openproject.tag | quote }} |
| 15 | + |
| 16 | +openproject: |
| 17 | + https: {{ .Values.openproject.ingress.tls | default true }} |
| 18 | + admin_user: |
| 19 | + password: {{ .Values.openproject.admin_user.password | quote }} |
| 20 | + password_reset: {{ .Values.openproject.admin_user.password_reset | default true }} |
| 21 | + name: {{ .Values.openproject.admin_user.name | quote }} |
| 22 | + mail: {{ .Values.openproject.admin_user.mail | quote }} |
| 23 | + seed_locale: {{ .Values.openproject.seed_locale | default "en" }} |
| 24 | + useTmpVolumes: {{ .Values.openproject.useTmpVolumes | default false }} |
| 25 | + |
| 26 | +ingress: |
| 27 | + enabled: true |
| 28 | + host: {{ .Values.global.hostname.openproject }}.{{ .Values.global.domain }} |
| 29 | + ingressClassName: {{ .Values.cluster.ingress.className | quote }} |
| 30 | + tls: |
| 31 | + enabled: {{ .Values.global.tls.enabled | default true }} |
| 32 | + secretName: {{ .Values.openproject.ingress.secretName | default "openproject-tls" }} |
| 33 | + annotations: |
| 34 | + {{- if .Values.cluster.ingress.annotations }} |
| 35 | + {{ .Values.cluster.ingress.annotations | toYaml | nindent 4 }} |
| 36 | + {{- end }} |
| 37 | + {{- if eq .Values.cluster.ingress.type "nginx" }} |
| 38 | + nginx.ingress.kubernetes.io/force-ssl-redirect: "true" |
| 39 | + {{- end }} |
| 40 | + |
| 41 | +# PostgreSQL configuration |
| 42 | +postgresql: |
| 43 | + bundled: {{ eq .Environment.Name "demo" }} |
| 44 | + image: |
| 45 | + registry: "registry-1.docker.io" |
| 46 | + repository: "bitnamilegacy/postgresql" |
| 47 | + tag: "17-debian-12" |
| 48 | + auth: |
| 49 | + postgresPassword: {{ .Values.secret.openproject.postgresPassword | quote }} |
| 50 | + username: "openproject" |
| 51 | + password: {{ .Values.secret.openproject.postgresPassword | quote }} |
| 52 | + database: "openproject" |
| 53 | + connection: |
| 54 | + host: {{ .Values.database.openproject.host }} |
| 55 | + port: {{ .Values.database.openproject.port }} |
| 56 | + database: {{ .Values.database.openproject.name }} |
| 57 | + username: {{ .Values.database.openproject.user }} |
| 58 | + password: {{ .Values.database.openproject.password }} |
| 59 | + |
| 60 | +# Cache configuration |
| 61 | +# Use memcached for demo, Redis for production |
| 62 | +memcached: |
| 63 | + bundled: {{ eq .Environment.Name "demo" }} |
| 64 | + image: |
| 65 | + repository: bitnami/memcached |
| 66 | + tag: "latest" |
| 67 | + |
| 68 | +# OIDC configuration |
| 69 | +oidc: |
| 70 | + enabled: {{ .Values.authentication.oidc | default true }} |
| 71 | + provider: |
| 72 | + name: "Keycloak" |
| 73 | + host: {{ .Values.global.hostname.keycloak }}.{{ .Values.global.domain }} |
| 74 | + identifier: {{ .Values.authentication.client.openproject.client_id }} |
| 75 | + secret: {{ .Values.authentication.client.openproject.client_secret }} |
| 76 | + authorization_endpoint: "{{ .Values.authentication.oidc.authorization_endpoint }}" |
| 77 | + token_endpoint: "{{ .Values.authentication.oidc.token_endpoint }}" |
| 78 | + userinfo_endpoint: "{{ .Values.authentication.oidc.userinfo_endpoint }}" |
| 79 | + jwks_uri: "{{ .Values.authentication.oidc.jwks_endpoint }}" |
| 80 | + scope: ["openid", "profile", "email"] |
| 81 | + |
| 82 | +# Init container resources |
| 83 | +appInit: |
| 84 | + resources: |
| 85 | + limits: |
| 86 | + memory: {{ .Values.openproject.appInit.resources.limits.memory | default "2Gi" | quote }} |
| 87 | + requests: |
| 88 | + memory: {{ .Values.openproject.appInit.resources.requests.memory | default "1Gi" | quote }} |
| 89 | + |
| 90 | +dbInit: |
| 91 | + resources: |
| 92 | + limits: |
| 93 | + memory: {{ .Values.openproject.dbInit.resources.limits.memory | default "1Gi" | quote }} |
| 94 | + requests: |
| 95 | + memory: {{ .Values.openproject.dbInit.resources.requests.memory | default "512Mi" | quote }} |
| 96 | + |
| 97 | +# Persistence configuration |
| 98 | +persistence: |
| 99 | + # main data volume (used by OpenProject for assets/uploads, etc.) |
| 100 | + enabled: {{ .Values.openproject.persistence.enabled | default true }} |
| 101 | + size: {{ .Values.openproject.persistence.size | default "8Gi" | quote }} |
| 102 | + accessModes: |
| 103 | + {{- if .Values.openproject.persistence.accessModes }} |
| 104 | + {{- range .Values.openproject.persistence.accessModes }} |
| 105 | + - {{ . | quote }} |
| 106 | + {{- end }} |
| 107 | + {{- else }} |
| 108 | + - "ReadWriteOnce" |
| 109 | + {{- end }} |
| 110 | + {{- if .Values.openproject.persistence.storageClass }} |
| 111 | + storageClass: {{ .Values.openproject.persistence.storageClass | quote }} |
| 112 | + {{- end }} |
| 113 | + |
| 114 | + # control the optional separate assets PVC from the upstream chart |
| 115 | + assets: |
| 116 | + enabled: {{ ne .Environment.Name "demo" }} |
| 117 | + |
| 118 | +# Security context configuration (optional) |
| 119 | +{{- if and .Values.openproject (hasKey .Values.openproject "securityContext") }} |
| 120 | +securityContext: {{ .Values.openproject.securityContext | toYaml | nindent 2 }} |
| 121 | +{{- end }} |
| 122 | + |
| 123 | +{{- if and .Values.openproject (hasKey .Values.openproject "containerSecurityContext") }} |
| 124 | +containerSecurityContext: {{ .Values.openproject.containerSecurityContext | toYaml | nindent 2 }} |
| 125 | +{{- end }} |
| 126 | + |
| 127 | +# Autoscaling configuration |
| 128 | +{{- if .Values.autoscaling.horizontal.openproject }} |
| 129 | +autoscaling: |
| 130 | + hpa: {{ .Values.autoscaling.horizontal.openproject | toYaml | nindent 4 }} |
| 131 | +{{- end }} |
0 commit comments