gerrit-operator

by sergk

Helm chartv2.26.0App 2.26.0Apache-2.0Verified publisher

A Helm chart for KubeRocketCI Gerrit Operator

About this chart

gerrit-operator

A Helm chart for KubeRocketCI Gerrit Operator

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{}
annotationsobject{}
gerrit.affinityobject{}
gerrit.annotationsobject{}
gerrit.basePathstring""Base path for Nexus URL
gerrit.caCerts.enabledboolfalseFlag for enabling additional CA certificates
gerrit.caCerts.imagestring"adoptopenjdk/openjdk11:alpine"Change init CA certificates container image
gerrit.caCerts.secretstring"secret-name"Name of the secret containing additional CA certificates
gerrit.deploybooltrueFlag to enable/disable Gerrit deploy
gerrit.extraEnvlist[]Additional environment variables
gerrit.imagestring"epamedp/edp-gerrit"Define gerrit docker image name
gerrit.imagePullPolicystring"IfNotPresent"If defined, a imagePullPolicy applied for gerrit deployment
gerrit.imagePullSecretsstringnilSecrets to pull from private Docker registry;
gerrit.ingress.annotationsobject{}
gerrit.ingress.pathTypestring"Prefix"pathType is only for k8s >= 1.1=
gerrit.ingress.tlslist[]See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress ingressClassName: nginx
gerrit.javaOptionsstring""Values to add to JAVA_OPTIONS
gerrit.namestring"gerrit"Gerrit name
gerrit.nodeSelectorobject{}
gerrit.portstring"8080"HTTP port
gerrit.resources.limits.memorystring"2Gi"
gerrit.resources.requests.cpustring"100m"
gerrit.resources.requests.memorystring"512Mi"
gerrit.sshHostKeys.enabledboolfalseFlag for enabling SSH host key injection from a pre-created Secret
gerrit.sshHostKeys.secretstring"gerrit-ssh-host-keys"Name of the secret containing the SSH host key pairs
gerrit.sso.enabledbooltrue
gerrit.sso.keycloakUrlstring"https://keycloak.example.com/auth"Keycloak URL.
gerrit.sso.kindstring"KeycloakRealm"
gerrit.sso.namestring"main"
gerrit.sso.quickLink.enabledbooltrue
gerrit.storage.sizestring"1Gi"Size for Gerrit data volume
gerrit.tolerationslist[]
gerrit.versionstring"3.14.2"Define gerrit docker image tag
global.adminslist["[email protected]"]Administrators of your tenant
global.developerslist["[email protected]","[email protected]"]Developers of your tenant
global.dnsWildCardstringnila cluster DNS wildcard name
global.gerritSSHPortstring"30022"Gerrit SSH node port
global.openshift.deploymentTypestring"deployments"Which type of kind will be deployed to Openshift (values: deployments/deploymentConfigs)
global.platformstring"openshift"platform type that can be "kubernetes" or "openshift"
groupMemberSyncIntervalstring"30m"If not defined the exponential formula with the max value of 1hr will be used
image.repositorystring"epamedp/gerrit-operator"KubeRocketCI gerrit-operator Docker image name. The released image can be found on Dockerhub
image.tagstringnilKubeRocketCI gerrit-operator Docker image tag. The released image can be found on Dockerhub
imagePullPolicystring"IfNotPresent"
imagePullSecretslist[]Optional array of imagePullSecrets containing private registry credentials # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry
namestring"gerrit-operator"component name
nodeSelectorobject{}
podSecurityContextobject{"runAsNonRoot":true}Pod Security Context Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
projectSyncIntervalstring"1h"Format: golang time.Duration-formatted string
resources.limits.memorystring"192Mi"
resources.requests.cpustring"50m"
resources.requests.memorystring"64Mi"
securityContextobject{"allowPrivilegeEscalation":false}Container Security Context Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
tolerationslist[]

Deploy gerrit-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gerrit-operator 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 chartgerrit-operator is pinned at v2.26.0 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