Skip to content

DOC-328: Rename K8s/EKS config variables to cloud-agnostic names#745

Open
alexrashed wants to merge 2 commits into
aws-docs-release-julyfrom
rename-k8s-eks-config-vars
Open

DOC-328: Rename K8s/EKS config variables to cloud-agnostic names#745
alexrashed wants to merge 2 commits into
aws-docs-release-julyfrom
rename-k8s-eks-config-vars

Conversation

@alexrashed

@alexrashed alexrashed commented Jun 30, 2026

Copy link
Copy Markdown
Member

Motivation

The Kubernetes configuration variables have been renamed to cloud-agnostic names so they apply consistently across both (a) all emulated services that run workloads on Kubernetes (Lambda, ECS, …) and (b) services that run Kubernetes clusters (AWS EKS, Azure AKS). This updates the docs to match.

Changes

  • Config reference (aws/configuration/config/configuration.md): renamed the six affected EKS variables in the table, each annotated with its former name as a deprecated alias, and added a note explaining the rename + the CLI v1 LOCALSTACK_-prefix behaviour. EKS_LOADBALANCER_PORT and EKS_PERSIST_CLUSTER_CONTENTS are left as-is — they remain AWS/EKS-specific and were not renamed.
  • EKS guide (aws/services/eks.mdx) and Kubernetes enterprise guides (kubernetes-executor.md, pod-configuration.md, configuration.md): updated prose and examples to the new names.
Old New
LOCALSTACK_K8S_NAMESPACE K8S_NAMESPACE
LOCALSTACK_K8S_LABELS / LAMBDA_K8S_LABELS K8S_LABELS
LOCALSTACK_K8S_ANNOTATIONS K8S_ANNOTATIONS
LOCALSTACK_K8S_POD_CONFIG K8S_POD_CONFIG
LAMBDA_K8S_SECURITY_CONTEXT K8S_CONTAINER_SECURITY_CONTEXT
EKS_K8S_PROVIDER K8S_PROVIDER
EKS_STARTUP_TIMEOUT K8S_STARTUP_TIMEOUT
EKS_K3S_IMAGE_REPOSITORY K3S_IMAGE_REPOSITORY
EKS_K3S_IMAGE_TAG K3S_IMAGE_TAG
EKS_K3S_FLAGS K3S_FLAGS
EKS_K3D_CLUSTER_TOKEN K3D_CLUSTER_TOKEN
EKS_K3D_VERSION K3D_VERSION
EKS_START_K3D_LB_INGRESS K3D_START_LB_INGRESS

The old names continue to work as deprecated fallbacks and emit a warning at startup.

Fixes DOC-328

🤖 Generated with Claude Code

The Kubernetes runtime configuration variables were renamed to
cloud-agnostic names (K8S_*, K3S_*, K3D_*) in localstack-pro#7642, since
they are shared across all services that run workloads on Kubernetes
(EKS, Lambda, ECS, ...). Update the config reference and Kubernetes
guides to the new names, note the deprecated aliases, and document the
CLI v1 LOCALSTACK_-prefix behaviour.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploying localstack-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 83f978e
Status: ✅  Deploy successful!
Preview URL: https://27f35b9c.localstack-docs.pages.dev
Branch Preview URL: https://rename-k8s-eks-config-vars.localstack-docs.pages.dev

View logs

@alexrashed alexrashed changed the title Rename Kubernetes/EKS config variables to cloud-agnostic names Rename K8s/EKS config variables to cloud-agnostic names Jun 30, 2026
@alexrashed alexrashed changed the base branch from main to aws-docs-release-july June 30, 2026 14:29
@alexrashed alexrashed changed the title Rename K8s/EKS config variables to cloud-agnostic names DOC-328: Rename K8s/EKS config variables to cloud-agnostic names Jun 30, 2026
@alexrashed alexrashed marked this pull request as ready for review June 30, 2026 18:44
Comment on lines +210 to +212
The Kubernetes runtime configuration variables were renamed to cloud-agnostic names (`K8S_*`, `K3S_*`, `K3D_*`) since they are shared across all services that run workloads on Kubernetes (EKS, Lambda, ECS, …). The previous `EKS_*`, `LOCALSTACK_K8S_*`, and `LAMBDA_K8S_*` names still work as deprecated aliases and will be removed in a future release.

If you configure these options through the LocalStack CLI **v1**, keep the `LOCALSTACK_` prefix on the new names (e.g. `LOCALSTACK_K8S_PROVIDER`). The CLI v1 only forwards host environment variables prefixed with `LOCALSTACK_` into the container, where the prefix is stripped to yield the in-container variable (`K8S_PROVIDER`).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for insisting on this, but the wording here is not correct IMO.
We need to separate the Kubernetes runtime configuration variables (used in Lambda, ECS, Batch, RDS, .....) with the EKS configuration variables (which are the ones mentioned in the table above).

Maybe we can say:

"The EKS configuration variables were renamed to cloud-agnostic names since they're shared across cloud emulators (AWS EKS / Azure AKS)"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion! I updated the sentence in the last commit :)

| `EKS_K3S_IMAGE_REPOSITORY` | `rancher/k3s` (default) | Custom repository of the `rancher/k3s` image used to spin up Kubernetes clusters locally. |
| `EKS_START_K3D_LB_INGRESS` | `0` (default) | Whether to start the k3d load balancer and Traefik ingress controller automatically when creating an EKS cluster. Set to `1` to enable. |
| `K3S_IMAGE_TAG` | `v1.31.5-k3s1` (default) | Custom tag of the `rancher/k3s` image used to spin up Kubernetes clusters locally. (formerly `EKS_K3S_IMAGE_TAG`, still accepted as a deprecated alias) |
| `K8S_PROVIDER` | `k3s` (default)\|`local` | The k8s provider which should be used to start the k8s cluster backing EKS. For more information on the providers, please see [Elastic Kubernetes Service (EKS)](/aws/services/eks) (formerly `EKS_K8S_PROVIDER`, still accepted as a deprecated alias) |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something I just noticed is that this env var is no longer prefixed with EKS and it may be mixed with the rest of the K8S_* env vars which are related to the kubernetes executor. Sorry for the late observation but would it make sense to bring the EKS prefix back ? Or rename it to something different ?

@alexrashed alexrashed Jul 1, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is not EKS specific, it is also used by AKS for example. So I actually feel like this is the right name for the variable? Otherwise it would be great if you could propose an explicit alternative name which is in line with the generic usage of the variable across cloud emulators now...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well naming is hard, but I would prefer to avoid the K8S_* prefix for consistency.
wdyt about MANAGED_K8S_PROVIDER ?

btw the same stands for K8S_STARTUP_TIMEOUT. It's related to EKS/AKS but from the prefix it reads like it's something related to the Kubernetes executor / runtime.

Not a blocker though, I just raised it because it seems confusing to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants