-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: add support for crio based e2e tests
A new parameter CONTAINER_RUNTIME is added. Default value is "containerd". Set the value to "crio" to execute e2e tests on a crio based kind cluster. Signed-off-by: Pradipta Banerjee <[email protected]>
- Loading branch information
Showing
5 changed files
with
83 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
networking: | ||
disableDefaultCNI: true # disable kindnet | ||
podSubnet: 192.168.0.0/16 # set to Calico's default subnet | ||
nodes: | ||
- role: control-plane | ||
# Instructions to build - https://github.com/cri-o/cri-o/blob/main/tutorials/crio-in-kind.md#build-node-image | ||
image: quay.io/confidential-containers/kind-crio:v1.29.4 | ||
extraMounts: | ||
# The config.json file contains the registry secrets that you might | ||
# need to pull images from a private registry or docker registry to avoid | ||
# rate limiting. | ||
- hostPath: /tmp/config.json | ||
containerPath: /var/lib/kubelet/config.json | ||
kubeadmConfigPatches: | ||
- | | ||
kind: InitConfiguration | ||
nodeRegistration: | ||
criSocket: unix:///var/run/crio/crio.sock | ||
- | | ||
kind: JoinConfiguration | ||
nodeRegistration: | ||
criSocket: unix:///var/run/crio/crio.sock | ||
- role: worker | ||
image: quay.io/confidential-containers/kind-crio:v1.29.4 | ||
extraMounts: | ||
- hostPath: /var/run/docker.sock | ||
containerPath: /var/run/docker.sock | ||
- hostPath: /var/lib/docker | ||
containerPath: /var/lib/docker | ||
# The config.json file contains the registry secrets that you might | ||
# need to pull images from a private registry or docker registry to avoid | ||
# rate limiting. | ||
- hostPath: /tmp/config.json | ||
containerPath: /var/lib/kubelet/config.json | ||
kubeadmConfigPatches: | ||
- | | ||
kind: JoinConfiguration | ||
nodeRegistration: | ||
criSocket: unix:///var/run/crio/crio.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters