hawk-envoy-plugin
Helm chartv0.1.0App 1.16.0
A Helm chart for Kubernetes
About this chart
hawk-envoy-proxy
Extension for istio envoy to allow trace personal data between rest microservices in kubernetes
Helm Chart
This helm chart is used to deploy the envoy filter in a target kubernetes-namespace.
Deployment through Helm
- Add the helm chart repository (if not already done):
helm repo add hawk https://privacyengineering.github.io/hawk-helm-charts/ - Install the istio service mesh using
istioctlwith the demo profile:istioctl install --set profile=default -y - Create the namespace where hawk is intended to be applied:
kubectl create namespace sock-shop - Create
values.yamland modify to your needs (see default values invalues.yamland the documentation for Parameters):cat <<EOF > values.yaml # example values.yaml hawkEnvoyPlugin: namespace: sock-shop hawkServiceApiUrl: http://hawk-service.hawk.svc.cluster.local/api httpbin: true EOF - Install hawk envoy plugin and all it's services:
helm dependency update helm install -f values.yaml sock-shop-hawk-ep hawk/hawk-envoy-plugin --namespace hawk-envoy-plugin --create-namespace - Install the rest of the demo architecture:
kubectl apply -f ./02.sock-shop/
Prerequisites
- Kubernetes 1.16+
- Helm 3.0+
- Istio 1.6+
- Hawk
Parameters
Hawk-envoy-plugin parameters
| Name | Description | Value |
|---|---|---|
hawkEnvoyPlugin.namespace | The target namespace to collect tracing data from | "sock-shop" |
hawkEnvoyPlugin.hawkServiceApiUrl | Hawk Service Api Url in url-schema | http://hawk-service.hawk.svc.cluster.local/api |
hawkEnvoyPlugin.httpbin | Whether a httpbin-namespace should be created for testing purposes | true |
Testing hawk-envoy-plugin
To test the plugin, the helm-chart uses the httpbin-namespace, which is created by the helm chart.
Note: The httpbin-namespace is only created if the hawkEnvoyPlugin.httpbin parameter is set to true.
helm test -n hawk-envoy-plugin sock-shop-hawk-ep --logs
Deploy hawk-envoy-plugin with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hawk-envoy-plugin 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 charthawk-envoy-plugin is pinned at v0.1.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