cicd

by Helm

Helm chartv2.0.5App 0.8.8

Pipeline CICD is a Continuous Integration platform built on Kubernetes.

About this chart

Pipeline CI/CD

Pipeline CI/CD is a Continuous Integration platform built on Kubernetes.

Installing the Chart

Checkout the repository and execute:

$ helm upgrade --install cicd ./cicd/ --set github.clientID=$GITHUB_CLIENT_ID --set github.clientSecret=$GITHUB_CLIENT_SECRET

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete --purge cicd

The command removes nearly all the Kubernetes components associated with the chart and deletes the release.

Configuration (Database)

The following table lists the configurable parameters of the CICD chart database configuration and their default values.

Postgres (default)

Read more stable/postgresql

postgres:
  enabled: true
ParameterDescriptionDefault
postgres.enabledInstall postgresql charttrue

Mysql

Read more stable/mysql

mysql:
  enabled: true
ParameterDescriptionDefault
mysql.enabledInstall mysql chartfalse

Custom settings (These values ​​are preferred against mysql or postgres values)

ParameterDescriptionDefault
database.driverDatabase driver (mysql, postgres)``
database.hostDatabase host``
database.portDatabase port``
database.nameDatabase namecicd
database.usernameDatabase usernamecicd-rw
database.passwordDatabase password``
database.existingSecretUse an existing secret for database passwords``

Setting up Google CloudSQL Proxy

Read more rimusz/gcloud-sqlproxy

cloudsql:
  enabled: true
    instances: []
#      - project:
#        region: 
#        instance:
#        port:
ParameterDescriptionDefault
cloudsql.enabledInstall cloudsql chartfalse

Configuration

The following tables lists the configurable parameters of the chart and their default values.

ParameterDescriptionDefault
image.repositoryCI/CD server imagebanzaicloud/cicd
image.tagCI/CD server image tag0.8.7
image.pullPolicyCI/CD server image pull policyIfNotPresent
agentImage.repositoryCI/CD agent imagebanzaicloud/cicd
agentImage.tagCI/CD agent image tag0.8.7
agentImage.pullPolicyCI/CD agent image pull policyIfNotPresent
service.httpPortCI/CD's Web GUI HTTP port80
service.nodePortIf service.type is NodePort and this is non-empty, sets the http node port of the service32015
service.typeService type (ClusterIP, NodePort or LoadBalancer)ClusterIP
ingress.enabledEnables Ingress for CI/CDfalse
ingress.annotationsIngress annotations{}
ingress.hostsIngress accepted hostnamesnil
ingress.tlsIngress TLS configuration[]
server.hostCI/CD server hostname(internal hostname)
server.envCI/CD server environment variables(default values)
server.resourcesCI/CD server pod resource requests & limits{}
agent.envCI/CD agent environment variables(default values)
agent.resourcesCI/CD agent pod resource requests & limits{}
sharedSecretCI/CD server and agent shared secret(random value)

Deploy cicd with OpenTenant

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