Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
968f7a2
chore: init-upload standard-addons
Jun 9, 2025
b712ac0
fix: install calico from pre-build images and manifest calico.yaml
Jun 9, 2025
2240b76
chore: update cgmanifest with cni-calico
Jun 10, 2025
811f026
chore: change cp to install
Jun 10, 2025
1c6c03c
chore: licenses
Jun 10, 2025
c0d14b5
feat: add network-policy spec template
Jun 10, 2025
58a574c
add calico and networkpolicy to packagelists
Jun 10, 2025
e7a10f5
Merge branch '3.0' into jokuniew-dev
Jun 10, 2025
d15fed4
chore: update cgmanifest with network-policy
Jun 10, 2025
2a72621
fix: licenses
Jun 10, 2025
01df306
fix: linter
Jun 10, 2025
650dd0a
chore: use helm to build tar.gz
Jun 11, 2025
0fb2317
chore: update cgmanifest
Jun 11, 2025
0b16f94
chore: add rename not to conflict on SOURCES
Jun 11, 2025
7336942
chore: rename to k3s-network-policy
Jun 12, 2025
3e13baf
Merge branch '3.0' into jokuniew-dev
Jun 12, 2025
55f769c
fix: imageconfigs after rename
Jun 12, 2025
27b0a92
fix: requires -> build requires due to "helm command not found"
Jun 12, 2025
ed2406a
chore: rename to k3s-calico
Jun 12, 2025
832f7d1
Merge branch '3.0' into jokuniew-dev
Jun 12, 2025
1d5fd83
fix: licenses after merge conflict
Jun 12, 2025
1ba1a74
fix: increase rootfs
Jun 13, 2025
daac6ea
chore: remove k3s-calico
Jun 16, 2025
c00a6b9
chore: remove calico from cgmanifest
Jun 17, 2025
c65fbc0
Merge branch '3.0' into jokuniew-dev
Jun 17, 2025
907a924
chore: simplify net pol to single manifest
Jun 17, 2025
80a5e01
fix: linter
Jun 17, 2025
23f3b50
fix: shasum256
Jun 17, 2025
a90d993
Revert "fix: increase rootfs"
Jun 17, 2025
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
1 change: 1 addition & 0 deletions .github/workflows/validate-cg-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ignore_no_source_tarball=" \
hyphen-mn \
initramfs \
javapackages-tools-meta \
k3s-network-policy \
kata-packages-uvm \
kde-filesystem \
kernel-uki \
Expand Down
2 changes: 1 addition & 1 deletion LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions LICENSES-AND-NOTICES/SPECS/data/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -2270,6 +2270,7 @@
"intel-lms",
"intel-npu-firmware",
"intel-xpu-smi",
"k3s-network-policy",
"node-agent",
"nvidia-data-center-driver",
"os-ab-update",
Expand Down
18 changes: 18 additions & 0 deletions SPECS/k3s-network-policy/00-kube-system.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: restrict-kube-system-ingress
namespace: kube-system
spec:
podSelector: {} # Apply to all pods in kube-system
policyTypes:
- Ingress
ingress:
- ports:
- protocol: UDP
port: 53 # DNS
- protocol: TCP
port: 10250 # kubelet metrics
- protocol: TCP
port: 6443 # kube-apiserver
5 changes: 5 additions & 0 deletions SPECS/k3s-network-policy/k3s-network-policy.signatures.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Signatures": {
"00-kube-system.yaml": "63d1c8297aec98a841100b3d6f53db79d287f4898bf0dc45ec8a4e700b4a9f8f"
}
}
27 changes: 27 additions & 0 deletions SPECS/k3s-network-policy/k3s-network-policy.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Summary: network-policy for k3s
Name: k3s-network-policy
Version: 0.1.0
Release: 1%{?dist}
License: Apache-2.0
Vendor: Intel Corporation
Distribution: Edge Microvisor Toolkit
URL: https://github.com/open-edge-platform/edge-microvisor-toolkit
Source0: 00-kube-system.yaml

BuildArch: noarch

%description
This package provides a comprehensive set of Kubernetes network policies
designed to ensure reliable k3s cluster operation within the Edge Microvisor Toolkit environment.

%install
# copy manifests and install them under /var/lib/rancher/k3s/server/manifests/network-policy/*.yaml
mkdir -p %{buildroot}/var/lib/rancher/k3s/server/manifests/network-policy
install %{_sourcedir}/00-kube-system.yaml %{buildroot}/var/lib/rancher/k3s/server/manifests/network-policy

%files
/var/lib/rancher/k3s/server/manifests/network-policy/00-kube-system.yaml

%changelog
* Tue Jun 17 2025 Julia Okuniewska <julia.okuniewska@intel.com> - 0.1.0
- Original version for Edge Microvisor Toolkit. License verified.
3 changes: 2 additions & 1 deletion toolkit/imageconfigs/edge-image-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"packagelists/intel-wireless.json",
"packagelists/os-ab-update.json",
"packagelists/vpro-amt-packages.json",
"packagelists/docker.json"
"packagelists/docker.json",
"packagelists/k3s-standard.json"
],
"AdditionalFiles": {
"additionalconfigs/layout.env": "/etc/layout.env",
Expand Down
3 changes: 2 additions & 1 deletion toolkit/imageconfigs/edge-image.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"packagelists/intel-wireless.json",
"packagelists/os-ab-update.json",
"packagelists/vpro-amt-packages.json",
"packagelists/docker.json"
"packagelists/docker.json",
"packagelists/k3s-standard.json"
],
"AdditionalFiles": {
"additionalconfigs/layout.env": "/etc/layout.env",
Expand Down
5 changes: 5 additions & 0 deletions toolkit/imageconfigs/packagelists/k3s-standard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"packages": [
"k3s-network-policy"
]
}
Loading