e2g
e2guardian Chart
About this chart
E2guardian
e2guardian Chart
The chart is under active development and may contain bugs/unfinished documentation. Any testing/contributions are welcome! :)
Homepage: https://github.com/e2guardian/e2guardian/
Maintainers
| Name | Url | |
|---|---|---|
| NOC | [email protected] | |
| SRE | [email protected] |
Source Code
- https://github.com/bedag/helm-charts/tree/master/charts/e2g
- https://github.com/e2guardian/e2guardian/
- https://github.com/bedag/docker-e2g
Requirements
| Repository | Name | Version |
|---|---|---|
| https://bedag.github.io/helm-charts/ | manifests | >=0.4.0 |
How to use this Chart?
You can choose between deployment, statefulset, daemonset. Deployment is per default enabled. You can enable disable those like this:
deployment:
enabled: true
statefulset:
enabled: false
daemonset:
enabled: false
All important E2guardian variables are under e2g. Go to Values for more information.
See the Examples to get a better idea, of how tests could look like.
Major Changes
Major Changes to functions are documented with the version affected. Before upgrading the dependency version, check this section out!
| Change | Chart Version | Description | Commits/PRs |
|---|---|---|---|
Values
| Key | Type | Default | Description |
|---|---|---|---|
| commonLabels | object | {} | Common Labels are added to each kubernetes resource manifest. |
| daemonset.apiVersion | string | "" | Configure the api version used for the DaemonSet resource |
| daemonset.enabled | bool | false | Enable daemonset |
| daemonset.labels | object | {} | Merges given labels with common labels |
| daemonset.minReadySeconds | string | "" | DaemonSet Min Ready in Seconds. DaemonSet only |
| daemonset.rollingUpdatemaxUnavailable | string | "" | |
| daemonset.selectorLabels | object | {} | Define SelectorLabels for the Pod Template |
| daemonset.updateStrategy | string | "RollingUpdate" | DaemonSet Update Strategy. DaemonSet only |
| deployment.apiVersion | string | "" | Configure the api version used for the Deployment resource |
| deployment.deploymentExtras | object | {} | Extra Fields for Deployment Manifest |
| deployment.enabled | bool | true | Enable deployment |
| deployment.labels | object | {} | Merges given labels with common labels |
| deployment.replicaCount | int | 1 | Amount of Replicas deployed |
| deployment.selectorLabels | object | {} | Define SelectorLabels for the Pod Template |
| deployment.strategy | object | {"type":"RollingUpdate"} | Deployment Update Strategy. Deployments only |
| e2g.config | string | nil | e2g config mounted in e2guardian.conf |
| e2g.filtergroups | list | [] | Array of e2g config for a filgergroup mounted as /usr/local/e2guardian/etc/e2guardian/e2guardianf{{ id }}.conf |
| e2g.lists | list | [] | Array of e2g stories as string mounted in /usr/local/e2guardian/etc/e2guardian/listen/{{ $i }}.list |
| e2g.story | list | [] | Array of e2g stories as string mounted in /usr/local/e2guardian/etc/e2guardian/{{ $i }}.story |
| fullnameOverride | string | "" | Overwrite lib.utils.common.fullname output |
| global.defaultTag | string | "" | Global Docker Image Tag declaration. Will be used as default tag, if no tag is given by child |
| global.imagePullPolicy | string | "" | Global Docker Image Pull Policy declaration. Will overwrite all child .pullPolicy fields. |
| global.imagePullSecrets | list | [] | Global Docker Image Pull Secrets declaration. Added to local Docker Image Pull Secrets. |
| global.imageRegistry | string | "" | Global Docker Image Registry declaration. Will overwrite all child .registry fields. |
| global.storageClass | string | "" | Global StorageClass declaration. Can be used to overwrite StorageClass fields. |
| kubeCapabilities | string | $.Capabilities.KubeVersion.GitVersion | Overwrite the Kube GitVersion |
| nameOverride | string | "" | Overwrite "lib.internal.common.name" output |
| overwriteLabels | object | {} | Overwrites default labels, but not resource specific labels and common labels |
| pod.affinity | object | {} | Pod Affinity |
| pod.apiVersion | string | "" | Configure the api version used for the Pod resource |
| pod.args | object | {} | Configure arguments for executed command |
| pod.command | object | {} | Configure executed container command |
| pod.containerFields | object | {} | Extra fields used on the container definition |
| pod.containerName | string | .Chart.Name | Configure Container Name |
| pod.environment | list | [] | Configure Environment Variables (Refer to values.yaml) |
| pod.forceRedeploy | bool | false | |
| pod.image.pullPolicy | string | nil | Configure Docker Pull Policy. Will be overwritten if set by global variable. |
| pod.image.registry | string | "docker.io" | Configure Docker Registry. Will be overwritten if set by global variable. |
| pod.image.repository | string | "bedag/e2g" | Configure Docker Repository |
| pod.image.tag | string | Tag defaults to .Chart.Appversion, if not set | Configure Docker Image tag |
| pod.imagePullSecrets | list | [] | Define ImagePullSecrets. Will be overwritten if set by global variable. |
| pod.initContainers | list | [] | Pod initContainers |
| pod.lifecycle | object | {} | Container Lifecycle |
| pod.livenessProbe | object | {"initialDelaySeconds":15,"periodSeconds":1,"tcpSocket":{"port":1344}} | Container LivenessProbe |
| pod.nodeSelector | object | {} | Pod NodeSelector |
| pod.podAnnotations | object | {} | Pod annotations are only added for the pod |
| pod.podFields | object | {"terminationGracePeriodSeconds":0} | Add extra field to the Pod Template if not available as value. |
| pod.podLabels | object | {} | Pod labels are only added for the pod |
| pod.podSecurityContext | object | {"fsGroup":65534,"runAsNonRoot":true,"runAsUser":65534} | Pod SecurityContext |
| pod.ports | list | [{"containerPort":1344,"name":"icap","protocol":"TCP"},{"containerPort":8080,"name":"http","protocol":"TCP"},{"containerPort":8443,"name":"https","protocol":"TCP"}] | Configure Container Ports |
| pod.priorityClassName | string | "" | Pod priorityClassName |
| pod.readinessProbe | object | {"initialDelaySeconds":5,"periodSeconds":1,"tcpSocket":{"port":1344}} | Container ReadinessProbe |
| pod.resources | object | {} | Configure Container Resource |
| pod.restartPolicy | string | nil | Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy |
| pod.securityContext | object | {"allowPrivilegeEscalation":false,"runAsGroup":65534,"runAsUser":65534} | Container SecurityContext |
| pod.serviceAccount.annotations | object | {} | Annotations to add to the service account |
| pod.serviceAccount.apiVersion | string | v1 | Configure the api version used |
| pod.serviceAccount.automountServiceAccountToken | bool | true | AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. |
| pod.serviceAccount.create | bool | false | Specifies whether a service account should be created |
| pod.serviceAccount.enabled | bool | false | Specifies whether a service account is enabled or not |
| pod.serviceAccount.globalPullSecrets | bool | false | Evaluate global set pullsecrets and mount, if set |
| pod.serviceAccount.imagePullSecrets | list | [] | ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. |
| pod.serviceAccount.labels | object | {} | Merges given labels with common labels |
| pod.serviceAccount.name | string | "" | If not set and create is true, a name is generated using the fullname template |
| pod.serviceAccount.secrets | list | [] | Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount |
| pod.sidecars | list | [] | Allows to add sidecars to your [maincar]](https://kubernetes.io/docs/concepts/workloads/pods/#using-pods) |
| pod.startupProbe | object | {} | Container StartupProbe |
| pod.tolerations | object | {} | Pod Tolerations |
| pod.volumeMounts | list | [] | Configure Container volumeMounts |
| pod.volumes | list | [] | Additional Volumes |
| proxy.httpProxy.host | string | "" | Configure HTTP Proxy Hostname/IP (without protocol://) |
| proxy.httpProxy.port | int | nil | Configure HTTP Proxy Port |
| proxy.httpProxy.protocol | string | http | Configure HTTP Proxy Protocol (http/https) |
| proxy.httpsProxy.host | string | "" | Configure HTTPS Proxy Hostname/IP (without protocol://) |
| proxy.httpsProxy.port | int | nil | Configure HTTPS Proxy Port |
| proxy.httpsProxy.protocol | string | http | Configure HTTPS Proxy Protocol (http/https) |
| proxy.noProxy | list | [] | Configure No Proxy Hosts noProxy: [ "localhost", "127.0.0.1" ] |
| selectorLabels | object | {} | Define default selectorLabels |
| service.annotations | object | {} | Configure Service additional Annotations (Monitor Labels) |
| service.apiVersion | string | v1 | Configure the api version used |
| service.enabled | bool | true | Enable Service Resource |
| service.extraPorts | list | [{"name":"http","port":8080,"protocol":"TCP","targetPort":"http"},{"name":"https","port":8443,"protocol":"TCP","targetPort":"https"}] | Add additional ports to the service |
| service.labels | object | {} | Configure Service additional Labels |
| service.loadBalancerIP | string | "" | Configure Service loadBalancerIP. Set the LoadBalancer service type to internal only. |
| service.loadBalancerSourceRanges | list | [] | Configure Service loadBalancerSourceRanges # Example: # loadBalancerSourceRanges: # - 10.10.10.0/24 # |
| service.nodePort | string | nil | Specify the nodePort value for the LoadBalancer and NodePort service types |
| service.port | int | 80 | Configure Service Port (Required) |
| service.portName | string | http | Configure Service Port name |
| service.protocol | string | TCP | Configure Service Port Protocol |
| service.selector | object | {} | Configure Service Selector Labels |
| service.targetPort | string | http | Configure Service TargetPort |
| service.type | string | "" | Configure Service Type. |
| statefulset.apiVersion | string | "" | Configure the api version used for the Statefulset resource |
| statefulset.enabled | bool | false | Enable statefulset |
| statefulset.labels | object | {} | Merges given labels with common labels |
| statefulset.podManagementPolicy | string | "" | Statefulset Management Policy. Statefulset only |
| statefulset.replicaCount | int | 3 | Amount of Replicas deployed |
| statefulset.rollingUpdatePartition | string | "" | Statefulset Update Pratition. Statefulset only |
| statefulset.selectorLabels | object | {} | Define SelectorLabels for the Pod Template |
| statefulset.serviceName | string |
Deploy e2g with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has e2g 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 charte2g is pinned at v1.2.4 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