Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@ final class FixedPortsK3sContainer extends K3sContainer {
private static final String RANCHER_VERSION = "rancher/k3s:v1.35.4-k3s1";

/**
* Command to use when starting rancher. Without "server" option, traefik is not
* installed
* K3s startup command for integration tests.
* <li><code>server</code> starts K3s in server mode and brings up the control
* plane</li>
* <li><code>--disable=metric-server</code> disables the built-in metrics-server
* addon</li>
* <li><code>--tls-san=host.docker.internal</code> adds host.docker.internal to the
* API server certificate SANs so Dockerized test clients can connect without TLS
* hostname verification failures</li>
*/
private static final String RANCHER_COMMAND = "server --disable=metric-server";
private static final String RANCHER_COMMAND = "server --disable=metric-server --tls-san=host.docker.internal";

static final K3sContainer CONTAINER = new FixedPortsK3sContainer(DockerImageName.parse(RANCHER_VERSION))
.configureFixedPorts()
Expand Down
Loading