mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 17:58:05 -05:00
In real mode `aws eks create-cluster` brought up a k3s container that was unreachable from the host and rejected every request with 401. This makes the native AWS workflow work end to end (`aws eks update-kubeconfig` + `kubectl`). - describe-cluster returns a host-reachable endpoint (https://localhost:<hostPort>), configurable via endpoint-mode (host|network), default host - token-authentication webhook (POST /_floci/eks/token-webhook) validates the `aws eks get-token` bearer token and maps it to system:masters; pins the apiserver to the v1 TokenReview API and echoes the request apiVersion - webhook kubeconfig is injected into k3s via the Docker API (create -> copy -> start), so it works in native and Docker-in-Docker with no host-path config - k3s network falls back to the global docker-network, then auto-detected Closes #1118