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

KeyTypeDefaultDescription
clickhouse.cluster.installZookeeper.imageobject{"pullPolicy":"IfNotPresent","repository":"projects.registry.vmware.com/antrea/theia-zookeeper","tag":"3.8.0"}Container image used by the ZooKeeper.
clickhouse.cluster.installZookeeper.replicasint1Number 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.securityContextobject{"fsGroup":1000,"runAsUser":1000}Set securityContext. Use a specific uid, gid for zookeeper.
clickhouse.cluster.installZookeeper.storage.createPersistentVolume.local.affinityobject{}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.pathstring"/data/zookeeper"The local path. Required when type is "Local".
clickhouse.cluster.installZookeeper.storage.createPersistentVolume.nfs.hoststring""The NFS server hostname or IP address. Required when type is "NFS".
clickhouse.cluster.installZookeeper.storage.createPersistentVolume.nfs.pathstring""The path exported on the NFS server. Required when type is "NFS".
clickhouse.cluster.installZookeeper.storage.createPersistentVolume.typestring""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.persistentVolumeClaimSpecobject{}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.sizestring"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.podDistributionlist[{"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.replicasint1Number of ClickHouse replicas in each shard.
clickhouse.cluster.shardsint1Number of ClickHouse shards in the cluster.
clickhouse.cluster.zookeeperHostslist[]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.connectionSecretobject{"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.imageobject{"pullPolicy":"IfNotPresent","repository":"projects.registry.vmware.com/antrea/theia-clickhouse-server","tag":""}Container image used by ClickHouse.
clickhouse.logger.countint4The number of archived log files that ClickHouse stores.
clickhouse.logger.levelstring"information"Logging level. Acceptable values: trace, debug, information, warning, error.
clickhouse.logger.sizestring"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.deletePercentagefloat0.5The percentage of records in ClickHouse that will be deleted when the storage grows above threshold. Vary from 0 to 1.
clickhouse.monitor.enablebooltrueDetermine whether to run a monitor to periodically check the ClickHouse memory usage and clean data.
clickhouse.monitor.execIntervalstring"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.imageobject{"pullPolicy":"IfNotPresent","repository":"projects.registry.vmware.com/antrea/theia-clickhouse-monitor","tag":""}Container image used by the ClickHouse Monitor.
clickhouse.monitor.skipRoundsNumint3The number of rounds for the monitor to stop after a deletion to wait for the ClickHouse MergeTree Engine to release memory.
clickhouse.monitor.thresholdfloat0.5The storage percentage at which the monitor starts to delete old records. Vary from 0 to 1.
clickhouse.service.httpPortint8123HTTP port number for ClickHouse service.
clickhouse.service.secureConnection.commonNamestring"clickhouse-clickhouse.flow-visibility.svc"Subject's common name. Only used when selfSignedCert is true.
clickhouse.service.secureConnection.daysValidint365Number 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.dnsNameslist[]Optional list of alternate DNS names; may be nil. Only used when selfSignedCert is true.
clickhouse.service.secureConnection.enableboolfalseDetermine whether to enable secure connection to ClickHouse
clickhouse.service.secureConnection.httpsPortint8443HTTP protocol TLS port.
clickhouse.service.secureConnection.ipAddresseslist[]Optional list of IPs; may be nil. Only used when selfSignedCert is true.
clickhouse.service.secureConnection.secureTcpPortint9440TCP protocol TLS port.
clickhouse.service.secureConnection.selfSignedCertbooltrueIndicates 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.tcpPortint9000TCP port number for ClickHouse service.
clickhouse.service.typestring"ClusterIP"The type of Service exposing ClickHouse. It can be one of ClusterIP, NodePort or LoadBalancer.
clickhouse.storage.createPersistentVolume.local.affinityobject{}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.nodeslist["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.pathstring"/data/clickhouse"The local path. Required when type is "Local".
clickhouse.storage.createPersistentVolume.nfs.addresseslist["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.typestring""Type of PersistentVolume. Can be set to "Local" or "NFS". Please set this value to use a PersistentVolume created by Theia.
clickhouse.storage.persistentVolumeClaimSpecobject{}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.sizestring"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.ttlstring"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.dashboardslist["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.enablebooltrueDetermine whether to install Grafana. It is used as a data visualization and monitoring tool.
grafana.homeDashboardstring"homepage.json"Default home dashboard.
grafana.imageobject{"pullPolicy":"IfNotPresent","repository":"projects.registry.vmware.com/antrea/theia-grafana","tag":"9.1.6"}Container image used by Grafana.
grafana.installPluginslist["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.logobject{"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_rotatestring"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.levelstring"info"Logging level. Options are “debug”, “info”, “warn”, “error”, and “critical”. Default is info.
grafana.log.log_rotatestring"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_daysstring"7"Maximum number of days to keep log files. Default is "7". Only applicable when “file” used in [log] mode.
grafana.log.max_linesstring"1000000"Maximum lines per file before rotating it. Default is "1000000". Only applicable when “file” used in [log] mode.
grafana.log.max_size_shiftstring"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.modestring"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.loginSecretobject{"password":"admin","username":"admin"}Credentials to login to Grafana. They will be stored in a Secret.
grafana.securityContextobject{"fsGroup":472,"supplementalGroups":[0]}Set securityContext. Use a specific uid, gid for grafana.
grafana.service.tcpPortint3000TCP port number for the Grafana service.
grafana.service.typestring"NodePort"The type of Service exposing Grafana. It must be one of NodePort or LoadBalancer.
grafana.storage.createPersistentVolume.hostPath.pathstring"/data/grafana"The host path. Required when type is "HostPath".
grafana.storage.createPersistentVolume.local.affinityobject{}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.pathstring"/data/grafana"The local path. Required when type is "Local".
grafana.storage.createPersistentVolume.nfs.hoststring""The NFS server hostname or IP address. Required when type is "NFS".
grafana.storage.createPersistentVolume.nfs.pathstring""The path exported on the NFS server. Required when type is "NFS".
grafana.storage.createPersistentVolume.typestring"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.persistentVolumeClaimSpecobject{}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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttheia is pinned at v0.8.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