theia
by Antrea
Helm chartv0.8.0App 0.8.0Apache-2.0Verified publisher
Antrea Network Flow Visibility
About this chart
theia
Antrea Network Flow Visibility
Homepage: https://antrea.io/
Source Code
Requirements
Kubernetes: >= 1.16.0-0
Values
| Key | Type | Default | Description |
|---|---|---|---|
| clickhouse.cluster.installZookeeper.image | object | {"pullPolicy":"IfNotPresent","repository":"projects.registry.vmware.com/antrea/theia-zookeeper","tag":"3.8.0"} | Container image used by the ZooKeeper. |
| clickhouse.cluster.installZookeeper.replicas | int | 1 | Number of ZooKeeper replicas. It is recommended to be odd. When deploying ClickHouse cluster with more than 1 replica, 3 is the minimum number of ZooKeeper hosts required to manage replication and fault tolerance. Please refer to https://zookeeper.apache.org/doc/current/zookeeperStarted.html#sc_RunningReplicatedZooKeeper for more information. |
| clickhouse.cluster.installZookeeper.securityContext | object | {"fsGroup":1000,"runAsUser":1000} | Set securityContext. Use a specific uid, gid for zookeeper. |
| clickhouse.cluster.installZookeeper.storage.createPersistentVolume.local.affinity | object | {} | Affinity for the Local PersistentVolume. By default it requires to label the Node used to store the Zookeeper data with "antrea.io/zookeeper-data-node=". |
| clickhouse.cluster.installZookeeper.storage.createPersistentVolume.local.path | string | "/data/zookeeper" | The local path. Required when type is "Local". |
| clickhouse.cluster.installZookeeper.storage.createPersistentVolume.nfs.host | string | "" | The NFS server hostname or IP address. Required when type is "NFS". |
| clickhouse.cluster.installZookeeper.storage.createPersistentVolume.nfs.path | string | "" | The path exported on the NFS server. Required when type is "NFS". |
| clickhouse.cluster.installZookeeper.storage.createPersistentVolume.type | string | "" | Type of PersistentVolume. Can be set to "Local" or "NFS". Please set this value to use a PersistentVolume created by Theia. |
| clickhouse.cluster.installZookeeper.storage.persistentVolumeClaimSpec | object | {} | Specification for PersistentVolumeClaim. This is ignored if createPersistentVolume.type is non-empty. To use a custom PersistentVolume, please set storageClassName: "" volumeName: "". To dynamically provision a PersistentVolume, please set storageClassName: "". Memory storage is used if both createPersistentVolume.type and persistentVolumeClaimSpec are empty. |
| clickhouse.cluster.installZookeeper.storage.size | string | "5Gi" | Zookeeper storage size. Can be a plain integer or as a fixed-point number using one of these quantity suffixes: E, P, T, G, M, K. Or the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. |
| clickhouse.cluster.podDistribution | list | [{"number":1,"topologyKey":"kubernetes.io/hostname","type":"MaxNumberPerNode"}] | Affinity for the ClickHouse Pods. By default, it allows only one ClickHouse instance per Node. Please refer to https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/99-clickhouseinstallation-max.yaml for other distributions. |
| clickhouse.cluster.replicas | int | 1 | Number of ClickHouse replicas in each shard. |
| clickhouse.cluster.shards | int | 1 | Number of ClickHouse shards in the cluster. |
| clickhouse.cluster.zookeeperHosts | list | [] | To use a pre-installed ZooKeeper for ClickHouse data replication, please provide a list of your ZooKeeper hosts. To install a customized ZooKeeper, refer to https://github.com/Altinity/clickhouse-operator/blob/master/docs/zookeeper_setup.md |
| clickhouse.connectionSecret | object | {"password":"clickhouse_operator_password","readOnlyPassword":"readonly_password","readOnlyUsername":"readonly","username":"clickhouse_operator"} | Credentials to connect to ClickHouse. They will be stored in a secret. |
| clickhouse.image | object | {"pullPolicy":"IfNotPresent","repository":"projects.registry.vmware.com/antrea/theia-clickhouse-server","tag":""} | Container image used by ClickHouse. |
| clickhouse.logger.count | int | 4 | The number of archived log files that ClickHouse stores. |
| clickhouse.logger.level | string | "information" | Logging level. Acceptable values: trace, debug, information, warning, error. |
| clickhouse.logger.size | string | "100M" | Size of log files. Applies to log and errorlog. Once the file reaches size, ClickHouse archives and renames it, and creates a new log file in its place. |
| clickhouse.monitor.deletePercentage | float | 0.5 | The percentage of records in ClickHouse that will be deleted when the storage grows above threshold. Vary from 0 to 1. |
| clickhouse.monitor.enable | bool | true | Determine whether to run a monitor to periodically check the ClickHouse memory usage and clean data. |
| clickhouse.monitor.execInterval | string | "1m" | The time interval between two round of monitoring. Can be a plain integer using one of these unit suffixes ns, us (or µs), ms, s, m, h. |
| clickhouse.monitor.image | object | {"pullPolicy":"IfNotPresent","repository":"projects.registry.vmware.com/antrea/theia-clickhouse-monitor","tag":""} | Container image used by the ClickHouse Monitor. |
| clickhouse.monitor.skipRoundsNum | int | 3 | The number of rounds for the monitor to stop after a deletion to wait for the ClickHouse MergeTree Engine to release memory. |
| clickhouse.monitor.threshold | float | 0.5 | The storage percentage at which the monitor starts to delete old records. Vary from 0 to 1. |
| clickhouse.service.httpPort | int | 8123 | HTTP port number for ClickHouse service. |
| clickhouse.service.secureConnection.commonName | string | "clickhouse-clickhouse.flow-visibility.svc" | Subject's common name. Only used when selfSignedCert is true. |
| clickhouse.service.secureConnection.daysValid | int | 365 | Number of days for which the certificate will be valid. There is no automatic rotation with this method. This is ignored if selfSignedCert is false. |
| clickhouse.service.secureConnection.dnsNames | list | [] | Optional list of alternate DNS names; may be nil. Only used when selfSignedCert is true. |
| clickhouse.service.secureConnection.enable | bool | false | Determine whether to enable secure connection to ClickHouse |
| clickhouse.service.secureConnection.httpsPort | int | 8443 | HTTP protocol TLS port. |
| clickhouse.service.secureConnection.ipAddresses | list | [] | Optional list of IPs; may be nil. Only used when selfSignedCert is true. |
| clickhouse.service.secureConnection.secureTcpPort | int | 9440 | TCP protocol TLS port. |
| clickhouse.service.secureConnection.selfSignedCert | bool | true | Indicates whether to use auto-generated self-signed TLS certificates. If false, a Secret named "clickhouse-tls" must be provided with the following keys: tls.crt and tls.key. If true, the following fields commonName, ipAddresses, dnsNames, daysValid need to be provided. |
| clickhouse.service.tcpPort | int | 9000 | TCP port number for ClickHouse service. |
| clickhouse.service.type | string | "ClusterIP" | The type of Service exposing ClickHouse. It can be one of ClusterIP, NodePort or LoadBalancer. |
| clickhouse.storage.createPersistentVolume.local.affinity | object | {} | Affinity for the Local PersistentVolume. By default it requires to label the Node used to store the ClickHouse data with "antrea.io/clickhouse-data-node=". |
| clickhouse.storage.createPersistentVolume.local.nodes | list | ["kind-worker"] | A list of Node hostnames. Required when type is "Local". Please make sure to provide (shards * replicas) Nodes. Each Node should meet affinity and have the path created on it. |
| clickhouse.storage.createPersistentVolume.local.path | string | "/data/clickhouse" | The local path. Required when type is "Local". |
| clickhouse.storage.createPersistentVolume.nfs.addresses | list | ["nfs.svc.cluster.local:/data"] | A list of addresses for NFS shares in the format hostname:path, where hostname refers to NFS server hostname or IP address, and path refers to the path exported on the NFS server. Please provide (shards * replicas) addresses. |
| clickhouse.storage.createPersistentVolume.type | string | "" | Type of PersistentVolume. Can be set to "Local" or "NFS". Please set this value to use a PersistentVolume created by Theia. |
| clickhouse.storage.persistentVolumeClaimSpec | object | {} | Specification for PersistentVolumeClaim. This is ignored if createPersistentVolume.type is non-empty. To use a custom PersistentVolume, please set storageClassName: "" volumeName: "". To dynamically provision a PersistentVolume, please set storageClassName: "". Memory storage is used if both createPersistentVolume.type and persistentVolumeClaimSpec are empty. |
| clickhouse.storage.size | string | "8Gi" | ClickHouse storage size. Can be a plain integer or as a fixed-point number using one of these quantity suffixes: E, P, T, G, M, K. Or the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. |
| clickhouse.ttl | string | "12 HOUR" | Time to live for data in the ClickHouse. Can be a plain integer using one of these unit suffixes SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, YEAR. |
| grafana.dashboards | list | ["homepage.json","flow_records_dashboard.json","pod_to_pod_dashboard.json","pod_to_service_dashboard.json","pod_to_external_dashboard.json","node_to_node_dashboard.json","networkpolicy_dashboard.json","network_topology_dashboard.json"] | The dashboards to be displayed in Grafana UI. The files must be put under provisioning/dashboards. |
| grafana.enable | bool | true | Determine whether to install Grafana. It is used as a data visualization and monitoring tool. |
| grafana.homeDashboard | string | "homepage.json" | Default home dashboard. |
| grafana.image | object | {"pullPolicy":"IfNotPresent","repository":"projects.registry.vmware.com/antrea/theia-grafana","tag":"9.1.6"} | Container image used by Grafana. |
| grafana.installPlugins | list | ["https://downloads.antrea.io/artifacts/grafana-custom-plugins/theia-grafana-sankey-plugin-1.0.3.zip;theia-grafana-sankey-plugin","https://downloads.antrea.io/artifacts/grafana-custom-plugins/theia-grafana-chord-plugin-1.0.2.zip;theia-grafana-chord-plugin","https://downloads.antrea.io/artifacts/grafana-custom-plugins/theia-grafana-dependency-plugin-1.0.2.zip;theia-grafana-dependency-plugin","grafana-clickhouse-datasource 2.2.0"] | Grafana plugins to install. |
| grafana.log | object | {"daily_rotate":"true","level":"info","log_rotate":"true","max_days":"7","max_lines":"1000000","max_size_shift":"27","mode":"console file"} | Grafana logging options. |
| grafana.log.daily_rotate | string | "true" | Enable daily rotation of files, valid options are false or true. Default is true. Only applicable when “file” used in [log] mode. |
| grafana.log.level | string | "info" | Logging level. Options are “debug”, “info”, “warn”, “error”, and “critical”. Default is info. |
| grafana.log.log_rotate | string | "true" | Enable automated log rotation, valid options are false or true. Default is true. When enabled use the max_lines, max_size_shift, daily_rotate and max_days to configure the behavior of the log rotation. Only applicable when “file” used in [log] mode. |
| grafana.log.max_days | string | "7" | Maximum number of days to keep log files. Default is "7". Only applicable when “file” used in [log] mode. |
| grafana.log.max_lines | string | "1000000" | Maximum lines per file before rotating it. Default is "1000000". Only applicable when “file” used in [log] mode. |
| grafana.log.max_size_shift | string | "27" | Maximum size of file before rotating it. Default is "27", which means 1 << 27, 128MB. Only applicable when “file” used in [log] mode. |
| grafana.log.mode | string | "console file" | Logging mode. Options are “console”, “file”, and “syslog”. Default is “console” and “file”. Use spaces to separate multiple modes, e.g. console file |
| grafana.loginSecret | object | {"password":"admin","username":"admin"} | Credentials to login to Grafana. They will be stored in a Secret. |
| grafana.securityContext | object | {"fsGroup":472,"supplementalGroups":[0]} | Set securityContext. Use a specific uid, gid for grafana. |
| grafana.service.tcpPort | int | 3000 | TCP port number for the Grafana service. |
| grafana.service.type | string | "NodePort" | The type of Service exposing Grafana. It must be one of NodePort or LoadBalancer. |
| grafana.storage.createPersistentVolume.hostPath.path | string | "/data/grafana" | The host path. Required when type is "HostPath". |
| grafana.storage.createPersistentVolume.local.affinity | object | {} | Affinity for the Local PersistentVolume. By default it requires to label the Node used to store the Grafana configuration files with "antrea.io/grafana-config-node=". |
| grafana.storage.createPersistentVolume.local.path | string | "/data/grafana" | The local path. Required when type is "Local". |
| grafana.storage.createPersistentVolume.nfs.host | string | "" | The NFS server hostname or IP address. Required when type is "NFS". |
| grafana.storage.createPersistentVolume.nfs.path | string | "" | The path exported on the NFS server. Required when type is "NFS". |
| grafana.storage.createPersistentVolume.type | string | "HostPath" | Type of PersistentVolume. Can be set to "HostPath", "Local" or "NFS". Please set this value to use a PersistentVolume created by Theia. |
| grafana.storage.persistentVolumeClaimSpec | object | {} | Specification for PersistentVolumeClaim. This is ignored if createPersistentVolume.type is non-empty. To |
Deploy theia with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has theia 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 charttheia is pinned at v0.8.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