refined-memory-51625
12/07/2022, 8:53 PMwide-garage-9465
12/07/2022, 9:01 PMit'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-51625
12/07/2022, 9:04 PMwide-garage-9465
12/07/2022, 9:06 PMso when I restart the cluster does it create new containers or just restart the previous one, thus restoring state?If you mean
k3d cluster stop && k3d cluster start
, that's just stopping and starting the same docker containers. k3d itself doesn't handle any state.
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
k3d cluster edit
for those options.refined-memory-51625
12/07/2022, 9:07 PMwide-garage-9465
12/07/2022, 9:07 PM