-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Usernetes Gen2: depends on Rootless Docker on hosts
Fix issue 286 TODO: - multi-node - data persistency Signed-off-by: Akihiro Suda <[email protected]>
- Loading branch information
1 parent
745a35c
commit 965fdcf
Showing
63 changed files
with
191 additions
and
3,789 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
/kubeconfig |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,25 +1,35 @@ | ||
--- | ||
name: Main | ||
on: [push, pull_request] | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
KUBECONFIG: ./kubeconfig | ||
jobs: | ||
docker: | ||
name: "Docker" | ||
single-node: | ||
name: "Single node" | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 40 | ||
steps: | ||
- name: "System info" | ||
run: sh -xec "uname -a; docker info; cat /proc/cpuinfo; df -h" | ||
- uses: actions/checkout@v3 | ||
- name: "Make" | ||
run: make image | ||
- name: "Clean up (To avoid `node.kubernetes.io/disk-pressure` taint)" | ||
- name: Set up cgroup v2 delegation | ||
run: | | ||
make clean | ||
docker builder prune -a -f | ||
- name: "Smoke test (containerd)" | ||
run: ./hack/smoketest-docker.sh u7s-test-containerd ghcr.io/rootless-containers/usernetes --cri=containerd | ||
- name: "Smoke test (CRI-O)" | ||
run: ./hack/smoketest-docker.sh u7s-test-crio ghcr.io/rootless-containers/usernetes --cri=crio | ||
- name: "Smoke test (multi-node cluster with Flannel)" | ||
run: ./hack/smoketest-docker-compose.sh | ||
sudo mkdir -p /etc/systemd/system/[email protected] | ||
cat <<EOF | sudo tee /etc/systemd/system/[email protected]/delegate.conf | ||
[Service] | ||
Delegate=cpu cpuset io memory pids | ||
EOF | ||
sudo systemctl daemon-reload | ||
- name: Set up Rootless Docker | ||
run: | | ||
set -eux -o pipefail | ||
sudo apt-get remove moby-engine-* | ||
curl https://get.docker.com | sudo sh | ||
dockerd-rootless-setuptool.sh install -f | ||
docker info | ||
- run: make up | ||
- run: sleep 5 | ||
- run: make kubeadm-init | ||
- run: make install-flannel | ||
- run: make kubeconfig | ||
- run: kubectl taint nodes --all node-role.kubernetes.io/control-plane- | ||
- run: ./hack/smoketest.sh |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1 @@ | ||
bin/ | ||
_artifact/ | ||
.vagrant/ | ||
*.pem | ||
*.csr | ||
*.kubeconfig | ||
/kubeconfig |
Oops, something went wrong.