krci-portal

by sergk

Helm chartv0.11.0-SNAPSHOT.51App 0.11.0-SNAPSHOT.51Apache-2.0Verified publisher

A Helm chart for KubeRocketCI Portal

About this chart

krci-portal

A Helm chart for KubeRocketCI Portal

Homepage: https://docs.kuberocketci.io/

Maintainers

NameEmailUrl
epmd-edp[email protected]https://solutionshub.epam.com/solution/kuberocketci
sergkhttps://github.com/SergK

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for pod assignment https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
autoscalingobject{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}Horizontal Pod Autoscaler configuration
autoscaling.enabledboolfalseEnable autoscaling
autoscaling.maxReplicasint100Maximum number of replicas
autoscaling.minReplicasint1Minimum number of replicas
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage
configEnv.API_PREFIXstring"/api"
configEnv.DEFAULT_CLUSTER_NAMEstring"core"
configEnv.DEFAULT_CLUSTER_NAMESPACEstring"krci"
configEnv.DEFECTDOJO_PRODUCT_TYPEstring"KubeRocketCI"
configEnv.DEFECTDOJO_URLstring""
configEnv.DEPENDENCY_TRACK_URLstring"https://deptrack.example.com"
configEnv.DEPLOY_CLIENT_DIST_DIRstring"/app/static"
configEnv.GITFUSION_URLstring"http://gitfusion.krci:8080"
configEnv.KRCI_AUDIT_URLstring"http://krci-audit-api.krci-audit:8080"
configEnv.OIDC_CLIENT_IDstring"portal"
configEnv.OIDC_CODE_CHALLENGE_METHODstring"S256"
configEnv.OIDC_ISSUER_URLstring"https://keycloak.example.com/realms/shared"
configEnv.OIDC_SCOPEstring"openid profile email"
configEnv.PORTAL_URLstring"https://portal.example.com"
configEnv.PROMETHEUS_URLstring"http://prometheus.monitoring.svc:9090"
configEnv.SERVER_PORTint3000
configEnv.SONAR_HOST_URLstring"https://sonar.example.com/"
configEnv.TEKTON_RESULTS_URLstring"https://tekton-results-api-service.tekton-pipelines.svc:8080"
eso.apiVersionstring"external-secrets.io/v1"Defines API version for the ExternalSecret resource.
eso.awsobject{"region":"eu-central-1","roleArn":"arn:aws:iam::012345678910:role/AWSIRSA_Shared_ExternalSecretOperatorAccess"}AWS configuration (if provider is aws).
eso.aws.regionstring"eu-central-1"AWS region.
eso.aws.roleArnstring"arn:aws:iam::012345678910:role/AWSIRSA_Shared_ExternalSecretOperatorAccess"AWS role ARN for the ExternalSecretOperator to assume.
eso.enabledboolfalseInstall components of the ESO.
eso.generic.secretStore.providerConfigobject{}Defines SecretStore provider configuration.
eso.providerstring"aws"Defines provider type. One of aws, generic, or vault.
eso.secretPathstring"/infra/core/addons/krci-portal"Defines the path to the secret in the provider. If provider is vault, this is the path must be prefixed with secret/.
eso.vaultobject{"mountPath":"core","role":"krci-portal","server":"http://vault.vault:8200"}Vault configuration (if provider is vault).
eso.vault.mountPathstring"core"Mount path for the Kubernetes authentication method.
eso.vault.rolestring"krci-portal"Vault role for the Kubernetes authentication method.
eso.vault.serverstring"http://vault.vault:8200"Vault server URL.
fullnameOverridestring"krci-portal"Override the full name of the chart
global.dnsWildCardstring""a cluster DNS wildcard name
httprouteobject{"annotations":{},"dnsWildcard":"","enabled":false,"hostnames":["edpDefault"],"matches":[{"path":{"type":"PathPrefix","value":"/"}}],"parentRefs":[{"name":"main-gateway","namespace":"envoy-gateway-system"}]}HTTPRoute (Gateway API / Envoy Gateway) configuration. Alternative to ingress for clusters migrating from nginx-ingress to Envoy Gateway. When enabled, an HTTPRoute is created and attached to the referenced Gateway alongside the (optional) nginx Ingress, which stays as the instant rollback path. Disabled by default (enable per environment via values). Enable only on clusters that serve the Gateway API — if the CRDs are absent the resource fails at apply time with a clear "no matches for kind HTTPRoute" error.
httproute.annotationsobject{}Annotations to add to the HTTPRoute
httproute.dnsWildcardstring""Cluster-wide DNS wildcard domain (e.g. apps.cluster.example.com). Used to build the default hostname as <fullname>-<namespace>.<dnsWildcard> when hostnames contains edpDefault. Falls back to ingress.dnsWildcard, then to global.dnsWildCard, when empty. If all three are empty, a hostnames entry edpDefault fails the render.
httproute.enabledboolfalseEnable HTTPRoute (Gateway API) resource. Enable only on clusters that serve the Gateway API (gateway.networking.k8s.io); the nginx Ingress above stays as the rollback path.
httproute.hostnameslist["edpDefault"]Hostnames for the route. 'edpDefault' renders <fullname>-<namespace>.<dnsWildcard> — the same host the Ingress template renders, so the route takes over exactly the Ingress host.
httproute.matcheslist[{"path":{"type":"PathPrefix","value":"/"}}]Path matches for the route rule
httproute.parentRefslist[{"name":"main-gateway","namespace":"envoy-gateway-system"}]Parent Gateways the route attaches to (name + namespace of the Envoy Gateway)
imageobject{"pullPolicy":"IfNotPresent","repository":"epamedp/krci-portal","tag":""}Image configuration
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"epamedp/krci-portal"Image repository
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]Image pull secrets for private registries
ingressobject{"annotations":{},"className":"","dnsWildcard":"","enabled":false,"hosts":[{"host":"edpDefault","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}Ingress configuration
ingress.annotationsobject{}Ingress annotations
ingress.classNamestring""Ingress class name
ingress.dnsWildcardstring""DNS wildcard domain. Used to build the default host as <fullname>-<namespace>.<dnsWildcard> when hosts contains edpDefault. Falls back to global.dnsWildCard when empty. If both are empty, a hosts entry edpDefault fails the render.
ingress.enabledboolfalseEnable ingress
ingress.hostslist[{"host":"edpDefault","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]Ingress hosts configuration
ingress.tlslist[]TLS configuration
livenessProbeobject{"tcpSocket":{"port":"http"}}Liveness probe configuration
nameOverridestring""Override the name of the chart
nodeSelectorobject{}Node selector for pod assignment https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
persistenceobject{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":false,"existingClaim":"","size":"1Gi","storageClass":""}Persistence for the SQLite session/events database. A ReadWriteOnce PVC mounted at the server's DB directory (/app/db) keeps sessions across pod restarts (RWO forces the Recreate strategy). Removed on helm uninstall — no retention policy.
persistence.accessModeslist["ReadWriteOnce"]Access modes for the PVC (RWO is required for the SQLite file lock)
persistence.annotationsobject{}Extra annotations for the PVC
persistence.enabledboolfalseEnable persistent storage for the SQLite database. Disabled by default.
persistence.existingClaimstring""Bind an existing PVC instead of creating one. When set, no PVC is created.
persistence.sizestring"1Gi"Size of the PVC
persistence.storageClassstring""StorageClass for the PVC. Empty uses the cluster default; "-" disables dynamic provisioning.
podAnnotationsobject{}Pod annotations
podLabelsobject{}Pod labels
podSecurityContextobject{"fsGroup":1000,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}}Pod security context. fsGroup chowns the persistence volume to this GID on mount so the non-root container can write the SQLite database.
readinessProbeobject{"initialDelaySeconds":10,"tcpSocket":{"port":"http"}}Readiness probe configuration
replicaCountint1Number of replicas for the deployment
resourcesobject{}Resource limits and requests
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]}}Container security context
serviceobject{"port":3000,"type":"ClusterIP"}Service configuration
service.typestring"ClusterIP"Service type
serviceAccountobject{"annotations":{},"automount":true,"create":true,"name":""}Service account configuration
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountbooltrueAutomatically mount a ServiceAccount's API credentials?
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tektonResultsobject{"caCert":"","rbac":{"enabled":false}}Read access of the portal's ServiceAccount to Tekton Results of the release namespace.
tektonResults.caCertstring""PEM of the CA that signs the Tekton Results API certificate: ca.crt of Secret tekton-results-tls in tekton-pipelines. When set, the chart creates a ConfigMap, mounts it, and sets NODE_EXTRA_CA_CERTS; a change restarts the portal. Public certificate only: the render fails on a private key.
tektonResults.rbac.enabledboolfalseBind the portal's ServiceAccount to the tekton-results-readonly ClusterRole in the release namespace. All portal users can read Results of that namespace. Turn on when the Results API verifies tokens (https:// TEKTON_RESULTS_URL, tektonResults.caCert set).
tolerationslist[]Tolerations for pod assignment https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
volumeMountslist[]Additional volumeMounts on the output Deployment definition.
volumeslist[]Additional volumes on the output Deployment definition.

Deploy krci-portal with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has krci-portal on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkrci-portal is pinned at v0.11.0-SNAPSHOT.51 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply