Install, by provider
Install Revetment on Amazon EKS.
Tested on a live cluster
We ran every command on this page, in order, on a throwaway EKS cluster and deleted the cluster the same day.
- Tested on
- 17 November 2026
- Chart
- 0.1.0-722813e98f02
- Envoy Gateway
- v1.8.3
- Kubernetes
- 1.36 (v1.36.5-eks)
- Took
- 35 minutes
- Cost
- $0.85
Status: verified. Tested on 2026-11-17 with EKS 1.36 (v1.36.5-eks, a managed node group of 2 × t3.medium on Amazon Linux 2023, us-east-1), Envoy Gateway v1.8.3, Gateway API CRDs v1.5.1 (installed by the Envoy Gateway chart), and the Revetment chart oci://registry.revetment.io/charts/revetment version 0.1.0-722813e98f02. Everything was created with the aws CLI. The raw terminal output is in transcripts/eks.log.
This guide was run once. Storage needed two attempts, both described in step 3. The commands below are the ones that worked, with one change of order: in our run the Revetment chart went in before storage was fixed, and its volume claim sat Pending until the EBS driver worked. Here storage comes first.
What you end up with
- A VPC from AWS’s published EKS template, an EKS cluster with a two-node managed node group, and the EBS CSI driver for volumes.
- Envoy Gateway runs the proxies. Each proxy uses Revetment’s data-plane image, which is upstream Envoy plus the Revetment module and the OWASP Core Rule Set.
- The Revetment chart runs a control plane (API and UI) and a controller that turns each
RevetmentPolicyinto an Envoy GatewayEnvoyExtensionPolicy. - An echo backend sits behind a
Gateway(a Classic Load Balancer) and anHTTPRoute, with aRevetmentPolicyattached to the route. You check that it records attacks in shadow mode, then blocks them once you approve blocking.
Time and cost
| Step | Wall clock |
|---|---|
| VPC CloudFormation stack | 32 s |
| EKS control plane | 8.5 min |
| Managed node group | about 6 min |
| Envoy Gateway | 41 s |
| EBS CSI driver with Pod Identity | about 2 min once you know the steps (it took us 9 because of the IMDS problem in step 3) |
| Revetment chart | under 1 min once storage works |
| EnvoyProxy, demo app, load balancer | 20 s to Programmed, then 81 s before the Classic Load Balancer answered |
| Shadow test, sign-in, promotion, blocking test | about 3 min |
| Teardown | about 15 min, almost all of it waiting for the node group and cluster to delete |
Expect about 35 minutes end to end. Prices in us-east-1: the EKS control plane is $0.10 an hour, each t3.medium $0.0416 an hour, the Classic Load Balancer $0.025 an hour, public IPv4 addresses $0.005 an hour each, and the 20 GiB root volumes and the 1 GiB gp2 volume come to a few cents. An hour of testing costs about $0.30. Our run came to about $0.85, because the cluster sat idle for three hours in the middle.
Prerequisites
- The
awsCLI v2, with credentials allowed to create IAM roles, CloudFormation stacks, EKS clusters and EC2 resources. Check withaws sts get-caller-identity. kubectl. We used 1.35, which is within one minor version of the cluster.helm3.11 or newer. No registry login is needed: the chart and every image are public atregistry.revetment.io.curl,jq,openssl.
Use a kubeconfig file just for this cluster. If your default kubectl context points at a cluster you care about, this keeps every command below away from it. If the AWS account is shared, the unique revetment-guide- prefix and the project tag let you find and delete exactly what you created.
export KUBECONFIG="$PWD/kube-revetment-eks"
export AWS_REGION=us-east-1
ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
1. Create the VPC, IAM roles, cluster and nodes
The VPC comes from AWS’s published template, the public-subnets-only variant. It has no NAT gateways, so it costs nothing while it exists. For production use the private-subnet template instead.
aws cloudformation create-stack --stack-name revetment-guide-eks-vpc \
--template-url https://s3.us-west-2.amazonaws.com/amazon-eks/cloudformation/2020-10-29/amazon-eks-vpc-sample.yaml \
--tags Key=project,Value=revetment-guide-test
aws cloudformation wait stack-create-complete --stack-name revetment-guide-eks-vpc
aws cloudformation describe-stacks --stack-name revetment-guide-eks-vpc \
--query "Stacks[0].Outputs[].[OutputKey,OutputValue]" --output text
Expected: three lines, SecurityGroups, VpcId and SubnetIds. Put the values in variables:
SUBNETS=$(aws cloudformation describe-stacks --stack-name revetment-guide-eks-vpc \
--query "Stacks[0].Outputs[?OutputKey=='SubnetIds'].OutputValue" --output text)
SG=$(aws cloudformation describe-stacks --stack-name revetment-guide-eks-vpc \
--query "Stacks[0].Outputs[?OutputKey=='SecurityGroups'].OutputValue" --output text)
Two IAM roles, one for the cluster and one for the nodes:
cat > cluster-trust.json <<'JSON'
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"eks.amazonaws.com"},"Action":["sts:AssumeRole","sts:TagSession"]}]}
JSON
cat > node-trust.json <<'JSON'
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"ec2.amazonaws.com"},"Action":"sts:AssumeRole"}]}
JSON
aws iam create-role --role-name revetment-guide-eks-cluster-role \
--assume-role-policy-document file://cluster-trust.json --tags Key=project,Value=revetment-guide-test
aws iam attach-role-policy --role-name revetment-guide-eks-cluster-role \
--policy-arn arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
aws iam create-role --role-name revetment-guide-eks-node-role \
--assume-role-policy-document file://node-trust.json --tags Key=project,Value=revetment-guide-test
for p in AmazonEKSWorkerNodePolicy AmazonEKS_CNI_Policy AmazonEC2ContainerRegistryReadOnly; do
aws iam attach-role-policy --role-name revetment-guide-eks-node-role --policy-arn arn:aws:iam::aws:policy/$p
done
The cluster, with a single (non-HA) control plane:
aws eks create-cluster --name revetment-guide-eks --kubernetes-version 1.36 \
--role-arn arn:aws:iam::${ACCOUNT}:role/revetment-guide-eks-cluster-role \
--resources-vpc-config subnetIds=${SUBNETS},securityGroupIds=${SG} \
--access-config authenticationMode=API_AND_CONFIG_MAP \
--tags project=revetment-guide-test
aws eks wait cluster-active --name revetment-guide-eks
This took 8.5 minutes. Then the node group:
aws eks create-nodegroup --cluster-name revetment-guide-eks --nodegroup-name revetment-guide-ng \
--node-role arn:aws:iam::${ACCOUNT}:role/revetment-guide-eks-node-role \
--subnets ${SUBNETS//,/ } \
--instance-types t3.medium --scaling-config minSize=2,maxSize=2,desiredSize=2 --disk-size 20 \
--tags project=revetment-guide-test
aws eks describe-nodegroup --cluster-name revetment-guide-eks --nodegroup-name revetment-guide-ng \
--query nodegroup.status --output text # repeat until ACTIVE, about 6 minutes
Connect kubectl to it:
aws eks update-kubeconfig --name revetment-guide-eks --kubeconfig "$KUBECONFIG" --alias revetment-guide-eks
chmod 600 "$KUBECONFIG"
kubectl config current-context # must print revetment-guide-eks
kubectl get nodes
Check the context before every step that changes the cluster.
2. Install Envoy Gateway
EKS ships no Gateway API CRDs, so Envoy Gateway’s chart installs its own (v1.5.1, experimental channel) and nothing needs fixing first:
helm install eg oci://docker.io/envoyproxy/gateway-helm --version v1.8.3 \
-n envoy-gateway-system --create-namespace --wait --timeout 5m
kubectl -n envoy-gateway-system get pods
Expected: envoy-gateway-… 1/1 Running.
3. Give the cluster working storage
The Revetment control plane keeps its database on a volume. A new EKS cluster has a gp2 StorageClass, but that class is not marked default and needs the EBS CSI driver, which is not installed. Without it the claim waits for ever:
Waiting for a volume to be created either by the external provisioner 'ebs.csi.aws.com' or manually by the system administrator.
The driver needs AWS credentials. Our first attempt attached AmazonEBSCSIDriverPolicy to the node role. That does not work on Amazon Linux 2023 nodes: their instance metadata hop limit is 1, so pods cannot reach the node’s credentials, and the driver crash-loops with no EC2 IMDS role found ... context deadline exceeded. EKS Pod Identity does work:
cat > pod-identity-trust.json <<'JSON'
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"pods.eks.amazonaws.com"},"Action":["sts:AssumeRole","sts:TagSession"]}]}
JSON
aws iam create-role --role-name revetment-guide-ebs-csi-role \
--assume-role-policy-document file://pod-identity-trust.json --tags Key=project,Value=revetment-guide-test
aws iam attach-role-policy --role-name revetment-guide-ebs-csi-role \
--policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy
aws eks create-addon --cluster-name revetment-guide-eks --addon-name eks-pod-identity-agent \
--tags project=revetment-guide-test
aws eks wait addon-active --cluster-name revetment-guide-eks --addon-name eks-pod-identity-agent
aws eks create-pod-identity-association --cluster-name revetment-guide-eks \
--namespace kube-system --service-account ebs-csi-controller-sa \
--role-arn arn:aws:iam::${ACCOUNT}:role/revetment-guide-ebs-csi-role --tags project=revetment-guide-test
aws eks create-addon --cluster-name revetment-guide-eks --addon-name aws-ebs-csi-driver \
--tags project=revetment-guide-test
Pod Identity injects credentials only into pods created after the association is in place. In our run, a rollout restart straight after creating the association still produced pods without credentials. Deleting the pods a couple of minutes later fixed it. Check that the controller pods carry the Pod Identity variables, and delete them again if they don’t:
kubectl -n kube-system delete pod -l app=ebs-csi-controller
kubectl -n kube-system get pods -l app=ebs-csi-controller # 6/6 Running
P=$(kubectl -n kube-system get pods -l app=ebs-csi-controller -o name | head -1)
kubectl -n kube-system get $P \
-o jsonpath='{range .spec.containers[?(@.name=="ebs-plugin")].env[*]}{.name}{"\n"}{end}' | grep AWS_CONTAINER
aws eks wait addon-active --cluster-name revetment-guide-eks --addon-name aws-ebs-csi-driver
Expected: AWS_CONTAINER_CREDENTIALS_FULL_URI and AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE.
In our run, the aws-ebs-csi-driver add-on was created before the agent and the association, and it stayed CREATING until the pods had credentials. Creating the agent and association first, as above, avoids that wait.
4. Install Revetment
The proxies send their events to the control plane over HTTP, so both sides need a shared token. You create it yourself (the chart never generates a credential) in both namespaces:
umask 077
openssl rand -hex 32 | tr -d '\n' > ingest-token
kubectl create namespace revetment-system
kubectl -n revetment-system create secret generic revetment-ingest --from-file=token=ingest-token
kubectl -n envoy-gateway-system create secret generic revetment-ingest --from-file=token=ingest-token
rm -f ingest-token
The tr -d '\n' matters: a trailing newline would end up inside an HTTP header.
Save the values as revetment-values.yaml:
dataPlane:
enabled: false # Envoy Gateway owns the proxy pods
eventDelivery:
mode: network # proxies POST events to the control plane; no shared volume
network:
existingSecret: revetment-ingest
controlPlane:
eventSource:
type: emptyDir
persistence:
enabled: true
storageClassName: gp2
edgeLimits:
enabled: false # its default targets a Gateway this guide does not create
eventDelivery.mode: network is what makes a two-node cluster work. The default (sharedVolume) expects the proxy and the control plane to share a directory on one node. persistence keeps the control plane’s SQLite database on an EBS volume, so a restart doesn’t lose events or the admin account.
helm install revetment oci://registry.revetment.io/charts/revetment \
--version 0.1.0-722813e98f02 \
-n revetment-system -f revetment-values.yaml --wait --timeout 5m
kubectl -n revetment-system get deploy,pvc
Expected:
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/revetment-control-plane 1/1 1 1 27s
deployment.apps/revetment-controller 1/1 1 1 27s
NAME STATUS ... STORAGECLASS
persistentvolumeclaim/revetment-control-plane-data Bound ... gp2
5. Point Envoy Gateway at the Revetment data plane
Save this as envoyproxy.yaml. It does four things:
- swaps the proxy image for Revetment’s data-plane image;
- allowlists the module, so an
EnvoyExtensionPolicyis allowed to load it; - gives the proxy a local buffer for events;
- tells the proxy where to ship those events.
The GatewayClass at the bottom applies all of this to every Gateway of class revetment.
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: revetment-proxy
namespace: envoy-gateway-system
spec:
dynamicModules:
- name: revetment-envoy-module # must be exactly this name
source:
type: Local
local:
path: /etc/revetment/librevetment_envoy_module.so
doNotClose: true
loadGlobally: false
provider:
type: Kubernetes
kubernetes:
envoyDeployment:
container:
image: registry.revetment.io/data-plane:0.1.0@sha256:e17df8a82f680ea3e00f4c6263f975c986be89aaf012d6b4e5b1200d9c7930f1
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
memory: 1024Mi
volumeMounts:
- name: revetment-events
mountPath: /data/revetment-logs
subPath: revetment-logs
env:
- name: REVETMENT_EVENT_SHIP_URL
value: http://revetment-control-plane.revetment-system.svc.cluster.local:8080/api/ingest/events
- name: REVETMENT_EVENT_SHIP_TOKEN
valueFrom:
secretKeyRef:
name: revetment-ingest
key: token
- name: REVETMENT_EVENT_SHIP_SOURCE_ID
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: REVETMENT_EVENT_SHIP_POLL_SECONDS
value: "2"
pod:
volumes:
- name: revetment-events
emptyDir: {}
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
name: revetment
spec:
controllerName: gateway.envoyproxy.io/gatewayclass-controller
parametersRef:
group: gateway.envoyproxy.io
kind: EnvoyProxy
name: revetment-proxy
namespace: envoy-gateway-system
The image digest is the one chart 0.1.0-722813e98f02 pins in dataPlane.image. If you install a different chart version, take the digest from its values.yaml.
6. Deploy a demo backend behind a Gateway
Save as demo.yaml:
apiVersion: v1
kind: Namespace
metadata:
name: demo
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echo
namespace: demo
spec:
replicas: 1
selector:
matchLabels: {app: echo}
template:
metadata:
labels: {app: echo}
spec:
containers:
- name: echo
image: gcr.io/k8s-staging-gateway-api/echo-basic:v20231214-v1.0.0-140-gf544a46e
ports:
- containerPort: 3000
env:
- name: POD_NAME
valueFrom: {fieldRef: {fieldPath: metadata.name}}
- name: NAMESPACE
valueFrom: {fieldRef: {fieldPath: metadata.namespace}}
resources:
requests: {cpu: 10m, memory: 16Mi}
---
apiVersion: v1
kind: Service
metadata:
name: echo
namespace: demo
spec:
selector: {app: echo}
ports:
- port: 8080
targetPort: 3000
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: demo
namespace: demo
spec:
gatewayClassName: revetment
listeners:
- name: http
protocol: HTTP
port: 80
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: echo
namespace: demo
spec:
parentRefs:
- name: demo
rules:
- backendRefs:
- name: echo
port: 8080
kubectl apply -f envoyproxy.yaml -f demo.yaml
kubectl -n demo wait --for=condition=Programmed gateway/demo --timeout=300s
kubectl -n demo get gateway demo
GW=$(kubectl -n demo get gateway demo -o jsonpath='{.status.addresses[0].value}')
until [ "$(curl -s -o /dev/null -w '%{http_code}' --max-time 5 http://$GW/)" = 200 ]; do sleep 10; done
curl -s -o /dev/null -w "sqli before any policy: %{http_code}\n" "http://$GW/?id=1%27%20OR%20%271%27%3D%271"
The Gateway reported Programmed after 20 seconds, but the Classic Load Balancer behind it took another 81 seconds to answer (DNS plus health checks). The until loop waits for that. Expected: the Gateway shows PROGRAMMED True with an elb.amazonaws.com hostname, and the SQL injection request returns 200 because nothing is inspecting traffic yet.
7. Attach a policy in shadow mode
Save as policy.yaml:
apiVersion: revetment.io/v1alpha1
kind: RevetmentPolicy
metadata:
name: echo
namespace: demo
spec:
targetRef:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: echo
mode: shadow
paranoiaLevel: 1
kubectl apply -f policy.yaml
kubectl -n demo wait --for=jsonpath='{.status.conditions[?(@.type=="Accepted")].status}'=True \
revetmentpolicy/echo --timeout=120s
kubectl -n demo get revetmentpolicy echo -o jsonpath='{range .status.conditions[*]}{.type}={.status} {.message}{"\n"}{end}'
Expected:
Accepted=True attached to route echo (0 exception(s), 0 source rule(s), mode Shadow, stage 100%)
The route itself is not edited. The controller writes a separate EnvoyExtensionPolicy called echo-revetment that points at it.
Send a mix of traffic:
for i in 1 2 3; do
curl -s -o /dev/null -w "benign: %{http_code}\n" "http://$GW/?q=hello"
curl -s -o /dev/null -w "sqli: %{http_code}\n" "http://$GW/?id=1%27%20OR%20%271%27%3D%271"
curl -s -o /dev/null -w "xss: %{http_code}\n" "http://$GW/?q=%3Cscript%3Ealert(1)%3C%2Fscript%3E"
done
Every line is 200, because shadow mode only records. The next step reads back what was recorded.
8. Sign in to the control plane
The console has no password. You sign in with an emailed link or a passkey, and email needs Amazon SES configured (controlPlane.signIn.ses in the chart). For an evaluation cluster without SES, use the chart’s break-glass setting. It prints a one-time sign-in link for the bootstrap admin (admin@localhost) to the control-plane log, valid for 15 minutes. Save as break-glass.yaml:
controlPlane:
extraEnv:
- name: REVETMENT_CONTROL_PLANE_BREAK_GLASS_LINK
value: admin@localhost
helm upgrade revetment oci://registry.revetment.io/charts/revetment --version 0.1.0-722813e98f02 \
-n revetment-system -f revetment-values.yaml -f break-glass.yaml --wait --timeout 5m
umask 077
kubectl -n revetment-system logs deploy/revetment-control-plane \
| grep -o 'token=[0-9a-f]*' | tail -1 | cut -d= -f2 | tr -d '\n' > signin-token
kubectl -n revetment-system port-forward svc/revetment-control-plane 18080:8080 >/dev/null 2>&1 &
CP=http://127.0.0.1:18080
printf '{"token":"%s"}' "$(cat signin-token)" > verify.json
curl -s -o /dev/null -w "verify: %{http_code}\n" -c cookies \
-X POST $CP/api/auth/verify -H 'content-type: application/json' --data-binary @verify.json
rm -f verify.json signin-token
Expected: verify: 200. The token goes to a file and never to your screen. The log line holding it is a live credential for 15 minutes, so treat the pod log as sensitive until then.
If you would rather use the browser: open http://127.0.0.1:18080/auth/verify?token=… with the token from the log while the port-forward runs. We used the API so that every step could be copied.
Now read the shadow events:
curl -s -b cookies "$CP/api/events?limit=50" \
| jq -r '.events[] | [.id, .mode, .verdict, .rule_id, .matched_variable, .upstream_status] | @tsv'
Real output from our run:
6 shadow would_block 941390 ARGS_GET:q 200
5 shadow would_block 942100 ARGS_GET:id 200
4 shadow would_block 941390 ARGS_GET:q 200
3 shadow would_block 942100 ARGS_GET:id 200
2 shadow would_block 941390 ARGS_GET:q 200
1 shadow would_block 942100 ARGS_GET:id 200
942100 is CRS’s libinjection SQL injection rule and 941390 its JavaScript-method XSS rule. Every event has verdict: would_block and the backend still answered 200, which is what shadow mode should do. The benign requests produced no events. A full event also carries the matched text, the client address, the anomaly score and a suggested scoped exception.
9. Switch to blocking
Setting mode: blocking on the policy is a request. Revetment holds the route in shadow until someone approves it on the console, after seeing how many requests it would have blocked:
kubectl -n demo patch revetmentpolicy echo --type merge -p '{"spec":{"mode":"blocking"}}'
kubectl -n demo get revetmentpolicy echo -o jsonpath='{range .status.conditions[*]}{.type}={.status} reason={.reason}{"\n"}{end}'
Expected:
Accepted=False reason=BlockingNotApproved
Approve it by promoting the route through 1%, 10% and 100% of clients. That is the only order the console accepts, and each step must echo back the blast-radius estimate it was shown. The console UI does this under Triage, in the “Promote a route to blocking” section. The API equivalent:
for pct in 1 10 100; do
ack=$(curl -s -b cookies $CP/api/routes/echo/blast-radius \
| jq -c '{would_block_requests,distinct_clients,computed_at_unix_ms,computed_through_event_id}')
curl -s -o /dev/null -w "promote to $pct%%: %{http_code}\n" -b cookies \
-X POST $CP/api/routes/echo/promotion -H 'content-type: application/json' \
-d "{\"stage_percent\":$pct,\"auto_rollback_threshold\":1.0,\"acknowledged_blast_radius\":$ack}"
kubectl -n demo wait --for=jsonpath='{.spec.dynamicModule[0].config.rollout.stagePercent}'=$pct \
envoyextensionpolicy/echo-revetment --timeout=120s
done
Expected: three 201s, each followed by condition met once the controller has applied the stage. The controller polls the control plane every 15 seconds.
auto_rollback_threshold: 1.0 turns off automatic rollback for this test. The test traffic is mostly attacks, and the product default (0.05) would roll the stage back on its own. On a real route, keep the default.
Check the policy and send the same traffic again:
kubectl -n demo wait --for=jsonpath='{.status.conditions[?(@.type=="Accepted")].status}'=True \
revetmentpolicy/echo --timeout=120s
kubectl -n demo get revetmentpolicy echo
for i in 1 2 3; do
curl -s -o /dev/null -w "benign: %{http_code}\n" "http://$GW/?q=hello"
curl -s -o /dev/null -w "sqli: %{http_code}\n" "http://$GW/?id=1%27%20OR%20%271%27%3D%271"
curl -s -o /dev/null -w "xss: %{http_code}\n" "http://$GW/?q=%3Cscript%3Ealert(1)%3C%2Fscript%3E"
done
Real output:
NAME MODE ROUTE AGE
echo blocking echo 2m17s
benign: 200
sqli: 403
xss: 403
benign: 200
sqli: 403
xss: 403
benign: 200
sqli: 403
xss: 403
The policy now reads Accepted=True … mode Blocking, stage 100%.
Finally, remove the break-glass variable so later restarts don’t mint more links:
helm upgrade revetment oci://registry.revetment.io/charts/revetment --version 0.1.0-722813e98f02 \
-n revetment-system -f revetment-values.yaml --wait --timeout 5m
kill %1; rm -f cookies
Blocking carries on through that restart (sqli: 403 straight afterwards in our run). Your console session does not. Sessions are tied to the Helm revision, so sign in again if you need the API.
Teardown
Delete the in-cluster objects first: the Gateway owns the Classic Load Balancer, and the PVC owns an EBS volume. Then wait until the volume is actually gone before you remove the EBS driver.
kubectl config current-context # must print revetment-guide-eks
kubectl delete -f demo.yaml --wait=true --timeout=180s # removes the load balancer
helm uninstall revetment -n revetment-system --wait
kubectl -n revetment-system delete pvc revetment-control-plane-data # the chart keeps it on uninstall
kubectl get pv # wait until this lists nothing (added after our run, see Gotchas)
helm uninstall eg -n envoy-gateway-system --wait
for a in $(aws eks list-pod-identity-associations --cluster-name revetment-guide-eks \
--query 'associations[].associationId' --output text); do
aws eks delete-pod-identity-association --cluster-name revetment-guide-eks --association-id $a
done
aws eks delete-addon --cluster-name revetment-guide-eks --addon-name aws-ebs-csi-driver
aws eks delete-addon --cluster-name revetment-guide-eks --addon-name eks-pod-identity-agent
aws eks delete-nodegroup --cluster-name revetment-guide-eks --nodegroup-name revetment-guide-ng
aws eks wait nodegroup-deleted --cluster-name revetment-guide-eks --nodegroup-name revetment-guide-ng
aws eks delete-cluster --name revetment-guide-eks
aws eks wait cluster-deleted --name revetment-guide-eks
aws cloudformation delete-stack --stack-name revetment-guide-eks-vpc
aws cloudformation wait stack-delete-complete --stack-name revetment-guide-eks-vpc
for r in revetment-guide-eks-cluster-role revetment-guide-eks-node-role revetment-guide-ebs-csi-role; do
for p in $(aws iam list-attached-role-policies --role-name $r --query 'AttachedPolicies[].PolicyArn' --output text); do
aws iam detach-role-policy --role-name $r --policy-arn $p
done
aws iam delete-role --role-name $r
done
Then check that nothing billable is left:
aws eks list-clusters
aws cloudformation describe-stacks --stack-name revetment-guide-eks-vpc # should say it does not exist
aws elb describe-load-balancers --query 'LoadBalancerDescriptions[].[LoadBalancerName,VPCId]'
aws ec2 describe-volumes --filters Name=tag:kubernetes.io/cluster/revetment-guide-eks,Values=owned
aws iam list-roles --query 'Roles[?starts_with(RoleName,`revetment-guide`)].RoleName'
Gotchas
- Storage (step 3). The
gp2class exists but does nothing until the EBS CSI driver is installed. The driver then needs credentials, and on Amazon Linux 2023 nodes giving them to the node role is not enough, because the IMDS hop limit of 1 keeps pods from reaching them. Use Pod Identity, and recreate the driver pods after the association exists. - An orphaned EBS volume. Our teardown removed the EBS driver add-on immediately after deleting the PVC. The PV was still being deleted, and the 1 GiB volume was left behind in state
available. We deleted it withaws ec2 delete-volume. Thekubectl get pvwait in the teardown above prevents this, and thedescribe-volumescheck catches it if it happens anyway. - The load balancer answers late. The Classic Load Balancer started serving traffic 81 seconds after the Gateway reported
Programmed=True. The firstcurls fail with connection errors, not with403, so don’t mistake them for blocking. - A Classic Load Balancer, not an NLB. Without the AWS Load Balancer Controller, EKS’s in-tree controller provisions a Classic Load Balancer for the proxy’s
LoadBalancerService. That is fine for a test. For production, install the AWS Load Balancer Controller and put NLB annotations on the proxy Service through theEnvoyProxy(spec.provider.kubernetes.envoyService.annotations). We did not test that here. - Public subnets. The VPC template used here puts nodes on public subnets with public IPs, which saves the NAT gateway cost. For anything real, use AWS’s private-subnet template.
- Node size. In the repository’s pilot, a proxy carrying the module sat near 820 MiB cold, and one grew past 2 GiB under repeated test runs before it was evicted (
docs/runbooks/pilot-cluster.md,docs/KNOWN-GAPS.md§29). The 1024 Mi limit in step 5 bounds it.t3.medium(4 GiB) was enough for this test but not for a soak. - Blocking needs a sign-in. Without SES configured, break-glass is the only way to sign in. On EKS, the chart’s SES settings take an IRSA-annotated service account (
controlPlane.signIn.sesinvalues.yaml). We did not test that here. - Port 8080 may already be in use on your machine.
kubectl port-forwardthen fails in the background without a message, andcurlreaches whatever else is on that port. That is why this guide forwards to18080.
Other providers