refined-memory-5162512/07/2022, 8:53 PM
wide-garage-946512/07/2022, 9:01 PM
it'll remember the state of thingsCluster state is stored in etcd/sqlite inside the K3s containers. The K3s' containers' state is saved in Docker's overlayfs.
how can I modify the start-up options of a clusterWhat start-up options do you mean?
refined-memory-5162512/07/2022, 9:04 PM
wide-garage-946512/07/2022, 9:06 PM
so when I restart the cluster does it create new containers or just restart the previous one, thus restoring state?If you mean
, that's just stopping and starting the same docker containers. k3d itself doesn't handle any state.
k3d cluster stop && k3d cluster start
I was thinking of changing the --api-port of an already created cluster.Modifying already running clusters is extremely limited, influenced by the limitations that the docker wrapper brings. But you can change the port-mapping for example. See
for those options.
k3d cluster edit
refined-memory-5162512/07/2022, 9:07 PM
wide-garage-946512/07/2022, 9:07 PM