cockpit
by Gravitee.io
Official Gravitee.io Helm chart for Cockpit
About this chart
Gravitee.io Cockpit Helm Chart {#graviteeio-cockpit-helm-chart}
Chart supported versions: 1.0.x and higher
Components {#_components}
This chart will deploy the following:
- Gravitee.io Cockpit
Requirements {#_requirements}
Kubernetes: >=1.16.0-0
+-----------------------+-----------------------+-----------------------+ | Repository | Name | Version | +-----------------------+-----------------------+-----------------------+ | <https://c | mongodb-replicaset | ^3.10.1 | | harts.helm.sh/stable> | | | +-----------------------+-----------------------+-----------------------+
Mongo ReplicaSet
| Parameter | Description | Default |
|---|---|---|
mongodb-replicaset.enabled | Enable deployment of Mongo replicaset | false |
See MongoDB replicaset for detailed documentation on helm chart.
** Please be aware that the mongodb-replicaset installed by Gravitee is NOT recommended in production and it is just for testing purpose and running Cockpit locally.
Hazelcast {#_hazelcast}
Cockpit embeds Hazelcast to handle installations connections. In order to make Hazelcast work best when embedded and deployed under a Kubernetes cluster, we pre-configured the auto-discovery to work with the Kubernetes API.
Kubernetes API mode means that each node makes a REST call to Kubernetes Master in order to discover IPs of PODs (with Hazelcast members).]
In order to make it work, you need to grant access to the Kubernetes API.
$ kubectl apply -f https://raw.githubusercontent.com/gravitee-io/helm-charts/master/cockpit/rbac.yml
If you want to let Helm to create the Service Account with required
cluster role while installating the Chart, use
--set engine.managedServiceAccount=true
Please note that managedServiceAccount is enabled by default and so,
you'll have to switch it off if you want to manage the Service Account
by yourself.
::: {.warning}
rbac.yml comes with default graviteeio namespace and a
gravitee-cockpit service account. Make sure to use the right namespace
and service account if you have overridden it.
:::
Installing {#_installing}
-
Add the Gravitee.io helm charts repo
$ helm repo add graviteeio https://helm.gravitee.io -
Install it
$ helm install --name graviteeio-cockpit graviteeio/cockpit
Create a chart archive {#_create_a_chart_archive}
To package this chart directory into a chart archive, run:
$ helm package .
Installing the Chart {#_installing_the_chart}
To install the chart from the Helm repository with the release name
+graviteeio-cockpit+:
$ helm install --name graviteeio-cockpit graviteeio/cockpit
To install the chart using the chart archive, run:
$ helm install cockpit-1.0.0.tgz
Values {#_values}
+-----------------+-----------------+-----------------+-----------------+
| Key | Type | Default | Description |
+-----------------+-----------------+-----------------+-----------------+
| api.auto | bool | true | |
| scaling.enabled | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.autoscal | int | 3 | |
| ing.maxReplicas | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.autoscal | int | 1 | |
| ing.minReplicas | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.autosc | int | 50 | |
| aling.targetAve | | | |
| rageUtilization | | | |
+-----------------+-----------------+-----------------+-----------------+
| a | int | 80 | |
| pi.autoscaling. | | | |
| targetMemoryAve | | | |
| rageUtilization | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.contro | bool | true | |
| ller.ws.enabled | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.contr | string | "nginx" | |
| oller.ws.ingres | | | |
| s.annotations.\ | | | |
| "kubernetes.io/ | | | |
| ingress.class" | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.contro | string | "true" | |
| ller.ws.ingress | | | |
| .annotations." | | | |
| nginx.ingress.k | | | |
| ubernetes.io/ss | | | |
| l-passthrough" | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.con | string | "true" | |
| troller.ws.ingr | | | |
| ess.annotations | | | |
| ."nginx.ingres | | | |
| s.kubernetes.io | | | |
| /ssl-redirect" | | | |
+-----------------+-----------------+-----------------+-----------------+
| api | bool | true | |
| .controller.ws. | | | |
| ingress.enabled | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.co | string | "co | | | ntroller.ws.ing | | ckpit-controlle | | | ress.hosts\[0\] | | r.example.com" | |
+-----------------+-----------------+-----------------+-----------------+
| api.controller. | string | "/" | |
| ws.ingress.path | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.controller. | string | "cockpi | | | ws.ingress.tls\ | | t.example.com" | |
| [0].hosts[0] | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.controller. | string | "ap | | | ws.ingress.tls\ | | i-custom-cert" | |
| [0].secretName | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.con | int | 8062 | |
| troller.ws.port | | | |
+-----------------+-----------------+-----------------+-----------------+
| api | bool | true | |
| .controller.ws. | | | |
| service.enabled | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.cont | int | 8062 | |
| roller.ws.servi | | | |
| ce.externalPort | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.controller. | string | "ClusterIP" | |
| ws.service.type | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | bool | false | |
| agement.enabled | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | string | "/" | |
| agement.entrypo | | | |
| int | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | string | "nginx" | |
| agement.ingress | | | |
| .annotations."k | | | |
| ubernetes.io/in | | | |
| gress.class" | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | string | "10" | |
| agement.ingress | | | |
| .annotations."n | | | |
| ginx.ingress.ku | | | |
| bernetes.io/lim | | | |
| it-connections" | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | string | "20" | |
| agement.ingress | | | |
| .annotations."n | | | |
| ginx.ingress.ku | | | |
| bernetes.io/lim | | | |
| it-rps" | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | bool | true | |
| agement.ingress | | | |
| .enabled | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | string | "cockpit.examp | | | agement.ingress | | le.com" | |
| .hosts[0] | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | string | "/customers" | |
| agement.ingress | | | |
| .path | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | string | "cockpit.examp | | | agement.ingress | | le.com" | |
| .tls[0].hosts | | | |
| [0] | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | string | "api-custom-ce | | | agement.ingress | | rt" | |
| .tls[0].secre | | | |
| tName | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | int | 8065 | |
| agement.port | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | bool | true | |
| agement.service | | | |
| .enabled | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.customerMan | int | 8065 | |
| agement.service | | | |
| .externalPort | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.emai | string | nil | |
| l.notifications | | | |
+-----------------+-----------------+-----------------+-----------------+
| api.enabled | bool | true | |
+-----------------+-----------------+-----------------+-----------------+
| api.ht | string | "adminadmin" | |
| tp.services.cor | | | |
| e.http.authenti | | | |
| cation.password | | | |
+-----------------+------------
Deploy cockpit with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cockpit 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcockpit is pinned at v2.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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