add admin backend stuff
This commit is contained in:
parent
4087d1b0d3
commit
82abc9b73d
9 changed files with 362 additions and 261 deletions
|
|
@ -21,10 +21,10 @@ global:
|
|||
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
|
||||
##
|
||||
kubeVersion: ""
|
||||
## @param nameOverride String to partially override adminFrontend.fullname template (will maintain the release name)
|
||||
## @param nameOverride String to partially override adminPanel.fullname template (will maintain the release name)
|
||||
##
|
||||
nameOverride: ""
|
||||
## @param fullnameOverride String to fully override adminFrontend.fullname template
|
||||
## @param fullnameOverride String to fully override adminPanel.fullname template
|
||||
##
|
||||
fullnameOverride: ""
|
||||
## @param commonLabels Labels to be added to all deployed resources
|
||||
|
|
@ -76,35 +76,6 @@ service:
|
|||
|
||||
## @section Discourse parameters
|
||||
|
||||
## Bitnami Discourse image version
|
||||
## ref: https://hub.docker.com/r/bitnami/adminFrontend/tags/
|
||||
## @param image.registry Discourse image registry
|
||||
## @param image.repository Discourse image repository
|
||||
## @param image.tag Discourse image tag
|
||||
## @param image.pullPolicy Discourse image pull policy
|
||||
## @param image.pullSecrets Discourse image pull secrets
|
||||
## @param image.debug Specify if debug logs should be enabled
|
||||
##
|
||||
image:
|
||||
registry: open.greenhost.net:4567
|
||||
repository: openappstack/admin-frontend/admin-frontend
|
||||
tag: 0.1.0
|
||||
## Specify a imagePullPolicy
|
||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||
##
|
||||
pullPolicy: IfNotPresent
|
||||
## Optionally specify an array of imagePullSecrets.
|
||||
## Secrets must be manually created in the namespace.
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||
## e.g:
|
||||
## pullSecrets:
|
||||
## - myRegistryKeySecretName
|
||||
##
|
||||
pullSecrets: []
|
||||
## Set to true if you would like to see extra information on logs
|
||||
##
|
||||
debug: false
|
||||
## @param imagePullSecrets Specify docker-registry secret names as an array
|
||||
##
|
||||
imagePullSecrets: []
|
||||
|
|
@ -112,31 +83,37 @@ imagePullSecrets: []
|
|||
## ref: https://open.greenhost.net/openappstack/admin-frontend
|
||||
##
|
||||
adminFrontend:
|
||||
## @param adminFrontend.reactAppApiUrl URL to the admin-backend API
|
||||
reactAppApiUrl: "http://oas-api.initdevelopment.com/api/v1"
|
||||
## Admin frontend image version
|
||||
## ref: https://hub.docker.com/r/bitnami/adminFrontend/tags/
|
||||
## @param image.registry Discourse image registry
|
||||
## @param image.repository Discourse image repository
|
||||
## @param image.tag Discourse image tag
|
||||
## @param image.pullPolicy Discourse image pull policy
|
||||
## @param image.pullSecrets Discourse image pull secrets
|
||||
## @param image.debug Specify if debug logs should be enabled
|
||||
##
|
||||
image:
|
||||
registry: open.greenhost.net:4567
|
||||
repository: openappstack/admin-frontend/admin-frontend
|
||||
tag: 0.1.0
|
||||
## Specify a imagePullPolicy
|
||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||
##
|
||||
pullPolicy: IfNotPresent
|
||||
## Optionally specify an array of imagePullSecrets.
|
||||
## Secrets must be manually created in the namespace.
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||
## e.g:
|
||||
## pullSecrets:
|
||||
## - myRegistryKeySecretName
|
||||
##
|
||||
pullSecrets: []
|
||||
## @param adminFrontend.extendEslint Whether to read .eslint.json rules
|
||||
extendEslint: false
|
||||
## @param adminFrontend.host Discourse host to create application URLs (include the port if =/= 80)
|
||||
##
|
||||
host: ""
|
||||
## @param adminFrontend.siteName Discourse site name
|
||||
##
|
||||
siteName: 'My Site!'
|
||||
## @param adminFrontend.username Admin user of the application
|
||||
##
|
||||
username: user
|
||||
## @param adminFrontend.password password. WARNING: Minimum length of 10 characters
|
||||
## Defaults to a random 10-character alphanumeric string if not set
|
||||
##
|
||||
password: ""
|
||||
## @param adminFrontend.existingSecret Name of an existing secret containing the password (ignores previous password)
|
||||
## The secret should contain the following key:
|
||||
## adminFrontend-password
|
||||
##
|
||||
existingSecret: ""
|
||||
## @param adminFrontend.email Admin user email of the application
|
||||
##
|
||||
email: user@example.com
|
||||
## @param adminFrontend.command Custom command to override image cmd
|
||||
##
|
||||
command: []
|
||||
|
|
@ -215,30 +192,11 @@ adminFrontend:
|
|||
## @param adminFrontend.customReadinessProbe Custom readiness probe to execute (when the main one is disabled)
|
||||
##
|
||||
customReadinessProbe: {}
|
||||
## Discourse SMTP settings
|
||||
## @param adminFrontend.smtp.enabled Enable/disable SMTP
|
||||
## @param adminFrontend.smtp.host SMTP host name
|
||||
## @param adminFrontend.smtp.port SMTP port number
|
||||
## @param adminFrontend.smtp.user SMTP account user name
|
||||
## @param adminFrontend.smtp.password SMTP account password
|
||||
## @param adminFrontend.smtp.protocol SMTP protocol (Allowed values: tls, ssl)
|
||||
## @param adminFrontend.smtp.auth SMTP authentication method
|
||||
## @param adminFrontend.smtp.existingSecret Name of an existing Kubernetes secret. The secret must have the following key configured: `smtp-password`
|
||||
##
|
||||
smtp:
|
||||
enabled: false
|
||||
host: ""
|
||||
port: ""
|
||||
user: ""
|
||||
password: ""
|
||||
protocol: ""
|
||||
auth: ""
|
||||
existingSecret: ""
|
||||
## @param adminFrontend.extraEnvVars An array to add extra env vars
|
||||
## For example:
|
||||
## extraEnvVars:
|
||||
## adminFrontend:
|
||||
## - name: DISCOURSE_ELASTICSEARCH_URL
|
||||
## - name: ADMIN_PANEL_ELASTICSEARCH_URL
|
||||
## value: test
|
||||
##
|
||||
extraEnvVars: []
|
||||
|
|
@ -256,10 +214,183 @@ adminFrontend:
|
|||
## mountPath: /path/to/ca_cert
|
||||
##
|
||||
extraVolumeMounts: []
|
||||
## @param adminFrontend.skipInstall Do not run the Discourse installation wizard
|
||||
## Use only in case you are importing an existing database.
|
||||
## Admin frontend configuration parameters
|
||||
## ref: https://open.greenhost.net/openappstack/admin-frontend
|
||||
##
|
||||
adminBackend:
|
||||
## Admin frontend image version
|
||||
## ref: https://hub.docker.com/r/bitnami/adminFrontend/tags/
|
||||
## @param image.registry Discourse image registry
|
||||
## @param image.repository Discourse image repository
|
||||
## @param image.tag Discourse image tag
|
||||
## @param image.pullPolicy Discourse image pull policy
|
||||
## @param image.pullSecrets Discourse image pull secrets
|
||||
## @param image.debug Specify if debug logs should be enabled
|
||||
##
|
||||
skipInstall: false
|
||||
image:
|
||||
registry: open.greenhost.net:4567
|
||||
repository: openappstack/admin-backend/admin-backend
|
||||
tag: 0.1.0
|
||||
## Specify a imagePullPolicy
|
||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||
##
|
||||
pullPolicy: IfNotPresent
|
||||
## Optionally specify an array of imagePullSecrets.
|
||||
## Secrets must be manually created in the namespace.
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||
## e.g:
|
||||
## pullSecrets:
|
||||
## - myRegistryKeySecretName
|
||||
##
|
||||
pullSecrets: []
|
||||
## @param adminBackend.host API host (include the port if =/= 80)
|
||||
##
|
||||
host: ""
|
||||
## @param adminBackend.reactAppApiUrl URL to the admin-backend API
|
||||
apiUrl: "/api/v1"
|
||||
|
||||
## Variables for future use {{{
|
||||
|
||||
## @param adminBackend.username Admin user of the application
|
||||
##
|
||||
username: user
|
||||
## @param adminBackend.password password. WARNING: Minimum length of 10 characters
|
||||
## Defaults to a random 10-character alphanumeric string if not set
|
||||
##
|
||||
password: ""
|
||||
## @param adminBackend.existingSecret Name of an existing secret containing the password (ignores previous password)
|
||||
## The secret should contain the following key:
|
||||
## adminBackend-password
|
||||
##
|
||||
existingSecret: ""
|
||||
## @param adminBackend.email Admin user email of the application
|
||||
##
|
||||
email: user@example.com
|
||||
|
||||
## Admin panel SMTP settings
|
||||
## @param adminBackend.smtp.enabled Enable/disable SMTP
|
||||
## @param adminBackend.smtp.host SMTP host name
|
||||
## @param adminBackend.smtp.port SMTP port number
|
||||
## @param adminBackend.smtp.user SMTP account user name
|
||||
## @param adminBackend.smtp.password SMTP account password
|
||||
## @param adminBackend.smtp.protocol SMTP protocol (Allowed values: tls, ssl)
|
||||
## @param adminBackend.smtp.auth SMTP authentication method
|
||||
## @param adminBackend.smtp.existingSecret Name of an existing Kubernetes secret. The secret must have the following key configured: `smtp-password`
|
||||
##
|
||||
smtp:
|
||||
enabled: false
|
||||
host: ""
|
||||
port: ""
|
||||
user: ""
|
||||
password: ""
|
||||
protocol: ""
|
||||
auth: ""
|
||||
existingSecret: ""
|
||||
|
||||
## End variables for future use }}}
|
||||
|
||||
## @param adminBackend.command Custom command to override image cmd
|
||||
##
|
||||
command: []
|
||||
## @param adminBackend.args Custom args for the custom command
|
||||
##
|
||||
args: []
|
||||
## @param adminBackend.containerSecurityContext Container security context specification
|
||||
## Example:
|
||||
## capabilities:
|
||||
## drop:
|
||||
## - ALL
|
||||
## readOnlyRootFilesystem: true
|
||||
## runAsNonRoot: true
|
||||
## runAsUser: 1000
|
||||
##
|
||||
containerSecurityContext: {}
|
||||
## Discourse container's resource requests and limits
|
||||
## ref: http://kubernetes.io/docs/user-guide/compute-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:'.
|
||||
## @param adminBackend.resources.limits The resources limits for the container
|
||||
## @param adminBackend.resources.requests The requested resources for the container
|
||||
##
|
||||
resources:
|
||||
## Example:
|
||||
## limits:
|
||||
## cpu: 100m
|
||||
## memory: 128Mi
|
||||
limits: {}
|
||||
## Examples:
|
||||
## requests:
|
||||
## cpu: 100m
|
||||
## memory: 128Mi
|
||||
requests: {}
|
||||
## Discourse extra options for liveness probe
|
||||
## WARNING: Discourse installation process may take up some time and
|
||||
## setting inappropriate values here may lead to pods failure.
|
||||
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
|
||||
## @param adminBackend.livenessProbe.enabled Enable/disable livenessProbe
|
||||
## @param adminBackend.livenessProbe.initialDelaySeconds Delay before liveness probe is initiated
|
||||
## @param adminBackend.livenessProbe.periodSeconds How often to perform the probe
|
||||
## @param adminBackend.livenessProbe.timeoutSeconds When the probe times out
|
||||
## @param adminBackend.livenessProbe.failureThreshold Minimum consecutive failures for the probe
|
||||
## @param adminBackend.livenessProbe.successThreshold Minimum consecutive successes for the probe
|
||||
##
|
||||
livenessProbe:
|
||||
enabled: true
|
||||
initialDelaySeconds: 500
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 6
|
||||
successThreshold: 1
|
||||
## Discourse extra options for readiness probe
|
||||
## WARNING: Discourse installation process may take up some time and
|
||||
## setting inappropriate values here may lead to pods failure.
|
||||
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
|
||||
## @param adminBackend.readinessProbe.enabled Enable/disable readinessProbe
|
||||
## @param adminBackend.readinessProbe.initialDelaySeconds Delay before readiness probe is initiated
|
||||
## @param adminBackend.readinessProbe.periodSeconds How often to perform the probe
|
||||
## @param adminBackend.readinessProbe.timeoutSeconds When the probe times out
|
||||
## @param adminBackend.readinessProbe.failureThreshold Minimum consecutive failures for the probe
|
||||
## @param adminBackend.readinessProbe.successThreshold Minimum consecutive successes for the probe
|
||||
##
|
||||
readinessProbe:
|
||||
enabled: true
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 6
|
||||
successThreshold: 1
|
||||
## @param adminBackend.customLivenessProbe Custom liveness probe to execute (when the main one is disabled)
|
||||
##
|
||||
customLivenessProbe: {}
|
||||
## @param adminBackend.customReadinessProbe Custom readiness probe to execute (when the main one is disabled)
|
||||
##
|
||||
customReadinessProbe: {}
|
||||
## @param adminBackend.extraEnvVars An array to add extra env vars
|
||||
## For example:
|
||||
## extraEnvVars:
|
||||
## adminBackend:
|
||||
## - name: ADMIN_PANEL_ELASTICSEARCH_URL
|
||||
## value: test
|
||||
##
|
||||
extraEnvVars: []
|
||||
## @param adminBackend.extraEnvVarsCM Array to add extra configmaps
|
||||
##
|
||||
extraEnvVarsCM: []
|
||||
## @param adminBackend.extraEnvVarsSecret Array to add extra environment variables from a secret
|
||||
##
|
||||
extraEnvVarsSecret: ""
|
||||
## @param adminBackend.extraVolumeMounts Additional volume mounts (used along with `extraVolumes`)
|
||||
## Example: Mount CA file
|
||||
## extraVolumeMounts
|
||||
## - name: ca-cert
|
||||
## subPath: ca_cert
|
||||
## mountPath: /path/to/ca_cert
|
||||
##
|
||||
extraVolumeMounts: []
|
||||
|
||||
## @param replicaCount Number of Discourse & Sidekiq replicas
|
||||
## (Note that you will need ReadWriteMany PVCs for this to work properly)
|
||||
##
|
||||
|
|
@ -325,7 +456,7 @@ persistence:
|
|||
## @param persistence.enabled Whether to enable persistence based on Persistent Volume Claims
|
||||
##
|
||||
enabled: false
|
||||
## @param persistence.storageClass adminFrontend & sidekiq data Persistent Volume Storage Class
|
||||
## @param persistence.storageClass adminPanel & sidekiq data Persistent Volume Storage Class
|
||||
## If defined, storageClassName: <storageClass>
|
||||
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
||||
## If undefined (the default) or set to null, no storageClassName spec is
|
||||
|
|
@ -407,93 +538,9 @@ nodeSelector: {}
|
|||
##
|
||||
tolerations: []
|
||||
|
||||
## @section Sidekiq parameters
|
||||
|
||||
sidekiq:
|
||||
## @param sidekiq.containerSecurityContext Container security context specification
|
||||
## capabilities:
|
||||
## drop:
|
||||
## - ALL
|
||||
## readOnlyRootFilesystem: true
|
||||
## runAsNonRoot: true
|
||||
## runAsUser: 1000
|
||||
##
|
||||
containerSecurityContext: {}
|
||||
## @param sidekiq.command Custom command to override image cmd (evaluated as a template)
|
||||
##
|
||||
command: ['/opt/bitnami/scripts/adminFrontend/entrypoint.sh']
|
||||
## @param sidekiq.args Custom args for the custom command (evaluated as a template)
|
||||
##
|
||||
args: ['/opt/bitnami/scripts/adminFrontend-sidekiq/run.sh']
|
||||
## @param sidekiq.resources Sidekiq container resource requests and limits
|
||||
## ref: http://kubernetes.io/docs/user-guide/compute-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:'.
|
||||
##
|
||||
resources: {}
|
||||
## Sidekiq extra options for liveness probe
|
||||
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
|
||||
## @param sidekiq.livenessProbe.enabled Enable/disable livenessProbe
|
||||
## @param sidekiq.livenessProbe.initialDelaySeconds Delay before liveness probe is initiated
|
||||
## @param sidekiq.livenessProbe.periodSeconds How often to perform the probe
|
||||
## @param sidekiq.livenessProbe.timeoutSeconds When the probe times out
|
||||
## @param sidekiq.livenessProbe.failureThreshold Minimum consecutive failures for the probe
|
||||
## @param sidekiq.livenessProbe.successThreshold Minimum consecutive successes for the probe
|
||||
##
|
||||
livenessProbe:
|
||||
enabled: true
|
||||
initialDelaySeconds: 500
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 6
|
||||
successThreshold: 1
|
||||
## Sidekiq extra options for readiness probe
|
||||
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
|
||||
## @param sidekiq.readinessProbe.enabled Enable/disable readinessProbe
|
||||
## @param sidekiq.readinessProbe.initialDelaySeconds Delay before readiness probe is initiated
|
||||
## @param sidekiq.readinessProbe.periodSeconds How often to perform the probe
|
||||
## @param sidekiq.readinessProbe.timeoutSeconds When the probe times out
|
||||
## @param sidekiq.readinessProbe.failureThreshold Minimum consecutive failures for the probe
|
||||
## @param sidekiq.readinessProbe.successThreshold Minimum consecutive successes for the probe
|
||||
##
|
||||
readinessProbe:
|
||||
enabled: true
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 6
|
||||
successThreshold: 1
|
||||
## @param sidekiq.customLivenessProbe Custom liveness probe to execute (when the main one is disabled)
|
||||
##
|
||||
customLivenessProbe: {}
|
||||
## @param sidekiq.customReadinessProbe Custom readiness probe to execute (when the main one is disabled)
|
||||
##
|
||||
customReadinessProbe: {}
|
||||
## @param sidekiq.extraEnvVars An array to add extra env vars
|
||||
## For example:
|
||||
## extraEnvVars:
|
||||
## - name: DISCOURSE_ELASTICSEARCH_URL
|
||||
## value: test
|
||||
##
|
||||
extraEnvVars: []
|
||||
## @param sidekiq.extraEnvVarsCM Array to add extra configmaps
|
||||
##
|
||||
extraEnvVarsCM: []
|
||||
## @param sidekiq.extraEnvVarsSecret Name of the secret that holds extra env vars
|
||||
##
|
||||
extraEnvVarsSecret: ""
|
||||
## @param sidekiq.extraVolumeMounts Additional volume mounts
|
||||
## Example: Mount CA file
|
||||
## extraVolumeMounts
|
||||
## - name: ca-cert
|
||||
## subPath: ca_cert
|
||||
## mountPath: /path/to/ca_cert
|
||||
##
|
||||
extraVolumeMounts: []
|
||||
|
||||
## @section Volume Permissions parameters
|
||||
## @section Volume Permissions parameters (currently disabled because there is
|
||||
## no persistence in the app)
|
||||
|
||||
## Init containers parameters:
|
||||
## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup
|
||||
|
|
@ -537,7 +584,7 @@ ingress:
|
|||
certManager: false
|
||||
## @param ingress.hostname Default host for the ingress resource
|
||||
##
|
||||
hostname: adminFrontend.local
|
||||
hostname: adminPanel.local
|
||||
## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
|
||||
##
|
||||
apiVersion: ""
|
||||
|
|
@ -562,15 +609,15 @@ ingress:
|
|||
## @param ingress.extraHosts The list of additional hostnames to be covered with this ingress record.
|
||||
## Most likely the hostname above will be enough, but in the event more hosts are needed, this is an array
|
||||
## extraHosts:
|
||||
## - name: adminFrontend.local
|
||||
## - name: adminPanel.local
|
||||
## path: /
|
||||
extraHosts: []
|
||||
## @param ingress.extraTls The tls configuration for additional hostnames to be covered with this ingress record.
|
||||
## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
|
||||
## extraTls:
|
||||
## - hosts:
|
||||
## - adminFrontend.local
|
||||
## secretName: adminFrontend.local-tls
|
||||
## - adminPanel.local
|
||||
## secretName: adminPanel.local-tls
|
||||
extraTls: []
|
||||
## @param ingress.secrets If you're providing your own certificates, please use this to add the certificates as secrets
|
||||
## key and certificate should start with -----BEGIN CERTIFICATE----- or
|
||||
|
|
@ -582,7 +629,7 @@ ingress:
|
|||
## It is also possible to create and manage the certificates outside of this helm chart
|
||||
## Please see README.md for more information
|
||||
## Example:
|
||||
## - name: adminFrontend.local-tls
|
||||
## - name: adminPanel.local-tls
|
||||
## key:
|
||||
## certificate:
|
||||
secrets: []
|
||||
|
|
|
|||
Reference in a new issue