fix gitea
This commit is contained in:
4
apps/gitea/README.md
Normal file
4
apps/gitea/README.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Customised Gitea Chart
|
||||||
|
## The original Gitea chart can be found [here](https://github.com/bitnami/charts/tree/main/bitnami/gitea)
|
||||||
|
## The deployment.yaml file is a modified version of the original deployment.yaml file - directly read secret values
|
||||||
|
## The further chart updates need to keep this modification unless using existing secrets are supported by the owner
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
||||||
# SPDX-License-Identifier: APACHE-2.0
|
|
||||||
|
|
||||||
annotations:
|
|
||||||
category: Analytics
|
|
||||||
licenses: Apache-2.0
|
|
||||||
images: |
|
|
||||||
- name: gitea
|
|
||||||
image: docker.io/bitnami/gitea:1.22.1-debian-12-r4
|
|
||||||
- name: os-shell
|
|
||||||
image: docker.io/bitnami/os-shell:12-debian-12-r25
|
|
||||||
apiVersion: v2
|
|
||||||
appVersion: 1.22.1
|
|
||||||
dependencies:
|
|
||||||
- condition: postgresql.enabled
|
|
||||||
name: postgresql
|
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
|
||||||
version: 15.x.x
|
|
||||||
- name: common
|
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
|
||||||
tags:
|
|
||||||
- bitnami-common
|
|
||||||
version: 2.x.x
|
|
||||||
description: Gitea is a lightweight code hosting solution. Written in Go, features low resource consumption, easy upgrades and multiple databases.
|
|
||||||
home: https://bitnami.com
|
|
||||||
icon: https://bitnami.com/assets/stacks/gitea/img/gitea-stack-220x234.png
|
|
||||||
keywords:
|
|
||||||
- gitea
|
|
||||||
- analytics
|
|
||||||
- http
|
|
||||||
- web
|
|
||||||
- application
|
|
||||||
- php
|
|
||||||
maintainers:
|
|
||||||
- name: Broadcom, Inc. All Rights Reserved.
|
|
||||||
url: https://github.com/bitnami/charts
|
|
||||||
name: gitea
|
|
||||||
sources:
|
|
||||||
- https://github.com/bitnami/charts/tree/main/bitnami/gitea
|
|
||||||
version: 2.3.13
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
{{/*
|
|
||||||
Copyright Broadcom, Inc. All Rights Reserved.
|
|
||||||
SPDX-License-Identifier: APACHE-2.0
|
|
||||||
*/}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a default fully qualified postgresql name.
|
|
||||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.postgresql.fullname" -}}
|
|
||||||
{{- include "common.names.dependency.fullname" (dict "chartName" "postgresql" "chartValues" .Values.postgresql "context" $) -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the proper Gitea image name
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.image" -}}
|
|
||||||
{{- include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the proper image name (for the init container volume-permissions image)
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.volumePermissions.image" -}}
|
|
||||||
{{- include "common.images.image" ( dict "imageRoot" .Values.volumePermissions.image "global" .Values.global ) -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the proper Docker Image Registry Secret Names
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.imagePullSecrets" -}}
|
|
||||||
{{- include "common.images.pullSecrets" (dict "images" (list .Values.image .Values.volumePermissions.image) "global" .Values.global) -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the proper Storage Class
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.storageClass" -}}
|
|
||||||
{{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Gitea credential secret name
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.secretName" -}}
|
|
||||||
{{- coalesce .Values.existingSecret (include "common.names.fullname" .) -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Gitea root URL
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.rootURL" -}}
|
|
||||||
{{- if .Values.rootURL -}}
|
|
||||||
{{- print .Values.rootURL -}}
|
|
||||||
{{- else if .Values.ingress.enabled -}}
|
|
||||||
{{- printf "http://%s" .Values.ingress.hostname -}}
|
|
||||||
{{- else if (and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerIP) -}}
|
|
||||||
{{- $url := printf "http://%s" .Values.service.loadBalancerIP -}}
|
|
||||||
{{- $port:= .Values.service.ports.http | toString }}
|
|
||||||
{{- if (ne $port "80") -}}
|
|
||||||
{{- $url = printf "%s:%s" $url $port -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- print $url -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create the name of the service account to use
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.serviceAccountName" -}}
|
|
||||||
{{- if .Values.serviceAccount.create -}}
|
|
||||||
{{- default (include "common.names.fullname" .) .Values.serviceAccount.name -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- default "default" .Values.serviceAccount.name -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Gitea credential secret name
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.secretKey" -}}
|
|
||||||
{{- if .Values.existingSecret -}}
|
|
||||||
{{- print .Values.existingSecretKey -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- print "admin-password" -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the SMTP Secret Name
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.smtpSecretName" -}}
|
|
||||||
{{- if .Values.smtpExistingSecret }}
|
|
||||||
{{- print .Values.smtpExistingSecret -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- print (include "common.names.fullname" .) -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the PostgreSQL Hostname
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.databaseHost" -}}
|
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
{{- if eq .Values.postgresql.architecture "replication" }}
|
|
||||||
{{- printf "%s-%s" (include "gitea.postgresql.fullname" .) "primary" | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- print (include "gitea.postgresql.fullname" .) -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- print .Values.externalDatabase.host -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the PostgreSQL Port
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.databasePort" -}}
|
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
{{- print .Values.postgresql.primary.service.ports.postgresql -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- printf "%d" (.Values.externalDatabase.port | int ) -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the PostgreSQL Database Name
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.databaseName" -}}
|
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
{{- print .Values.postgresql.auth.database -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- print .Values.externalDatabase.database -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the PostgreSQL User
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.databaseUser" -}}
|
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
{{- print .Values.postgresql.auth.username -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- print .Values.externalDatabase.user -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the PostgreSQL Secret Name
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.databaseSecretName" -}}
|
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
{{- if .Values.postgresql.auth.existingSecret -}}
|
|
||||||
{{- print .Values.postgresql.auth.existingSecret -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- print (include "gitea.postgresql.fullname" .) -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- else if .Values.externalDatabase.existingSecret -}}
|
|
||||||
{{- print .Values.externalDatabase.existingSecret -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- printf "%s-%s" (include "common.names.fullname" .) "externaldb" -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Return the database password key
|
|
||||||
*/}}
|
|
||||||
{{- define "gitea.databasePasswordKey" -}}
|
|
||||||
{{- if .Values.postgresql.enabled -}}
|
|
||||||
{{- print "password" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{ print .Values.externalDatabase.existingSecretPasswordKey }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
{{- /*
|
|
||||||
Copyright Broadcom, Inc. All Rights Reserved.
|
|
||||||
SPDX-License-Identifier: APACHE-2.0
|
|
||||||
*/}}
|
|
||||||
|
|
||||||
{{- if .Values.ingress.enabled }}
|
|
||||||
apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: {{ template "common.names.fullname" . }}
|
|
||||||
namespace: {{ include "common.names.namespace" . | quote }}
|
|
||||||
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
||||||
{{- if or .Values.ingress.annotations .Values.commonAnnotations }}
|
|
||||||
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.ingress.annotations .Values.commonAnnotations ) "context" . ) }}
|
|
||||||
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
{{- if and .Values.ingress.ingressClassName (eq "true" (include "common.ingress.supportsIngressClassname" .)) }}
|
|
||||||
ingressClassName: {{ .Values.ingress.ingressClassName | quote }}
|
|
||||||
{{- end }}
|
|
||||||
rules:
|
|
||||||
{{- if .Values.ingress.hostname }}
|
|
||||||
- host: {{ .Values.ingress.hostname }}
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
{{- if .Values.ingress.extraPaths }}
|
|
||||||
{{- toYaml .Values.ingress.extraPaths | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
- path: {{ .Values.ingress.path }}
|
|
||||||
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
|
|
||||||
pathType: {{ .Values.ingress.pathType }}
|
|
||||||
{{- end }}
|
|
||||||
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" .) "servicePort" "http" "context" $) | nindent 14 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- range .Values.ingress.extraHosts }}
|
|
||||||
- host: {{ .name | quote }}
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: {{ default "/" .path }}
|
|
||||||
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
|
|
||||||
pathType: {{ default "ImplementationSpecific" .pathType }}
|
|
||||||
{{- end }}
|
|
||||||
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 14 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.ingress.extraRules }}
|
|
||||||
{{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraRules "context" $) | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if or (and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned)) .Values.ingress.extraTls }}
|
|
||||||
tls:
|
|
||||||
{{- if and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned) }}
|
|
||||||
- hosts:
|
|
||||||
- {{ .Values.ingress.hostname | quote }}
|
|
||||||
secretName: {{ printf "%s-tls" .Values.ingress.hostname }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.ingress.extraTls }}
|
|
||||||
{{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraTls "context" $) | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,776 +0,0 @@
|
|||||||
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
||||||
# SPDX-License-Identifier: APACHE-2.0
|
|
||||||
|
|
||||||
## @section Global parameters
|
|
||||||
## Global Docker image parameters
|
|
||||||
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
|
|
||||||
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
|
|
||||||
##
|
|
||||||
|
|
||||||
## @param global.imageRegistry Global Docker image registry
|
|
||||||
## @param global.imagePullSecrets Global Docker registry secret names as an array
|
|
||||||
## @param global.storageClass Global StorageClass for Persistent Volume(s)
|
|
||||||
##
|
|
||||||
global:
|
|
||||||
imageRegistry: ""
|
|
||||||
## E.g.
|
|
||||||
## imagePullSecrets:
|
|
||||||
## - myRegistryKeySecretName
|
|
||||||
##
|
|
||||||
imagePullSecrets: []
|
|
||||||
storageClass: ""
|
|
||||||
## Compatibility adaptations for Kubernetes platforms
|
|
||||||
##
|
|
||||||
compatibility:
|
|
||||||
## Compatibility adaptations for Openshift
|
|
||||||
##
|
|
||||||
openshift:
|
|
||||||
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
|
|
||||||
##
|
|
||||||
adaptSecurityContext: auto
|
|
||||||
## @section Common parameters
|
|
||||||
##
|
|
||||||
|
|
||||||
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
|
|
||||||
##
|
|
||||||
kubeVersion: ""
|
|
||||||
## @param nameOverride String to partially override gitea.fullname template (will maintain the release name)
|
|
||||||
##
|
|
||||||
nameOverride: ""
|
|
||||||
## @param fullnameOverride String to fully override gitea.fullname template
|
|
||||||
##
|
|
||||||
fullnameOverride: ""
|
|
||||||
## @param namespaceOverride String to fully override common.names.namespace
|
|
||||||
##
|
|
||||||
namespaceOverride: ""
|
|
||||||
## @param commonAnnotations Common annotations to add to all Gitea resources (sub-charts are not considered). Evaluated as a template
|
|
||||||
##
|
|
||||||
commonAnnotations: {}
|
|
||||||
## @param commonLabels Common labels to add to all Gitea resources (sub-charts are not considered). Evaluated as a template
|
|
||||||
##
|
|
||||||
commonLabels: {}
|
|
||||||
## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template).
|
|
||||||
##
|
|
||||||
extraDeploy: []
|
|
||||||
## @section Gitea parameters
|
|
||||||
##
|
|
||||||
|
|
||||||
## Bitnami Gitea image version
|
|
||||||
## ref: https://hub.docker.com/r/bitnami/gitea/tags/
|
|
||||||
## @param image.registry [default: REGISTRY_NAME] Gitea image registry
|
|
||||||
## @param image.repository [default: REPOSITORY_NAME/gitea] Gitea Image name
|
|
||||||
## @skip image.tag Gitea Image tag
|
|
||||||
## @param image.digest Gitea image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
|
|
||||||
## @param image.pullPolicy Gitea image pull policy
|
|
||||||
## @param image.pullSecrets Specify docker-registry secret names as an array
|
|
||||||
## @param image.debug Specify if debug logs should be enabled
|
|
||||||
##
|
|
||||||
image:
|
|
||||||
registry: docker.io
|
|
||||||
repository: bitnami/gitea
|
|
||||||
tag: 1.22.1-debian-12-r4
|
|
||||||
digest: ""
|
|
||||||
## Specify a imagePullPolicy
|
|
||||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-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 adminUsername User of the application
|
|
||||||
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
|
||||||
##
|
|
||||||
adminUsername: bn_user
|
|
||||||
## @param adminPassword Application password
|
|
||||||
## Defaults to a random 10-character alphanumeric string if not set
|
|
||||||
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
|
||||||
##
|
|
||||||
adminPassword: ""
|
|
||||||
## @param adminEmail Admin email
|
|
||||||
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
|
||||||
##
|
|
||||||
adminEmail: user@example.com
|
|
||||||
## @param appName Gitea application name
|
|
||||||
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
|
||||||
##
|
|
||||||
appName: example
|
|
||||||
## @param runMode Gitea application host
|
|
||||||
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
|
||||||
##
|
|
||||||
runMode: prod
|
|
||||||
## @param exposeSSH Make the SSH server accesible
|
|
||||||
##
|
|
||||||
exposeSSH: true
|
|
||||||
## @param rootURL UI Root URL (for link generation)
|
|
||||||
##
|
|
||||||
rootURL: ""
|
|
||||||
## @param command Override default container command (useful when using custom images)
|
|
||||||
##
|
|
||||||
command: []
|
|
||||||
## @param args Override default container args (useful when using custom images)
|
|
||||||
##
|
|
||||||
args: []
|
|
||||||
## @param updateStrategy.type Update strategy - only really applicable for deployments with RWO PVs attached
|
|
||||||
## If replicas = 1, an update can get "stuck", as the previous pod remains attached to the
|
|
||||||
## PV, and the "incoming" pod can never start. Changing the strategy to "Recreate" will
|
|
||||||
## terminate the single previous pod, so that the new, incoming pod can attach to the PV
|
|
||||||
##
|
|
||||||
updateStrategy:
|
|
||||||
type: RollingUpdate
|
|
||||||
## @param priorityClassName Gitea pods' priorityClassName
|
|
||||||
##
|
|
||||||
priorityClassName: ""
|
|
||||||
## @param schedulerName Name of the k8s scheduler (other than default)
|
|
||||||
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
|
|
||||||
##
|
|
||||||
schedulerName: ""
|
|
||||||
## @param topologySpreadConstraints Topology Spread Constraints for pod assignment
|
|
||||||
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
|
|
||||||
## The value is evaluated as a template
|
|
||||||
##
|
|
||||||
topologySpreadConstraints: []
|
|
||||||
## @param automountServiceAccountToken Mount Service Account token in pod
|
|
||||||
##
|
|
||||||
automountServiceAccountToken: false
|
|
||||||
## @param hostAliases [array] Add deployment host aliases
|
|
||||||
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
|
|
||||||
##
|
|
||||||
hostAliases: []
|
|
||||||
## @param extraEnvVars Extra environment variables
|
|
||||||
## For example:
|
|
||||||
##
|
|
||||||
extraEnvVars: []
|
|
||||||
# - name: BEARER_AUTH
|
|
||||||
# value: true
|
|
||||||
## @param extraEnvVarsCM ConfigMap containing extra env vars
|
|
||||||
##
|
|
||||||
extraEnvVarsCM: ""
|
|
||||||
## @param extraEnvVarsSecret Secret containing extra env vars (in case of sensitive data)
|
|
||||||
##
|
|
||||||
extraEnvVarsSecret: ""
|
|
||||||
## @param extraVolumes Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts`
|
|
||||||
##
|
|
||||||
extraVolumes: []
|
|
||||||
## @param extraVolumeMounts Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`.
|
|
||||||
##
|
|
||||||
extraVolumeMounts: []
|
|
||||||
## @param initContainers Add additional init containers to the pod (evaluated as a template)
|
|
||||||
##
|
|
||||||
initContainers: []
|
|
||||||
## Pod Disruption Budget configuration
|
|
||||||
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
|
|
||||||
## @param pdb.create Enable/disable a Pod Disruption Budget creation
|
|
||||||
## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
|
|
||||||
## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
|
|
||||||
##
|
|
||||||
pdb:
|
|
||||||
create: true
|
|
||||||
minAvailable: ""
|
|
||||||
maxUnavailable: ""
|
|
||||||
## @param sidecars Attach additional containers to the pod (evaluated as a template)
|
|
||||||
##
|
|
||||||
sidecars: []
|
|
||||||
## @param tolerations Tolerations for pod assignment
|
|
||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
|
|
||||||
##
|
|
||||||
tolerations: []
|
|
||||||
## @param existingSecret Name of a secret with the application password
|
|
||||||
##
|
|
||||||
existingSecret: ""
|
|
||||||
## @param existingSecretKey Key inside the existing secret containing the password
|
|
||||||
##
|
|
||||||
existingSecretKey: "admin-password"
|
|
||||||
## SMTP mail delivery configuration
|
|
||||||
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea/#smtp-configuration
|
|
||||||
## @param smtpHost SMTP host
|
|
||||||
## @param smtpPort SMTP port
|
|
||||||
## @param smtpUser SMTP user
|
|
||||||
## @param smtpPassword SMTP password
|
|
||||||
##
|
|
||||||
smtpHost: ""
|
|
||||||
smtpPort: ""
|
|
||||||
smtpUser: ""
|
|
||||||
smtpPassword: ""
|
|
||||||
## @param smtpExistingSecret The name of an existing secret with SMTP credentials
|
|
||||||
## NOTE: Must contain key `smtp-password`
|
|
||||||
## NOTE: When it's set, the `smtpPassword` parameter is ignored
|
|
||||||
##
|
|
||||||
smtpExistingSecret: ""
|
|
||||||
## @param containerPorts [object] Container ports
|
|
||||||
##
|
|
||||||
containerPorts:
|
|
||||||
http: 3000
|
|
||||||
ssh: 2222
|
|
||||||
## @param extraContainerPorts Optionally specify extra list of additional ports for Gitea container(s)
|
|
||||||
## e.g:
|
|
||||||
## extraContainerPorts:
|
|
||||||
## - name: myservice
|
|
||||||
## containerPort: 9090
|
|
||||||
##
|
|
||||||
extraContainerPorts: []
|
|
||||||
## Enable OpenID Configurations
|
|
||||||
## @param openid.enableSignIn Enable sign in with OpenID
|
|
||||||
## @param openid.enableSignUp Enable sign up with OpenID
|
|
||||||
openid:
|
|
||||||
enableSignIn: false
|
|
||||||
enableSignUp: false
|
|
||||||
## Enable persistence using Persistent Volume Claims
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
|
|
||||||
##
|
|
||||||
persistence:
|
|
||||||
## @param persistence.enabled Enable persistence using PVC
|
|
||||||
##
|
|
||||||
enabled: true
|
|
||||||
## @param persistence.storageClass PVC Storage Class for Gitea volume
|
|
||||||
## If defined, storageClassName: <storageClass>
|
|
||||||
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
|
||||||
## If undefined (the default) or set to null, no storageClassName spec is
|
|
||||||
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
|
||||||
## GKE, AWS & OpenStack)
|
|
||||||
##
|
|
||||||
storageClass: ""
|
|
||||||
## @param persistence.accessModes PVC Access Mode for Gitea volume
|
|
||||||
## Requires persistence.enabled: true
|
|
||||||
## If defined, PVC must be created manually before volume will be bound
|
|
||||||
##
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
## @param persistence.size PVC Storage Request for Gitea volume
|
|
||||||
##
|
|
||||||
size: 8Gi
|
|
||||||
## @param persistence.dataSource Custom PVC data source
|
|
||||||
##
|
|
||||||
dataSource: {}
|
|
||||||
## @param persistence.existingClaim A manually managed Persistent Volume Claim
|
|
||||||
## Requires persistence.enabled: true
|
|
||||||
## If defined, PVC must be created manually before volume will be bound
|
|
||||||
##
|
|
||||||
existingClaim: ""
|
|
||||||
## @param persistence.hostPath If defined, the gitea-data volume will mount to the specified hostPath.
|
|
||||||
## Requires persistence.enabled: true
|
|
||||||
## Requires persistence.existingClaim: nil|false
|
|
||||||
## Default: nil.
|
|
||||||
##
|
|
||||||
hostPath: ""
|
|
||||||
## @param persistence.annotations Persistent Volume Claim annotations
|
|
||||||
##
|
|
||||||
annotations: {}
|
|
||||||
## @param persistence.selector Selector to match an existing Persistent Volume for Gitea data PVC
|
|
||||||
## If set, the PVC can't have a PV dynamically provisioned for it
|
|
||||||
## E.g.
|
|
||||||
## selector:
|
|
||||||
## matchLabels:
|
|
||||||
## app: my-app
|
|
||||||
##
|
|
||||||
selector: {}
|
|
||||||
## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
|
|
||||||
##
|
|
||||||
podAffinityPreset: ""
|
|
||||||
## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
|
|
||||||
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
|
|
||||||
##
|
|
||||||
podAntiAffinityPreset: soft
|
|
||||||
## Node affinity preset
|
|
||||||
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
|
|
||||||
## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
|
|
||||||
## @param nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
|
|
||||||
## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
|
|
||||||
##
|
|
||||||
nodeAffinityPreset:
|
|
||||||
type: ""
|
|
||||||
## E.g.
|
|
||||||
## key: "kubernetes.io/e2e-az-name"
|
|
||||||
##
|
|
||||||
key: ""
|
|
||||||
## E.g.
|
|
||||||
## values:
|
|
||||||
## - e2e-az1
|
|
||||||
## - e2e-az2
|
|
||||||
##
|
|
||||||
values: []
|
|
||||||
## @param affinity Affinity for pod assignment
|
|
||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
|
||||||
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
|
|
||||||
##
|
|
||||||
affinity: {}
|
|
||||||
## @param nodeSelector Node labels for pod assignment. Evaluated as a template.
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
|
|
||||||
##
|
|
||||||
nodeSelector: {}
|
|
||||||
## Gitea container's resource requests and limits
|
|
||||||
## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
|
||||||
## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
|
|
||||||
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
|
|
||||||
##
|
|
||||||
resourcesPreset: "micro"
|
|
||||||
## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
|
|
||||||
## Example:
|
|
||||||
## resources:
|
|
||||||
## requests:
|
|
||||||
## cpu: 2
|
|
||||||
## memory: 512Mi
|
|
||||||
## limits:
|
|
||||||
## cpu: 3
|
|
||||||
## memory: 1024Mi
|
|
||||||
##
|
|
||||||
resources: {}
|
|
||||||
## Configure Pods Security Context
|
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
|
|
||||||
## @param podSecurityContext.enabled Enable Gitea pods' Security Context
|
|
||||||
## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
|
|
||||||
## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
|
|
||||||
## @param podSecurityContext.supplementalGroups Set filesystem extra groups
|
|
||||||
## @param podSecurityContext.fsGroup Gitea pods' group ID
|
|
||||||
##
|
|
||||||
podSecurityContext:
|
|
||||||
enabled: true
|
|
||||||
fsGroupChangePolicy: Always
|
|
||||||
sysctls: []
|
|
||||||
supplementalGroups: []
|
|
||||||
fsGroup: 1001
|
|
||||||
## Configure Container Security Context (only main container)
|
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
|
|
||||||
## @param containerSecurityContext.enabled Enabled containers' Security Context
|
|
||||||
## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
|
|
||||||
## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
|
|
||||||
## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
|
|
||||||
## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
|
|
||||||
## @param containerSecurityContext.privileged Set container's Security Context privileged
|
|
||||||
## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
|
|
||||||
## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
|
|
||||||
## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
|
|
||||||
## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
|
|
||||||
##
|
|
||||||
containerSecurityContext:
|
|
||||||
enabled: true
|
|
||||||
seLinuxOptions: {}
|
|
||||||
runAsUser: 1001
|
|
||||||
runAsGroup: 1001
|
|
||||||
runAsNonRoot: true
|
|
||||||
privileged: false
|
|
||||||
readOnlyRootFilesystem: true
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
capabilities:
|
|
||||||
drop: ["ALL"]
|
|
||||||
seccompProfile:
|
|
||||||
type: "RuntimeDefault"
|
|
||||||
## Configure extra options for startup probe
|
|
||||||
## Gitea core exposes / to unauthenticated requests, making it a good
|
|
||||||
## default startup and readiness path. However, that may not always be the
|
|
||||||
## case. For example, if the image value is overridden to an image containing a
|
|
||||||
## module that alters that route, or an image that does not auto-install Gitea.
|
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
|
|
||||||
## @param startupProbe.enabled Enable startupProbe
|
|
||||||
## @param startupProbe.path Request path for startupProbe
|
|
||||||
## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
|
|
||||||
## @param startupProbe.periodSeconds Period seconds for startupProbe
|
|
||||||
## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
|
|
||||||
## @param startupProbe.failureThreshold Failure threshold for startupProbe
|
|
||||||
## @param startupProbe.successThreshold Success threshold for startupProbe
|
|
||||||
##
|
|
||||||
startupProbe:
|
|
||||||
enabled: false
|
|
||||||
path: /
|
|
||||||
initialDelaySeconds: 600
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 5
|
|
||||||
successThreshold: 1
|
|
||||||
## Configure extra options for liveness probe
|
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
|
|
||||||
## @param livenessProbe.enabled Enable livenessProbe
|
|
||||||
## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
|
|
||||||
## @param livenessProbe.periodSeconds Period seconds for livenessProbe
|
|
||||||
## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
|
|
||||||
## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
|
|
||||||
## @param livenessProbe.successThreshold Success threshold for livenessProbe
|
|
||||||
##
|
|
||||||
livenessProbe:
|
|
||||||
enabled: true
|
|
||||||
initialDelaySeconds: 600
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 5
|
|
||||||
successThreshold: 1
|
|
||||||
## Configure extra options for readiness probe
|
|
||||||
## Gitea core exposes / to unauthenticated requests, making it a good
|
|
||||||
## default startup and readiness path. However, that may not always be the
|
|
||||||
## case. For example, if the image value is overridden to an image containing a
|
|
||||||
## module that alters that route, or an image that does not auto-install Gitea.
|
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
|
|
||||||
## @param readinessProbe.enabled Enable readinessProbe
|
|
||||||
## @param readinessProbe.path Request path for readinessProbe
|
|
||||||
## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
|
|
||||||
## @param readinessProbe.periodSeconds Period seconds for readinessProbe
|
|
||||||
## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
|
|
||||||
## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
|
|
||||||
## @param readinessProbe.successThreshold Success threshold for readinessProbe
|
|
||||||
##
|
|
||||||
readinessProbe:
|
|
||||||
enabled: true
|
|
||||||
path: /
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 5
|
|
||||||
timeoutSeconds: 1
|
|
||||||
failureThreshold: 5
|
|
||||||
successThreshold: 1
|
|
||||||
## @param customStartupProbe Override default startup probe
|
|
||||||
##
|
|
||||||
customStartupProbe: {}
|
|
||||||
## @param customLivenessProbe Override default liveness probe
|
|
||||||
##
|
|
||||||
customLivenessProbe: {}
|
|
||||||
## @param customReadinessProbe Override default readiness probe
|
|
||||||
##
|
|
||||||
customReadinessProbe: {}
|
|
||||||
## @param lifecycleHooks LifecycleHook to set additional configuration at startup Evaluated as a template
|
|
||||||
##
|
|
||||||
lifecycleHooks: {}
|
|
||||||
## @param podAnnotations Pod annotations
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
|
|
||||||
##
|
|
||||||
podAnnotations: {}
|
|
||||||
## @param podLabels Add additional labels to the pod (evaluated as a template)
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
|
||||||
##
|
|
||||||
podLabels: {}
|
|
||||||
## @section Traffic Exposure Parameters
|
|
||||||
##
|
|
||||||
|
|
||||||
## Kubernetes configuration. For minikube, set this to NodePort, elsewhere use LoadBalancer
|
|
||||||
##
|
|
||||||
service:
|
|
||||||
## @param service.type Kubernetes Service type
|
|
||||||
##
|
|
||||||
type: LoadBalancer
|
|
||||||
## @param service.ports.http Service HTTP port
|
|
||||||
## @param service.ports.ssh Service SSH port
|
|
||||||
##
|
|
||||||
ports:
|
|
||||||
http: 80
|
|
||||||
ssh: 22
|
|
||||||
## @param service.loadBalancerSourceRanges Restricts access for LoadBalancer (only with `service.type: LoadBalancer`)
|
|
||||||
## e.g:
|
|
||||||
## loadBalancerSourceRanges:
|
|
||||||
## - 0.0.0.0/0
|
|
||||||
##
|
|
||||||
loadBalancerSourceRanges: []
|
|
||||||
## @param service.loadBalancerIP loadBalancerIP for the Gitea Service (optional, cloud specific)
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
|
|
||||||
##
|
|
||||||
loadBalancerIP: ""
|
|
||||||
## @param service.nodePorts [object] Kubernetes node port
|
|
||||||
## nodePorts:
|
|
||||||
## http: <to set explicitly, choose port between 30000-32767>
|
|
||||||
## https: <to set explicitly, choose port between 30000-32767>
|
|
||||||
##
|
|
||||||
nodePorts:
|
|
||||||
http: ""
|
|
||||||
ssh: ""
|
|
||||||
## @param service.externalTrafficPolicy Enable client source IP preservation
|
|
||||||
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
|
|
||||||
##
|
|
||||||
externalTrafficPolicy: Cluster
|
|
||||||
## @param service.clusterIP Gitea service Cluster IP
|
|
||||||
## e.g.:
|
|
||||||
## clusterIP: None
|
|
||||||
##
|
|
||||||
clusterIP: ""
|
|
||||||
## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
|
|
||||||
##
|
|
||||||
extraPorts: []
|
|
||||||
## @param service.annotations Additional custom annotations for Gitea service
|
|
||||||
##
|
|
||||||
annotations: {}
|
|
||||||
## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
|
|
||||||
## If "ClientIP", consecutive client requests will be directed to the same Pod
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
|
|
||||||
##
|
|
||||||
sessionAffinity: None
|
|
||||||
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
|
|
||||||
## sessionAffinityConfig:
|
|
||||||
## clientIP:
|
|
||||||
## timeoutSeconds: 300
|
|
||||||
##
|
|
||||||
sessionAffinityConfig: {}
|
|
||||||
|
|
||||||
## Network Policy configuration
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
|
|
||||||
##
|
|
||||||
networkPolicy:
|
|
||||||
## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
|
|
||||||
##
|
|
||||||
enabled: true
|
|
||||||
## @param networkPolicy.allowExternal Don't require server label for connections
|
|
||||||
## The Policy model to apply. When set to false, only pods with the correct
|
|
||||||
## server label will have network access to the ports server is listening
|
|
||||||
## on. When true, server will accept connections from any source
|
|
||||||
## (with the correct destination port).
|
|
||||||
##
|
|
||||||
allowExternal: true
|
|
||||||
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
|
|
||||||
##
|
|
||||||
allowExternalEgress: true
|
|
||||||
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
|
|
||||||
## e.g:
|
|
||||||
## extraIngress:
|
|
||||||
## - ports:
|
|
||||||
## - port: 1234
|
|
||||||
## from:
|
|
||||||
## - podSelector:
|
|
||||||
## - matchLabels:
|
|
||||||
## - role: frontend
|
|
||||||
## - podSelector:
|
|
||||||
## - matchExpressions:
|
|
||||||
## - key: role
|
|
||||||
## operator: In
|
|
||||||
## values:
|
|
||||||
## - frontend
|
|
||||||
extraIngress: []
|
|
||||||
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
|
|
||||||
## e.g:
|
|
||||||
## extraEgress:
|
|
||||||
## - ports:
|
|
||||||
## - port: 1234
|
|
||||||
## to:
|
|
||||||
## - podSelector:
|
|
||||||
## - matchLabels:
|
|
||||||
## - role: frontend
|
|
||||||
## - podSelector:
|
|
||||||
## - matchExpressions:
|
|
||||||
## - key: role
|
|
||||||
## operator: In
|
|
||||||
## values:
|
|
||||||
## - frontend
|
|
||||||
##
|
|
||||||
extraEgress: []
|
|
||||||
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
|
|
||||||
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
|
|
||||||
##
|
|
||||||
ingressNSMatchLabels: {}
|
|
||||||
ingressNSPodMatchLabels: {}
|
|
||||||
|
|
||||||
## Configure the ingress resource that allows you to access the
|
|
||||||
## Gitea installation. Set up the URL
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
|
|
||||||
##
|
|
||||||
ingress:
|
|
||||||
## @param ingress.enabled Enable ingress controller resource
|
|
||||||
##
|
|
||||||
enabled: false
|
|
||||||
## @param ingress.pathType Ingress Path type
|
|
||||||
##
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
## @param ingress.apiVersion Override API Version (automatically detected if not set)
|
|
||||||
##
|
|
||||||
apiVersion: ""
|
|
||||||
## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
|
|
||||||
## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
|
|
||||||
## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
|
|
||||||
##
|
|
||||||
ingressClassName: ""
|
|
||||||
## @param ingress.hostname Default host for the ingress resource
|
|
||||||
##
|
|
||||||
hostname: "gitea.local"
|
|
||||||
## @param ingress.path The Path to Gitea. You may need to set this to '/*' in order to use this
|
|
||||||
## with ALB ingress controllers.
|
|
||||||
##
|
|
||||||
path: /
|
|
||||||
## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
|
|
||||||
## For a full list of possible ingress annotations, please see
|
|
||||||
## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
|
|
||||||
## Use this parameter to set the required annotations for cert-manager, see
|
|
||||||
## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
|
|
||||||
##
|
|
||||||
## e.g:
|
|
||||||
## annotations:
|
|
||||||
## kubernetes.io/ingress.class: nginx
|
|
||||||
## cert-manager.io/cluster-issuer: cluster-issuer-name
|
|
||||||
##
|
|
||||||
annotations: {}
|
|
||||||
## @param ingress.tls Enable TLS configuration for the hostname defined at ingress.hostname parameter
|
|
||||||
## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}
|
|
||||||
## You can use the ingress.secrets parameter to create this TLS secret or relay on cert-manager to create it
|
|
||||||
##
|
|
||||||
tls: false
|
|
||||||
## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
|
|
||||||
##
|
|
||||||
selfSigned: false
|
|
||||||
## @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: gitea.local
|
|
||||||
## path: /
|
|
||||||
##
|
|
||||||
extraHosts: []
|
|
||||||
## @param ingress.extraPaths Any additional arbitrary paths that may need to be added to the ingress under the main host.
|
|
||||||
## For example: The ALB ingress controller requires a special rule for handling SSL redirection.
|
|
||||||
## extraPaths:
|
|
||||||
## - path: /*
|
|
||||||
## backend:
|
|
||||||
## serviceName: ssl-redirect
|
|
||||||
## servicePort: use-annotation
|
|
||||||
##
|
|
||||||
extraPaths: []
|
|
||||||
## @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:
|
|
||||||
## - gitea.local
|
|
||||||
## secretName: gitea.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
|
|
||||||
## -----BEGIN RSA PRIVATE KEY-----
|
|
||||||
##
|
|
||||||
## name should line up with a tlsSecret set further up
|
|
||||||
## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set
|
|
||||||
##
|
|
||||||
## It is also possible to create and manage the certificates outside of this helm chart
|
|
||||||
## Please see README.md for more information
|
|
||||||
## Example:
|
|
||||||
## - name: gitea.local-tls
|
|
||||||
## key:
|
|
||||||
## certificate:
|
|
||||||
##
|
|
||||||
secrets: []
|
|
||||||
## @param ingress.extraRules Additional rules to be covered with this ingress record
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
|
|
||||||
## e.g:
|
|
||||||
## extraRules:
|
|
||||||
## - host: example.local
|
|
||||||
## http:
|
|
||||||
## path: /
|
|
||||||
## backend:
|
|
||||||
## service:
|
|
||||||
## name: example-svc
|
|
||||||
## port:
|
|
||||||
## name: http
|
|
||||||
##
|
|
||||||
extraRules: []
|
|
||||||
## @section Other Parameters
|
|
||||||
##
|
|
||||||
|
|
||||||
## Service account for Gitea to use.
|
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
|
||||||
##
|
|
||||||
serviceAccount:
|
|
||||||
## @param serviceAccount.create Enable creation of ServiceAccount for Gitea pod
|
|
||||||
##
|
|
||||||
create: true
|
|
||||||
## @param serviceAccount.name The name of the ServiceAccount to use.
|
|
||||||
## If not set and create is true, a name is generated using the common.names.fullname template
|
|
||||||
##
|
|
||||||
name: ""
|
|
||||||
## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
|
|
||||||
## Can be set to false if pods using this serviceAccount do not need to use K8s API
|
|
||||||
##
|
|
||||||
automountServiceAccountToken: false
|
|
||||||
## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
|
|
||||||
##
|
|
||||||
annotations: {}
|
|
||||||
## @section Database parameters
|
|
||||||
##
|
|
||||||
|
|
||||||
## PostgreSQL chart configuration
|
|
||||||
## ref: https://github.com/bitnami/charts/blob/main/bitnami/postgresql/values.yaml
|
|
||||||
## @param postgresql.enabled Switch to enable or disable the PostgreSQL helm chart
|
|
||||||
## @param postgresql.auth.username Name for a custom user to create
|
|
||||||
## @param postgresql.auth.password Password for the custom user to create
|
|
||||||
## @param postgresql.auth.database Name for a custom database to create
|
|
||||||
## @param postgresql.auth.existingSecret Name of existing secret to use for PostgreSQL credentials
|
|
||||||
## @param postgresql.architecture PostgreSQL architecture (`standalone` or `replication`)
|
|
||||||
## @param postgresql.service.ports.postgresql PostgreSQL service port
|
|
||||||
##
|
|
||||||
postgresql:
|
|
||||||
enabled: true
|
|
||||||
auth:
|
|
||||||
username: bn_gitea
|
|
||||||
password: ""
|
|
||||||
database: bitnami_gitea
|
|
||||||
existingSecret: ""
|
|
||||||
architecture: standalone
|
|
||||||
service:
|
|
||||||
ports:
|
|
||||||
postgresql: 5432
|
|
||||||
## External PostgreSQL configuration
|
|
||||||
## All of these values are only used when postgresql.enabled is set to false
|
|
||||||
## @param externalDatabase.host Database host
|
|
||||||
## @param externalDatabase.port Database port number
|
|
||||||
## @param externalDatabase.user Non-root username for JupyterHub
|
|
||||||
## @param externalDatabase.password Password for the non-root username for JupyterHub
|
|
||||||
## @param externalDatabase.database JupyterHub database name
|
|
||||||
## @param externalDatabase.existingSecret Name of an existing secret resource containing the database credentials
|
|
||||||
## @param externalDatabase.existingSecretPasswordKey Name of an existing secret key containing the database credentials
|
|
||||||
##
|
|
||||||
externalDatabase:
|
|
||||||
host: ""
|
|
||||||
port: 5432
|
|
||||||
user: postgres
|
|
||||||
database: gitea
|
|
||||||
password: ""
|
|
||||||
existingSecret: ""
|
|
||||||
existingSecretPasswordKey: "db-password"
|
|
||||||
## @section Volume Permissions parameters
|
|
||||||
##
|
|
||||||
|
|
||||||
## Init containers parameters:
|
|
||||||
## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
|
|
||||||
##
|
|
||||||
volumePermissions:
|
|
||||||
## @param volumePermissions.enabled Enable init container that changes volume permissions in the data directory (for cases where the default k8s `runAsUser` and `fsUser` values do not work)
|
|
||||||
##
|
|
||||||
enabled: false
|
|
||||||
## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
|
|
||||||
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image name
|
|
||||||
## @skip volumePermissions.image.tag Init container volume-permissions image tag
|
|
||||||
## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
|
|
||||||
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
|
|
||||||
## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
|
|
||||||
##
|
|
||||||
image:
|
|
||||||
registry: docker.io
|
|
||||||
repository: bitnami/os-shell
|
|
||||||
tag: 12-debian-12-r25
|
|
||||||
digest: ""
|
|
||||||
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: []
|
|
||||||
## Init containers' resource requests and limits
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
|
||||||
## 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 volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
|
|
||||||
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
|
|
||||||
##
|
|
||||||
resourcesPreset: "nano"
|
|
||||||
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
|
|
||||||
## Example:
|
|
||||||
## resources:
|
|
||||||
## requests:
|
|
||||||
## cpu: 2
|
|
||||||
## memory: 512Mi
|
|
||||||
## limits:
|
|
||||||
## cpu: 3
|
|
||||||
## memory: 1024Mi
|
|
||||||
##
|
|
||||||
resources: {}
|
|
||||||
64
apps/gitea/env/k3s-cluster/Chart.yaml
vendored
64
apps/gitea/env/k3s-cluster/Chart.yaml
vendored
@@ -1,28 +1,40 @@
|
|||||||
|
# Copyright Broadcom, Inc. All Rights Reserved.
|
||||||
|
# SPDX-License-Identifier: APACHE-2.0
|
||||||
|
|
||||||
|
annotations:
|
||||||
|
category: Analytics
|
||||||
|
licenses: Apache-2.0
|
||||||
|
images: |
|
||||||
|
- name: gitea
|
||||||
|
image: docker.io/bitnami/gitea:1.22.1-debian-12-r4
|
||||||
|
- name: os-shell
|
||||||
|
image: docker.io/bitnami/os-shell:12-debian-12-r25
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: gitea
|
appVersion: 1.22.1
|
||||||
description: Applications
|
|
||||||
|
|
||||||
# A chart can be either an 'application' or a 'library' chart.
|
|
||||||
#
|
|
||||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
|
||||||
# to be deployed.
|
|
||||||
#
|
|
||||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
|
||||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
|
||||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
|
||||||
type: application
|
|
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
|
||||||
# to the chart and its templates, including the app version.
|
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
|
||||||
version: 0.1.0
|
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
|
||||||
appVersion: "0.0.1"
|
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: gitea
|
- condition: postgresql.enabled
|
||||||
version: 2.3.13
|
name: postgresql
|
||||||
repository: "https://raw.githubusercontent.com/3dwardch3ng/home-cluster-ops/main/apps/gitea/base"
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
|
version: 15.x.x
|
||||||
|
- name: common
|
||||||
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
|
tags:
|
||||||
|
- bitnami-common
|
||||||
|
version: 2.x.x
|
||||||
|
description: Gitea is a lightweight code hosting solution. Written in Go, features low resource consumption, easy upgrades and multiple databases.
|
||||||
|
home: https://bitnami.com
|
||||||
|
icon: https://bitnami.com/assets/stacks/gitea/img/gitea-stack-220x234.png
|
||||||
|
keywords:
|
||||||
|
- gitea
|
||||||
|
- analytics
|
||||||
|
- http
|
||||||
|
- web
|
||||||
|
- application
|
||||||
|
- php
|
||||||
|
maintainers:
|
||||||
|
- name: Broadcom, Inc. All Rights Reserved.
|
||||||
|
url: https://github.com/bitnami/charts
|
||||||
|
name: gitea
|
||||||
|
sources:
|
||||||
|
- https://github.com/bitnami/charts/tree/main/bitnami/gitea
|
||||||
|
version: 2.3.13
|
||||||
|
|||||||
@@ -1,32 +1,59 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
{{- /*
|
||||||
|
Copyright Broadcom, Inc. All Rights Reserved.
|
||||||
|
SPDX-License-Identifier: APACHE-2.0
|
||||||
|
*/}}
|
||||||
|
|
||||||
|
{{- if .Values.ingress.enabled }}
|
||||||
|
apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: gitea-ingress
|
name: {{ template "common.names.fullname" . }}
|
||||||
namespace: gitea
|
namespace: {{ include "common.names.namespace" . | quote }}
|
||||||
annotations:
|
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
{{- if or .Values.ingress.annotations .Values.commonAnnotations }}
|
||||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.ingress.annotations .Values.commonAnnotations ) "context" . ) }}
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
{{- if and .Values.ingress.ingressClassName (eq "true" (include "common.ingress.supportsIngressClassname" .)) }}
|
||||||
|
ingressClassName: {{ .Values.ingress.ingressClassName | quote }}
|
||||||
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
- host: "gitea.cluster.local"
|
{{- if .Values.ingress.hostname }}
|
||||||
|
- host: {{ .Values.ingress.hostname }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- pathType: Prefix
|
{{- if .Values.ingress.extraPaths }}
|
||||||
path: "/"
|
{{- toYaml .Values.ingress.extraPaths | nindent 10 }}
|
||||||
backend:
|
{{- end }}
|
||||||
service:
|
- path: {{ .Values.ingress.path }}
|
||||||
name: gitea-gitea
|
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
|
||||||
port:
|
pathType: {{ .Values.ingress.pathType }}
|
||||||
number: 10080
|
{{- end }}
|
||||||
- host: "gitea.cluster.edward.sydney"
|
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" .) "servicePort" "http" "context" $) | nindent 14 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range .Values.ingress.extraHosts }}
|
||||||
|
- host: {{ .name | quote }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- pathType: Prefix
|
- path: {{ default "/" .path }}
|
||||||
path: "/"
|
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
|
||||||
backend:
|
pathType: {{ default "ImplementationSpecific" .pathType }}
|
||||||
service:
|
{{- end }}
|
||||||
name: gitea-gitea
|
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 14 }}
|
||||||
port:
|
{{- end }}
|
||||||
number: 10080
|
{{- if .Values.ingress.extraRules }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraRules "context" $) | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if or (and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned)) .Values.ingress.extraTls }}
|
||||||
|
tls:
|
||||||
|
{{- if and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned) }}
|
||||||
|
- hosts:
|
||||||
|
- {{ .Values.ingress.hostname | quote }}
|
||||||
|
secretName: {{ printf "%s-tls" .Values.ingress.hostname }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.ingress.extraTls }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraTls "context" $) | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
761
apps/gitea/env/k3s-cluster/values.yaml
vendored
761
apps/gitea/env/k3s-cluster/values.yaml
vendored
@@ -1,7 +1,400 @@
|
|||||||
|
# Copyright Broadcom, Inc. All Rights Reserved.
|
||||||
|
# SPDX-License-Identifier: APACHE-2.0
|
||||||
|
|
||||||
|
## @section Global parameters
|
||||||
|
## Global Docker image parameters
|
||||||
|
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
|
||||||
|
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
|
||||||
|
##
|
||||||
|
|
||||||
|
## @param global.imageRegistry Global Docker image registry
|
||||||
|
## @param global.imagePullSecrets Global Docker registry secret names as an array
|
||||||
|
## @param global.storageClass Global StorageClass for Persistent Volume(s)
|
||||||
|
##
|
||||||
|
global:
|
||||||
|
imageRegistry: ""
|
||||||
|
## E.g.
|
||||||
|
## imagePullSecrets:
|
||||||
|
## - myRegistryKeySecretName
|
||||||
|
##
|
||||||
|
imagePullSecrets: []
|
||||||
|
storageClass: ""
|
||||||
|
## Compatibility adaptations for Kubernetes platforms
|
||||||
|
##
|
||||||
|
compatibility:
|
||||||
|
## Compatibility adaptations for Openshift
|
||||||
|
##
|
||||||
|
openshift:
|
||||||
|
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
|
||||||
|
##
|
||||||
|
adaptSecurityContext: auto
|
||||||
|
## @section Common parameters
|
||||||
|
##
|
||||||
|
|
||||||
|
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
|
||||||
|
##
|
||||||
|
kubeVersion: ""
|
||||||
|
## @param nameOverride String to partially override gitea.fullname template (will maintain the release name)
|
||||||
|
##
|
||||||
|
nameOverride: ""
|
||||||
|
## @param fullnameOverride String to fully override gitea.fullname template
|
||||||
|
##
|
||||||
|
fullnameOverride: ""
|
||||||
|
## @param namespaceOverride String to fully override common.names.namespace
|
||||||
|
##
|
||||||
|
namespaceOverride: ""
|
||||||
|
## @param commonAnnotations Common annotations to add to all Gitea resources (sub-charts are not considered). Evaluated as a template
|
||||||
|
##
|
||||||
|
commonAnnotations: {}
|
||||||
|
## @param commonLabels Common labels to add to all Gitea resources (sub-charts are not considered). Evaluated as a template
|
||||||
|
##
|
||||||
|
commonLabels: {}
|
||||||
|
## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template).
|
||||||
|
##
|
||||||
|
extraDeploy: []
|
||||||
|
## @section Gitea parameters
|
||||||
|
##
|
||||||
|
|
||||||
|
## Bitnami Gitea image version
|
||||||
|
## ref: https://hub.docker.com/r/bitnami/gitea/tags/
|
||||||
|
## @param image.registry [default: REGISTRY_NAME] Gitea image registry
|
||||||
|
## @param image.repository [default: REPOSITORY_NAME/gitea] Gitea Image name
|
||||||
|
## @skip image.tag Gitea Image tag
|
||||||
|
## @param image.digest Gitea image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
|
||||||
|
## @param image.pullPolicy Gitea image pull policy
|
||||||
|
## @param image.pullSecrets Specify docker-registry secret names as an array
|
||||||
|
## @param image.debug Specify if debug logs should be enabled
|
||||||
|
##
|
||||||
image:
|
image:
|
||||||
|
registry: docker.io
|
||||||
|
repository: bitnami/gitea
|
||||||
|
tag: 1.22.1-debian-12-r4
|
||||||
|
digest: ""
|
||||||
|
## Specify a imagePullPolicy
|
||||||
|
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-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: true
|
debug: true
|
||||||
|
## @param adminUsername User of the application
|
||||||
|
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
||||||
|
##
|
||||||
|
adminUsername: bn_user
|
||||||
|
## @param adminPassword Application password
|
||||||
|
## Defaults to a random 10-character alphanumeric string if not set
|
||||||
|
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
||||||
|
##
|
||||||
|
adminPassword: ""
|
||||||
|
## @param adminEmail Admin email
|
||||||
|
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
||||||
|
##
|
||||||
|
adminEmail: user@example.com
|
||||||
|
## @param appName Gitea application name
|
||||||
|
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
||||||
|
##
|
||||||
|
appName: gitea
|
||||||
|
## @param runMode Gitea application host
|
||||||
|
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
|
||||||
|
##
|
||||||
|
runMode: prod
|
||||||
|
## @param exposeSSH Make the SSH server accesible
|
||||||
|
##
|
||||||
|
exposeSSH: true
|
||||||
|
## @param rootURL UI Root URL (for link generation)
|
||||||
|
##
|
||||||
|
rootURL: ""
|
||||||
|
## @param command Override default container command (useful when using custom images)
|
||||||
|
##
|
||||||
|
command: []
|
||||||
|
## @param args Override default container args (useful when using custom images)
|
||||||
|
##
|
||||||
|
args: []
|
||||||
|
## @param updateStrategy.type Update strategy - only really applicable for deployments with RWO PVs attached
|
||||||
|
## If replicas = 1, an update can get "stuck", as the previous pod remains attached to the
|
||||||
|
## PV, and the "incoming" pod can never start. Changing the strategy to "Recreate" will
|
||||||
|
## terminate the single previous pod, so that the new, incoming pod can attach to the PV
|
||||||
|
##
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
|
## @param priorityClassName Gitea pods' priorityClassName
|
||||||
|
##
|
||||||
|
priorityClassName: ""
|
||||||
|
## @param schedulerName Name of the k8s scheduler (other than default)
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
|
||||||
|
##
|
||||||
|
schedulerName: ""
|
||||||
|
## @param topologySpreadConstraints Topology Spread Constraints for pod assignment
|
||||||
|
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
|
||||||
|
## The value is evaluated as a template
|
||||||
|
##
|
||||||
|
topologySpreadConstraints: []
|
||||||
|
## @param automountServiceAccountToken Mount Service Account token in pod
|
||||||
|
##
|
||||||
|
automountServiceAccountToken: false
|
||||||
|
## @param hostAliases [array] Add deployment host aliases
|
||||||
|
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
|
||||||
|
##
|
||||||
|
hostAliases: []
|
||||||
|
## @param extraEnvVars Extra environment variables
|
||||||
|
## For example:
|
||||||
|
##
|
||||||
|
extraEnvVars: []
|
||||||
|
# - name: BEARER_AUTH
|
||||||
|
# value: true
|
||||||
|
## @param extraEnvVarsCM ConfigMap containing extra env vars
|
||||||
|
##
|
||||||
|
extraEnvVarsCM: ""
|
||||||
|
## @param extraEnvVarsSecret Secret containing extra env vars (in case of sensitive data)
|
||||||
|
##
|
||||||
|
extraEnvVarsSecret: ""
|
||||||
|
## @param extraVolumes Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts`
|
||||||
|
##
|
||||||
|
extraVolumes: []
|
||||||
|
## @param extraVolumeMounts Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`.
|
||||||
|
##
|
||||||
|
extraVolumeMounts: []
|
||||||
|
## @param initContainers Add additional init containers to the pod (evaluated as a template)
|
||||||
|
##
|
||||||
|
initContainers: []
|
||||||
|
## Pod Disruption Budget configuration
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
|
||||||
|
## @param pdb.create Enable/disable a Pod Disruption Budget creation
|
||||||
|
## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
|
||||||
|
## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
|
||||||
|
##
|
||||||
|
pdb:
|
||||||
|
create: true
|
||||||
|
minAvailable: ""
|
||||||
|
maxUnavailable: ""
|
||||||
|
## @param sidecars Attach additional containers to the pod (evaluated as a template)
|
||||||
|
##
|
||||||
|
sidecars: []
|
||||||
|
## @param tolerations Tolerations for pod assignment
|
||||||
|
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
|
||||||
|
##
|
||||||
|
tolerations: []
|
||||||
|
## @param existingSecret Name of a secret with the application password
|
||||||
|
##
|
||||||
|
existingSecret: ""
|
||||||
|
## @param existingSecretKey Key inside the existing secret containing the password
|
||||||
|
##
|
||||||
|
existingSecretKey: "admin-password"
|
||||||
|
## SMTP mail delivery configuration
|
||||||
|
## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea/#smtp-configuration
|
||||||
|
## @param smtpHost SMTP host
|
||||||
|
## @param smtpPort SMTP port
|
||||||
|
## @param smtpUser SMTP user
|
||||||
|
## @param smtpPassword SMTP password
|
||||||
|
##
|
||||||
|
smtpHost: ""
|
||||||
|
smtpPort: ""
|
||||||
|
smtpUser: ""
|
||||||
|
smtpPassword: ""
|
||||||
|
## @param smtpExistingSecret The name of an existing secret with SMTP credentials
|
||||||
|
## NOTE: Must contain key `smtp-password`
|
||||||
|
## NOTE: When it's set, the `smtpPassword` parameter is ignored
|
||||||
|
##
|
||||||
|
smtpExistingSecret: ""
|
||||||
|
## @param containerPorts [object] Container ports
|
||||||
|
##
|
||||||
|
containerPorts:
|
||||||
|
http: 3000
|
||||||
|
ssh: 2222
|
||||||
|
## @param extraContainerPorts Optionally specify extra list of additional ports for Gitea container(s)
|
||||||
|
## e.g:
|
||||||
|
## extraContainerPorts:
|
||||||
|
## - name: myservice
|
||||||
|
## containerPort: 9090
|
||||||
|
##
|
||||||
|
extraContainerPorts: []
|
||||||
|
## Enable OpenID Configurations
|
||||||
|
## @param openid.enableSignIn Enable sign in with OpenID
|
||||||
|
## @param openid.enableSignUp Enable sign up with OpenID
|
||||||
|
openid:
|
||||||
|
enableSignIn: false
|
||||||
|
enableSignUp: false
|
||||||
|
## Enable persistence using Persistent Volume Claims
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
|
||||||
|
##
|
||||||
|
persistence:
|
||||||
|
## @param persistence.enabled Enable persistence using PVC
|
||||||
|
##
|
||||||
|
enabled: true
|
||||||
|
## @param persistence.storageClass PVC Storage Class for Gitea volume
|
||||||
|
## If defined, storageClassName: <storageClass>
|
||||||
|
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
||||||
|
## If undefined (the default) or set to null, no storageClassName spec is
|
||||||
|
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
||||||
|
## GKE, AWS & OpenStack)
|
||||||
|
##
|
||||||
|
storageClass: ""
|
||||||
|
## @param persistence.accessModes PVC Access Mode for Gitea volume
|
||||||
|
## Requires persistence.enabled: true
|
||||||
|
## If defined, PVC must be created manually before volume will be bound
|
||||||
|
##
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
## @param persistence.size PVC Storage Request for Gitea volume
|
||||||
|
##
|
||||||
|
size: 8Gi
|
||||||
|
## @param persistence.dataSource Custom PVC data source
|
||||||
|
##
|
||||||
|
dataSource: {}
|
||||||
|
## @param persistence.existingClaim A manually managed Persistent Volume Claim
|
||||||
|
## Requires persistence.enabled: true
|
||||||
|
## If defined, PVC must be created manually before volume will be bound
|
||||||
|
##
|
||||||
|
existingClaim: "gitea-pvc"
|
||||||
|
## @param persistence.hostPath If defined, the gitea-data volume will mount to the specified hostPath.
|
||||||
|
## Requires persistence.enabled: true
|
||||||
|
## Requires persistence.existingClaim: nil|false
|
||||||
|
## Default: nil.
|
||||||
|
##
|
||||||
|
hostPath: ""
|
||||||
|
## @param persistence.annotations Persistent Volume Claim annotations
|
||||||
|
##
|
||||||
|
annotations: {}
|
||||||
|
## @param persistence.selector Selector to match an existing Persistent Volume for Gitea data PVC
|
||||||
|
## If set, the PVC can't have a PV dynamically provisioned for it
|
||||||
|
## E.g.
|
||||||
|
## selector:
|
||||||
|
## matchLabels:
|
||||||
|
## app: my-app
|
||||||
|
##
|
||||||
|
selector: {}
|
||||||
|
## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
|
||||||
|
##
|
||||||
|
podAffinityPreset: ""
|
||||||
|
## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
|
||||||
|
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
|
||||||
|
##
|
||||||
|
podAntiAffinityPreset: soft
|
||||||
|
## Node affinity preset
|
||||||
|
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
|
||||||
|
## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
|
||||||
|
## @param nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
|
||||||
|
## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
|
||||||
|
##
|
||||||
|
nodeAffinityPreset:
|
||||||
|
type: ""
|
||||||
|
## E.g.
|
||||||
|
## key: "kubernetes.io/e2e-az-name"
|
||||||
|
##
|
||||||
|
key: ""
|
||||||
|
## E.g.
|
||||||
|
## values:
|
||||||
|
## - e2e-az1
|
||||||
|
## - e2e-az2
|
||||||
|
##
|
||||||
|
values: []
|
||||||
|
## @param affinity Affinity for pod assignment
|
||||||
|
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
||||||
|
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
|
||||||
|
##
|
||||||
|
affinity: {}
|
||||||
|
## @param nodeSelector Node labels for pod assignment. Evaluated as a template.
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
|
||||||
|
##
|
||||||
|
nodeSelector: {}
|
||||||
|
## Gitea container's resource requests and limits
|
||||||
|
## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
||||||
|
## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
|
||||||
|
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
|
||||||
|
##
|
||||||
|
resourcesPreset: "micro"
|
||||||
|
## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
|
||||||
|
## Example:
|
||||||
|
## resources:
|
||||||
|
## requests:
|
||||||
|
## cpu: 2
|
||||||
|
## memory: 512Mi
|
||||||
|
## limits:
|
||||||
|
## cpu: 3
|
||||||
|
## memory: 1024Mi
|
||||||
|
##
|
||||||
|
resources: {}
|
||||||
|
## Configure Pods Security Context
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
|
||||||
|
## @param podSecurityContext.enabled Enable Gitea pods' Security Context
|
||||||
|
## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
|
||||||
|
## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
|
||||||
|
## @param podSecurityContext.supplementalGroups Set filesystem extra groups
|
||||||
|
## @param podSecurityContext.fsGroup Gitea pods' group ID
|
||||||
|
##
|
||||||
|
podSecurityContext:
|
||||||
|
enabled: true
|
||||||
|
fsGroupChangePolicy: Always
|
||||||
|
sysctls: []
|
||||||
|
supplementalGroups: []
|
||||||
|
fsGroup: 1001
|
||||||
|
## Configure Container Security Context (only main container)
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
|
||||||
|
## @param containerSecurityContext.enabled Enabled containers' Security Context
|
||||||
|
## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
|
||||||
|
## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
|
||||||
|
## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
|
||||||
|
## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
|
||||||
|
## @param containerSecurityContext.privileged Set container's Security Context privileged
|
||||||
|
## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
|
||||||
|
## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
|
||||||
|
## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
|
||||||
|
## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
|
||||||
|
##
|
||||||
|
containerSecurityContext:
|
||||||
|
enabled: true
|
||||||
|
seLinuxOptions: {}
|
||||||
|
runAsUser: 1001
|
||||||
|
runAsGroup: 1001
|
||||||
|
runAsNonRoot: true
|
||||||
|
privileged: false
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop: ["ALL"]
|
||||||
|
seccompProfile:
|
||||||
|
type: "RuntimeDefault"
|
||||||
|
## Configure extra options for startup probe
|
||||||
|
## Gitea core exposes / to unauthenticated requests, making it a good
|
||||||
|
## default startup and readiness path. However, that may not always be the
|
||||||
|
## case. For example, if the image value is overridden to an image containing a
|
||||||
|
## module that alters that route, or an image that does not auto-install Gitea.
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
|
||||||
|
## @param startupProbe.enabled Enable startupProbe
|
||||||
|
## @param startupProbe.path Request path for startupProbe
|
||||||
|
## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
|
||||||
|
## @param startupProbe.periodSeconds Period seconds for startupProbe
|
||||||
|
## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
|
||||||
|
## @param startupProbe.failureThreshold Failure threshold for startupProbe
|
||||||
|
## @param startupProbe.successThreshold Success threshold for startupProbe
|
||||||
|
##
|
||||||
|
startupProbe:
|
||||||
|
enabled: false
|
||||||
|
path: /
|
||||||
|
initialDelaySeconds: 600
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 5
|
||||||
|
successThreshold: 1
|
||||||
|
## Configure extra options for liveness probe
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
|
||||||
|
## @param livenessProbe.enabled Enable livenessProbe
|
||||||
|
## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
|
||||||
|
## @param livenessProbe.periodSeconds Period seconds for livenessProbe
|
||||||
|
## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
|
||||||
|
## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
|
||||||
|
## @param livenessProbe.successThreshold Success threshold for livenessProbe
|
||||||
|
##
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
initialDelaySeconds: 600
|
initialDelaySeconds: 600
|
||||||
@@ -9,6 +402,20 @@ livenessProbe:
|
|||||||
timeoutSeconds: 30
|
timeoutSeconds: 30
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
|
## Configure extra options for readiness probe
|
||||||
|
## Gitea core exposes / to unauthenticated requests, making it a good
|
||||||
|
## default startup and readiness path. However, that may not always be the
|
||||||
|
## case. For example, if the image value is overridden to an image containing a
|
||||||
|
## module that alters that route, or an image that does not auto-install Gitea.
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
|
||||||
|
## @param readinessProbe.enabled Enable readinessProbe
|
||||||
|
## @param readinessProbe.path Request path for readinessProbe
|
||||||
|
## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
|
||||||
|
## @param readinessProbe.periodSeconds Period seconds for readinessProbe
|
||||||
|
## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
|
||||||
|
## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
|
||||||
|
## @param readinessProbe.successThreshold Success threshold for readinessProbe
|
||||||
|
##
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
path: /
|
path: /
|
||||||
@@ -17,21 +424,353 @@ readinessProbe:
|
|||||||
timeoutSeconds: 30
|
timeoutSeconds: 30
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
adminUsername: ${admin_username}
|
## @param customStartupProbe Override default startup probe
|
||||||
adminPassword: ${admin_password}
|
##
|
||||||
adminEmail: ${admin_email}
|
customStartupProbe: {}
|
||||||
appName: gitea
|
## @param customLivenessProbe Override default liveness probe
|
||||||
persistence:
|
##
|
||||||
existingClaim: gitea-pvc
|
customLivenessProbe: {}
|
||||||
|
## @param customReadinessProbe Override default readiness probe
|
||||||
|
##
|
||||||
|
customReadinessProbe: {}
|
||||||
|
## @param lifecycleHooks LifecycleHook to set additional configuration at startup Evaluated as a template
|
||||||
|
##
|
||||||
|
lifecycleHooks: {}
|
||||||
|
## @param podAnnotations Pod annotations
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
|
||||||
|
##
|
||||||
|
podAnnotations: {}
|
||||||
|
## @param podLabels Add additional labels to the pod (evaluated as a template)
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
||||||
|
##
|
||||||
|
podLabels: {}
|
||||||
|
## @section Traffic Exposure Parameters
|
||||||
|
##
|
||||||
|
|
||||||
|
## Kubernetes configuration. For minikube, set this to NodePort, elsewhere use LoadBalancer
|
||||||
|
##
|
||||||
service:
|
service:
|
||||||
|
## @param service.type Kubernetes Service type
|
||||||
|
##
|
||||||
|
type: LoadBalancer
|
||||||
|
## @param service.ports.http Service HTTP port
|
||||||
|
## @param service.ports.ssh Service SSH port
|
||||||
|
##
|
||||||
ports:
|
ports:
|
||||||
http: 10080
|
http: 10080
|
||||||
ssh: 10022
|
ssh: 10022
|
||||||
|
## @param service.loadBalancerSourceRanges Restricts access for LoadBalancer (only with `service.type: LoadBalancer`)
|
||||||
|
## e.g:
|
||||||
|
## loadBalancerSourceRanges:
|
||||||
|
## - 0.0.0.0/0
|
||||||
|
##
|
||||||
|
loadBalancerSourceRanges: []
|
||||||
|
## @param service.loadBalancerIP loadBalancerIP for the Gitea Service (optional, cloud specific)
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
|
||||||
|
##
|
||||||
|
loadBalancerIP: ""
|
||||||
|
## @param service.nodePorts [object] Kubernetes node port
|
||||||
|
## nodePorts:
|
||||||
|
## http: <to set explicitly, choose port between 30000-32767>
|
||||||
|
## https: <to set explicitly, choose port between 30000-32767>
|
||||||
|
##
|
||||||
|
nodePorts:
|
||||||
|
http: ""
|
||||||
|
ssh: ""
|
||||||
|
## @param service.externalTrafficPolicy Enable client source IP preservation
|
||||||
|
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
|
||||||
|
##
|
||||||
|
externalTrafficPolicy: Cluster
|
||||||
|
## @param service.clusterIP Gitea service Cluster IP
|
||||||
|
## e.g.:
|
||||||
|
## clusterIP: None
|
||||||
|
##
|
||||||
|
clusterIP: ""
|
||||||
|
## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
|
||||||
|
##
|
||||||
|
extraPorts: []
|
||||||
|
## @param service.annotations Additional custom annotations for Gitea service
|
||||||
|
##
|
||||||
|
annotations: {}
|
||||||
|
## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
|
||||||
|
## If "ClientIP", consecutive client requests will be directed to the same Pod
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
|
||||||
|
##
|
||||||
|
sessionAffinity: None
|
||||||
|
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
|
||||||
|
## sessionAffinityConfig:
|
||||||
|
## clientIP:
|
||||||
|
## timeoutSeconds: 300
|
||||||
|
##
|
||||||
|
sessionAffinityConfig: {}
|
||||||
|
|
||||||
|
## Network Policy configuration
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
|
||||||
|
##
|
||||||
|
networkPolicy:
|
||||||
|
## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
|
||||||
|
##
|
||||||
|
enabled: true
|
||||||
|
## @param networkPolicy.allowExternal Don't require server label for connections
|
||||||
|
## The Policy model to apply. When set to false, only pods with the correct
|
||||||
|
## server label will have network access to the ports server is listening
|
||||||
|
## on. When true, server will accept connections from any source
|
||||||
|
## (with the correct destination port).
|
||||||
|
##
|
||||||
|
allowExternal: true
|
||||||
|
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
|
||||||
|
##
|
||||||
|
allowExternalEgress: true
|
||||||
|
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
|
||||||
|
## e.g:
|
||||||
|
## extraIngress:
|
||||||
|
## - ports:
|
||||||
|
## - port: 1234
|
||||||
|
## from:
|
||||||
|
## - podSelector:
|
||||||
|
## - matchLabels:
|
||||||
|
## - role: frontend
|
||||||
|
## - podSelector:
|
||||||
|
## - matchExpressions:
|
||||||
|
## - key: role
|
||||||
|
## operator: In
|
||||||
|
## values:
|
||||||
|
## - frontend
|
||||||
|
extraIngress: []
|
||||||
|
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
|
||||||
|
## e.g:
|
||||||
|
## extraEgress:
|
||||||
|
## - ports:
|
||||||
|
## - port: 1234
|
||||||
|
## to:
|
||||||
|
## - podSelector:
|
||||||
|
## - matchLabels:
|
||||||
|
## - role: frontend
|
||||||
|
## - podSelector:
|
||||||
|
## - matchExpressions:
|
||||||
|
## - key: role
|
||||||
|
## operator: In
|
||||||
|
## values:
|
||||||
|
## - frontend
|
||||||
|
##
|
||||||
|
extraEgress: []
|
||||||
|
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
|
||||||
|
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
|
||||||
|
##
|
||||||
|
ingressNSMatchLabels: {}
|
||||||
|
ingressNSPodMatchLabels: {}
|
||||||
|
|
||||||
|
## Configure the ingress resource that allows you to access the
|
||||||
|
## Gitea installation. Set up the URL
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
|
||||||
|
##
|
||||||
|
ingress:
|
||||||
|
## @param ingress.enabled Enable ingress controller resource
|
||||||
|
##
|
||||||
|
enabled: true
|
||||||
|
## @param ingress.pathType Ingress Path type
|
||||||
|
##
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
## @param ingress.apiVersion Override API Version (automatically detected if not set)
|
||||||
|
##
|
||||||
|
apiVersion: ""
|
||||||
|
## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
|
||||||
|
## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
|
||||||
|
## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
|
||||||
|
##
|
||||||
|
ingressClassName: "nginx"
|
||||||
|
## @param ingress.hostname Default host for the ingress resource
|
||||||
|
##
|
||||||
|
hostname: "gitea.cluster.edward.sydney"
|
||||||
|
## @param ingress.path The Path to Gitea. You may need to set this to '/*' in order to use this
|
||||||
|
## with ALB ingress controllers.
|
||||||
|
##
|
||||||
|
path: /
|
||||||
|
## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
|
||||||
|
## For a full list of possible ingress annotations, please see
|
||||||
|
## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
|
||||||
|
## Use this parameter to set the required annotations for cert-manager, see
|
||||||
|
## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
|
||||||
|
##
|
||||||
|
## e.g:
|
||||||
|
## annotations:
|
||||||
|
## kubernetes.io/ingress.class: nginx
|
||||||
|
## cert-manager.io/cluster-issuer: cluster-issuer-name
|
||||||
|
##
|
||||||
|
annotations: {}
|
||||||
|
## @param ingress.tls Enable TLS configuration for the hostname defined at ingress.hostname parameter
|
||||||
|
## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}
|
||||||
|
## You can use the ingress.secrets parameter to create this TLS secret or relay on cert-manager to create it
|
||||||
|
##
|
||||||
|
tls: false
|
||||||
|
## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
|
||||||
|
##
|
||||||
|
selfSigned: false
|
||||||
|
## @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: gitea.local
|
||||||
|
## path: /
|
||||||
|
##
|
||||||
|
extraHosts: []
|
||||||
|
## @param ingress.extraPaths Any additional arbitrary paths that may need to be added to the ingress under the main host.
|
||||||
|
## For example: The ALB ingress controller requires a special rule for handling SSL redirection.
|
||||||
|
## extraPaths:
|
||||||
|
## - path: /*
|
||||||
|
## backend:
|
||||||
|
## serviceName: ssl-redirect
|
||||||
|
## servicePort: use-annotation
|
||||||
|
##
|
||||||
|
extraPaths: []
|
||||||
|
## @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:
|
||||||
|
## - gitea.local
|
||||||
|
## secretName: gitea.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
|
||||||
|
## -----BEGIN RSA PRIVATE KEY-----
|
||||||
|
##
|
||||||
|
## name should line up with a tlsSecret set further up
|
||||||
|
## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set
|
||||||
|
##
|
||||||
|
## It is also possible to create and manage the certificates outside of this helm chart
|
||||||
|
## Please see README.md for more information
|
||||||
|
## Example:
|
||||||
|
## - name: gitea.local-tls
|
||||||
|
## key:
|
||||||
|
## certificate:
|
||||||
|
##
|
||||||
|
secrets: []
|
||||||
|
## @param ingress.extraRules Additional rules to be covered with this ingress record
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
|
||||||
|
## e.g:
|
||||||
|
## extraRules:
|
||||||
|
## - host: example.local
|
||||||
|
## http:
|
||||||
|
## path: /
|
||||||
|
## backend:
|
||||||
|
## service:
|
||||||
|
## name: example-svc
|
||||||
|
## port:
|
||||||
|
## name: http
|
||||||
|
##
|
||||||
|
extraRules: []
|
||||||
|
## @section Other Parameters
|
||||||
|
##
|
||||||
|
|
||||||
|
## Service account for Gitea to use.
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||||
|
##
|
||||||
|
serviceAccount:
|
||||||
|
## @param serviceAccount.create Enable creation of ServiceAccount for Gitea pod
|
||||||
|
##
|
||||||
|
create: true
|
||||||
|
## @param serviceAccount.name The name of the ServiceAccount to use.
|
||||||
|
## If not set and create is true, a name is generated using the common.names.fullname template
|
||||||
|
##
|
||||||
|
name: ""
|
||||||
|
## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
|
||||||
|
## Can be set to false if pods using this serviceAccount do not need to use K8s API
|
||||||
|
##
|
||||||
|
automountServiceAccountToken: false
|
||||||
|
## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
|
||||||
|
##
|
||||||
|
annotations: {}
|
||||||
|
## @section Database parameters
|
||||||
|
##
|
||||||
|
|
||||||
|
## PostgreSQL chart configuration
|
||||||
|
## ref: https://github.com/bitnami/charts/blob/main/bitnami/postgresql/values.yaml
|
||||||
|
## @param postgresql.enabled Switch to enable or disable the PostgreSQL helm chart
|
||||||
|
## @param postgresql.auth.username Name for a custom user to create
|
||||||
|
## @param postgresql.auth.password Password for the custom user to create
|
||||||
|
## @param postgresql.auth.database Name for a custom database to create
|
||||||
|
## @param postgresql.auth.existingSecret Name of existing secret to use for PostgreSQL credentials
|
||||||
|
## @param postgresql.architecture PostgreSQL architecture (`standalone` or `replication`)
|
||||||
|
## @param postgresql.service.ports.postgresql PostgreSQL service port
|
||||||
|
##
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
auth:
|
||||||
|
username: bn_gitea
|
||||||
|
password: ""
|
||||||
|
database: bitnami_gitea
|
||||||
|
existingSecret: ""
|
||||||
|
architecture: standalone
|
||||||
|
service:
|
||||||
|
ports:
|
||||||
|
postgresql: 5432
|
||||||
|
## External PostgreSQL configuration
|
||||||
|
## All of these values are only used when postgresql.enabled is set to false
|
||||||
|
## @param externalDatabase.host Database host
|
||||||
|
## @param externalDatabase.port Database port number
|
||||||
|
## @param externalDatabase.user Non-root username for JupyterHub
|
||||||
|
## @param externalDatabase.password Password for the non-root username for JupyterHub
|
||||||
|
## @param externalDatabase.database JupyterHub database name
|
||||||
|
## @param externalDatabase.existingSecret Name of an existing secret resource containing the database credentials
|
||||||
|
## @param externalDatabase.existingSecretPasswordKey Name of an existing secret key containing the database credentials
|
||||||
|
##
|
||||||
externalDatabase:
|
externalDatabase:
|
||||||
host: ${db_host}
|
host: ""
|
||||||
port: ${db_port}
|
port: 5432
|
||||||
user: ${db_user}
|
user: postgres
|
||||||
database: ${db_name}
|
database: gitea
|
||||||
password: ${db_password}
|
password: ""
|
||||||
|
existingSecret: ""
|
||||||
|
existingSecretPasswordKey: "db-password"
|
||||||
|
## @section Volume Permissions parameters
|
||||||
|
##
|
||||||
|
|
||||||
|
## Init containers parameters:
|
||||||
|
## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
|
||||||
|
##
|
||||||
|
volumePermissions:
|
||||||
|
## @param volumePermissions.enabled Enable init container that changes volume permissions in the data directory (for cases where the default k8s `runAsUser` and `fsUser` values do not work)
|
||||||
|
##
|
||||||
|
enabled: false
|
||||||
|
## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
|
||||||
|
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image name
|
||||||
|
## @skip volumePermissions.image.tag Init container volume-permissions image tag
|
||||||
|
## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
|
||||||
|
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
|
||||||
|
## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
|
||||||
|
##
|
||||||
|
image:
|
||||||
|
registry: docker.io
|
||||||
|
repository: bitnami/os-shell
|
||||||
|
tag: 12-debian-12-r25
|
||||||
|
digest: ""
|
||||||
|
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: []
|
||||||
|
## Init containers' resource requests and limits
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
||||||
|
## 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 volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
|
||||||
|
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
|
||||||
|
##
|
||||||
|
resourcesPreset: "nano"
|
||||||
|
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
|
||||||
|
## Example:
|
||||||
|
## resources:
|
||||||
|
## requests:
|
||||||
|
## cpu: 2
|
||||||
|
## memory: 512Mi
|
||||||
|
## limits:
|
||||||
|
## cpu: 3
|
||||||
|
## memory: 1024Mi
|
||||||
|
##
|
||||||
|
resources: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user