-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
85 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Test UDS Capability | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "docker/**" | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
test-clean-install: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup UDS | ||
if: always() | ||
uses: defenseunicorns/uds-common/.github/actions/[email protected] | ||
with: | ||
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}} | ||
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}} | ||
|
||
- name: Create and deploy the uds-k3d package | ||
run: uds run build-image |
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 |
---|---|---|
|
@@ -20,11 +20,13 @@ jobs: | |
|
||
- name: Setup UDS | ||
if: always() | ||
uses: defenseunicorns/uds-common/.github/actions/[email protected] | ||
uses: defenseunicorns/uds-common/.github/actions/[email protected] | ||
with: | ||
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}} | ||
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}} | ||
|
||
- name: Create and deploy the uds-k3d package | ||
run: uds run | ||
|
||
- name: Validate uds-k3d package | ||
run: uds run validate | ||
|
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 |
---|---|---|
|
@@ -34,7 +34,10 @@ jobs: | |
|
||
- name: Setup UDS | ||
if: always() | ||
uses: defenseunicorns/uds-common/.github/actions/[email protected] | ||
uses: defenseunicorns/uds-common/.github/actions/[email protected] | ||
with: | ||
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}} | ||
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}} | ||
|
||
- name: Login to GHCR | ||
uses: docker/login-action@v3 | ||
|
@@ -47,3 +50,6 @@ jobs: | |
run: | | ||
uds zarf package create --confirm -a arm64 -o oci://ghcr.io/defenseunicorns/packages | ||
uds zarf package create --confirm -a amd64 -o oci://ghcr.io/defenseunicorns/packages | ||
- name: Publish the custom k3s image | ||
run: uds run publish-image |
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,5 @@ | ||
ARG K3S_TAG="v1.28.7-k3s1" | ||
|
||
FROM rancher/k3s:$K3S_TAG as k3s | ||
|
||
COPY config.toml.tmpl /var/lib/rancher/k3s/agent/etc/containerd/config.toml.tmpl |
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,26 @@ | ||
version = 2 | ||
|
||
[plugins."io.containerd.internal.v1.opt"] | ||
path = "/var/lib/rancher/k3s/agent/containerd" | ||
[plugins."io.containerd.grpc.v1.cri"] | ||
stream_server_address = "127.0.0.1" | ||
stream_server_port = "10010" | ||
enable_selinux = false | ||
enable_unprivileged_ports = true | ||
enable_unprivileged_icmp = true | ||
sandbox_image = "rancher/mirrored-pause:3.6" | ||
|
||
[plugins."io.containerd.grpc.v1.cri".containerd] | ||
snapshotter = "overlayfs" | ||
disable_snapshot_annotations = true | ||
|
||
[plugins."io.containerd.grpc.v1.cri".cni] | ||
bin_dir = "/bin" | ||
conf_dir = "/var/lib/rancher/k3s/agent/etc/cni/net.d" | ||
|
||
|
||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] | ||
runtime_type = "io.containerd.runc.v2" | ||
|
||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options] | ||
SystemdCgroup = false |
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