fix(openproject): Add DB and main service port (#3354)
* fix(openproject): Add DB and main service port Let's see how much more I need lol * Update Chart.yaml * more fixes * Update Chart.yaml * Other fixes I missed * trying this one with port 80 * add some fixes * fix pg * whoops Co-authored-by: Stavros kois <s.kois@outlook.com>
This commit is contained in:
co-authored by
Stavros kois
parent
e93a6b1755
commit
8aaa1fdb55
@@ -1,17 +1,15 @@
|
|||||||
annotations:
|
|
||||||
truecharts.org/SCALE-support: "true"
|
|
||||||
truecharts.org/catagories: |
|
|
||||||
- Productivity
|
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: "12"
|
appVersion: "12"
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://library-charts.truecharts.org
|
repository: https://library-charts.truecharts.org
|
||||||
version: 10.4.8
|
version: 10.4.8
|
||||||
|
- condition: postgresql.enabled
|
||||||
|
name: postgresql
|
||||||
|
repository: https://charts.truecharts.org/
|
||||||
|
version: 8.0.48
|
||||||
deprecated: false
|
deprecated: false
|
||||||
description:
|
description: OpenProject is a web-based project management system for location-independent team collaboration.
|
||||||
OpenProject is a web-based project management system for location-independent
|
|
||||||
team collaboration.
|
|
||||||
home: https://github.com/truecharts/charts/tree/master/charts/incubator/openproject
|
home: https://github.com/truecharts/charts/tree/master/charts/incubator/openproject
|
||||||
icon: https://truecharts.org/img/chart-icons/openproject.png
|
icon: https://truecharts.org/img/chart-icons/openproject.png
|
||||||
keywords:
|
keywords:
|
||||||
@@ -27,4 +25,9 @@ sources:
|
|||||||
- http://openproject.org
|
- http://openproject.org
|
||||||
- https://hub.docker.com/u/openproject
|
- https://hub.docker.com/u/openproject
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.13
|
version: 0.0.14
|
||||||
|
annotations:
|
||||||
|
truecharts.org/SCALE-support: "true"
|
||||||
|
truecharts.org/catagories: |
|
||||||
|
- Productivity
|
||||||
|
truecharts.org/grade: U
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# Include{groups}
|
# Include{groups}
|
||||||
portals: {}
|
portals:
|
||||||
|
open:
|
||||||
|
protocols:
|
||||||
|
- "$kubernetes-resource_configmap_portal_protocol"
|
||||||
|
host:
|
||||||
|
- "$kubernetes-resource_configmap_portal_host"
|
||||||
|
ports:
|
||||||
|
- "$kubernetes-resource_configmap_portal_port"
|
||||||
questions:
|
questions:
|
||||||
- variable: portal
|
- variable: portal
|
||||||
group: "Container Image"
|
group: "Container Image"
|
||||||
@@ -15,9 +22,8 @@ questions:
|
|||||||
hidden: true
|
hidden: true
|
||||||
editable: false
|
editable: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: true
|
||||||
# Include{global}
|
# Include{global}
|
||||||
|
|
||||||
- variable: controller
|
- variable: controller
|
||||||
group: "Controller"
|
group: "Controller"
|
||||||
label: ""
|
label: ""
|
||||||
@@ -68,23 +74,69 @@ questions:
|
|||||||
- value: "OnDelete"
|
- value: "OnDelete"
|
||||||
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
||||||
# Include{controllerExpert}
|
# Include{controllerExpert}
|
||||||
|
# Include{containerConfig}
|
||||||
- variable: env
|
- variable: service
|
||||||
group: "Container Configuration"
|
group: "Networking and Services"
|
||||||
label: "Image Environment"
|
label: "Configure Service(s)"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
|
- variable: main
|
||||||
- variable: SECRET_KEY_BASE
|
label: "Main Service"
|
||||||
label: 'SECRET_KEY_BASE'
|
description: "The Primary service on which the healthcheck runs, often the webUI"
|
||||||
description: "Container Variable SECRETKEYBASE"
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
# Include{serviceSelector}
|
||||||
|
- variable: main
|
||||||
|
label: "Main Service Port Configuration"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: port
|
||||||
|
label: "Port"
|
||||||
|
description: "This port exposes the container port on the service"
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 10290
|
||||||
|
required: true
|
||||||
|
- variable: advanced
|
||||||
|
label: "Show Advanced settings"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
show_subquestions_if: true
|
||||||
|
subquestions:
|
||||||
|
- variable: protocol
|
||||||
|
label: "Port Type"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: "secret"
|
default: "HTTP"
|
||||||
|
enum:
|
||||||
|
- value: HTTP
|
||||||
|
description: "HTTP"
|
||||||
|
- value: "HTTPS"
|
||||||
|
description: "HTTPS"
|
||||||
|
- value: TCP
|
||||||
|
description: "TCP"
|
||||||
|
- value: "UDP"
|
||||||
|
description: "UDP"
|
||||||
|
- variable: nodePort
|
||||||
|
label: "Node Port (Optional)"
|
||||||
|
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
min: 9000
|
||||||
|
max: 65535
|
||||||
|
- variable: targetPort
|
||||||
|
label: "Target Port"
|
||||||
|
description: "The internal(!) port on the container the Application runs on"
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 8080
|
||||||
- variable: serviceexpert
|
- variable: serviceexpert
|
||||||
group: "Networking and Services"
|
group: "Networking and Services"
|
||||||
label: "Show Expert Config"
|
label: "Show Expert Config"
|
||||||
@@ -99,11 +151,8 @@ questions:
|
|||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
# Include{serviceExpert}
|
# Include{serviceExpert}
|
||||||
|
|
||||||
# Include{serviceList}
|
# Include{serviceList}
|
||||||
|
|
||||||
- variable: persistence
|
- variable: persistence
|
||||||
label: "Integrated Persistent Storage"
|
label: "Integrated Persistent Storage"
|
||||||
description: "Integrated Persistent Storage"
|
description: "Integrated Persistent Storage"
|
||||||
@@ -112,34 +161,36 @@ questions:
|
|||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
|
- variable: assets
|
||||||
- variable: hostpath1
|
label: "App Assets Storage"
|
||||||
label: "hostpath1 Storage"
|
description: "Stores the Application Assets."
|
||||||
description: "Container Path varopenprojectpgdata"
|
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
# Include{persistenceBasic}
|
# Include{persistenceBasic}
|
||||||
# Include{persistenceAdvanced}
|
# Include{persistenceAdvanced}
|
||||||
- variable: hostpath2
|
|
||||||
label: "hostpath2 Storage"
|
|
||||||
description: "Container Path varopenprojectassets"
|
|
||||||
schema:
|
|
||||||
additional_attrs: true
|
|
||||||
type: dict
|
|
||||||
attrs:
|
|
||||||
# Include{persistenceBasic}
|
|
||||||
# Include{persistenceAdvanced}
|
|
||||||
|
|
||||||
|
|
||||||
# Include{persistenceList}
|
# Include{persistenceList}
|
||||||
|
|
||||||
|
- variable: ingress
|
||||||
|
label: ""
|
||||||
|
group: "Ingress"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: main
|
||||||
|
label: "Main Ingress"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
# Include{ingressDefault}
|
||||||
|
# Include{ingressTLS}
|
||||||
|
# Include{ingressTraefik}
|
||||||
|
# Include{ingressExpert}
|
||||||
# Include{ingressList}
|
# Include{ingressList}
|
||||||
|
|
||||||
# Include{security}
|
# Include{security}
|
||||||
|
|
||||||
- variable: advancedSecurity
|
- variable: advancedSecurity
|
||||||
label: "Show Advanced Security Settings"
|
label: "Show Advanced Security Settings"
|
||||||
group: "Security and Permissions"
|
group: "Security and Permissions"
|
||||||
@@ -175,7 +226,6 @@ questions:
|
|||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
# Include{securityContextAdvanced}
|
# Include{securityContextAdvanced}
|
||||||
|
|
||||||
- variable: podSecurityContext
|
- variable: podSecurityContext
|
||||||
group: "Security and Permissions"
|
group: "Security and Permissions"
|
||||||
label: "Pod Security Context"
|
label: "Pod Security Context"
|
||||||
@@ -191,7 +241,7 @@ questions:
|
|||||||
default: 0
|
default: 0
|
||||||
- variable: runAsGroup
|
- variable: runAsGroup
|
||||||
label: "runAsGroup"
|
label: "runAsGroup"
|
||||||
description: The groupID this App of the user running the application"
|
description: "The groupID this App of the user running the application"
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
@@ -202,10 +252,6 @@ questions:
|
|||||||
type: int
|
type: int
|
||||||
default: 568
|
default: 568
|
||||||
# Include{podSecurityContextAdvanced}
|
# Include{podSecurityContextAdvanced}
|
||||||
|
|
||||||
|
|
||||||
# Include{resources}
|
# Include{resources}
|
||||||
|
|
||||||
# Include{advanced}
|
# Include{advanced}
|
||||||
|
|
||||||
# Include{addons}
|
# Include{addons}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{{/* Define the secrets */}}
|
||||||
|
{{- define "openproject.secrets" -}}
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
type: Opaque
|
||||||
|
metadata:
|
||||||
|
name: openproject-secrets
|
||||||
|
{{- $openprojectprevious := lookup "v1" "Secret" .Release.Namespace "openproject-secrets" }}
|
||||||
|
{{- $secret_key_base := "" }}
|
||||||
|
data:
|
||||||
|
{{- if $openprojectprevious}}
|
||||||
|
SECRET_KEY_BASE: {{ index $openprojectprevious.data "SECRET_KEY_BASE" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $secret_key_base := randAlphaNum 32 }}
|
||||||
|
SECRET_KEY_BASE: {{ $secret_key_base | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- end -}}
|
||||||
@@ -1,2 +1,7 @@
|
|||||||
|
{{- include "tc.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{/* Render secrets for openproject */}}
|
||||||
|
{{- include "openproject.secrets" . }}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "tc.common.loader.all" . }}
|
{{ include "tc.common.loader.apply" . }}
|
||||||
|
|||||||
@@ -1,32 +1,40 @@
|
|||||||
env:
|
|
||||||
SECRET_KEY_BASE: secret
|
|
||||||
image:
|
image:
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
repository: tccr.io/truecharts/openproject
|
repository: tccr.io/truecharts/openproject
|
||||||
tag: v12
|
pullPolicy: IfNotPresent
|
||||||
persistence:
|
tag: v12@sha256:25d6bc69202ae6e256a93295b9c23c50afdc69a0ba1fc66e608c4e404fc66750
|
||||||
hostpath1:
|
|
||||||
enabled: true
|
|
||||||
mountPath: /var/openproject/pgdata
|
|
||||||
hostpath2:
|
|
||||||
enabled: true
|
|
||||||
mountPath: /var/openproject/assets
|
|
||||||
podSecurityContext:
|
|
||||||
runAsGroup: 0
|
|
||||||
runAsUser: 0
|
|
||||||
probes:
|
|
||||||
liveness:
|
|
||||||
enabled: false
|
|
||||||
readiness:
|
|
||||||
enabled: false
|
|
||||||
startup:
|
|
||||||
enabled: false
|
|
||||||
securityContext:
|
securityContext:
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
runAsNonRoot: false
|
runAsNonRoot: false
|
||||||
|
|
||||||
|
podSecurityContext:
|
||||||
|
runAsGroup: 0
|
||||||
|
runAsUser: 0
|
||||||
|
|
||||||
|
env:
|
||||||
|
SECRET_KEY_BASE:
|
||||||
|
secretKeyRef:
|
||||||
|
name: openproject-secrets
|
||||||
|
key: SECRET_KEY_BASE
|
||||||
|
DATABASE_URL:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dbcreds
|
||||||
|
key: url-noql
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
assets:
|
||||||
|
enabled: true
|
||||||
|
mountPath: /var/openproject/assets
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
enabled: false
|
|
||||||
ports:
|
ports:
|
||||||
main:
|
main:
|
||||||
enabled: false
|
port: 10290
|
||||||
|
targetPort: 8080
|
||||||
|
|
||||||
|
postgresql:
|
||||||
|
enabled: true
|
||||||
|
existingSecret: "dbcreds"
|
||||||
|
postgresqlUsername: openproject
|
||||||
|
postgresqlDatabase: openproject
|
||||||
|
|||||||
Reference in New Issue
Block a user