UDPRoute orphan checking
Problem Statement
During #41 orphan checking was not added instead opting to follow up as that PR was already getting quite large. This PR is that follow-up: Orphaned UDPRoutes (e.g. the GatewayClass or Gateway become unmanaged, deleted, e.t.c.) need to be de-configured from the dataplane.
Prerequisites
- [x] #41
Acceptance Criteria
- [ ] with a valid and configured
UDPRoutein place, if I delete itsGatewayorGatewayClassits configuration gets removed from the dataplane
Hi @shaneutt! Can I work on this one?
Sure thing sounds great, thanks @levikobi let us know if you need any assistance!
/assign @levikobi /remove-label help-wanted
I've recently switched to a new computer, and I can't seem to be able to pull ghcr.io/kubernetes-sigs/blixt-controlplane:latest anymore.. I've logged in to ghcr.io with my github user, but I'm getting Error response from daemon: denied when trying to pull. Any idea what I'm missing here?ππ»
This relates to #106 and the fact that we need to move our images to the standard k8s image registry.
The ghcr.io images are private at the moment while we work on that transition as the kubernetes-sigs org doesn't want ghcr.io used for projects. I don't seem to be able to change any permissions on those.
What I've been doing, and something you can do in the meantime is to build the images locally:
$ make build.all.images
Does that work for you in the interim? Or is this still in your way?
When trying to build the data plane image, the build fails with the following error (I'm on a mac with an ARM chip):
=> CANCELED [internal] load metadata for docker.io/library/alpine:latest 0.6s
=> ERROR [internal] load metadata for docker.io/library/archlinux:latest 0.6s
------
> [internal] load metadata for docker.io/library/archlinux:latest:
------
Dockerfile:1
--------------------
1 | >>> FROM archlinux as builder
2 |
3 | RUN pacman -Syu --noconfirm
--------------------
ERROR: failed to solve: archlinux: no match for platform in manifest sha256:1f83ba0580a15cd6ad1d02d62ad432ddc940f53f07d0e39c8982d6c9c74e53e0: not found
So I've tried building using docker buildx build --platform linux/amd64, but then it fails with:
=> ERROR [builder 2/13] RUN pacman -Syu --noconfirm 1.5s
------
> [builder 2/13] RUN pacman -Syu --noconfirm:
0.152 :: Synchronizing package databases...
1.438 core downloading...
1.438 extra downloading...
1.438 error: failed retrieving file 'core.db' from geo.mirror.pkgbuild.com : SSL certificate problem: unable to get local issuer certificate
1.438 error: failed retrieving file 'extra.db' from geo.mirror.pkgbuild.com : SSL certificate problem: unable to get local issuer certificate
1.438 error: failed retrieving file 'core.db' from mirror.rackspace.com : SSL certificate problem: unable to get local issuer certificate
1.438 error: failed retrieving file 'extra.db' from mirror.rackspace.com : SSL certificate problem: unable to get local issuer certificate
1.438 error: failed retrieving file 'extra.db' from mirror.leaseweb.net : SSL certificate problem: unable to get local issuer certificate
1.438 error: failed retrieving file 'core.db' from mirror.leaseweb.net : SSL certificate problem: unable to get local issuer certificate
1.439 error: failed to synchronize all databases (download library error)
------
Dockerfile:3
--------------------
1 | FROM archlinux as builder
2 |
3 | >>> RUN pacman -Syu --noconfirm
4 | RUN pacman -S base-devel protobuf rustup --noconfirm
5 |
--------------------
ERROR: failed to solve: process "/bin/sh -c pacman -Syu --noconfirm" did not complete successfully: exit code: 1
I don't want to grab too much of your time, just wanted to keep you updated. I'll keep debugging this (however if you've encountered that problem before I would love to hear about itπ )
I only use Linux, and have not run into this. @astoycos have you run into stuff like this?
I've recently switched to a new computer, and I can't seem to be able to pull ghcr.io/kubernetes-sigs/blixt-controlplane:latest anymore.. I've logged in to ghcr.io with my github user, but I'm getting Error response from daemon: denied when trying to pull. Any idea what I'm missing here?ππ»
I followed the Readme.md but got the same problem, and I tried to fix it, but I don't know if it is correct.
step1: build images locally
make build.all.images
after build success, get images like shell
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ghcr.io/kubernetes-sigs/blixt-udp-test-server integration-tests c81edd464d8c 7 minutes ago 13.1MB
ghcr.io/kubernetes-sigs/blixt-dataplane integration-tests 555fec176377 7 minutes ago 19.9MB
ghcr.io/kubernetes-sigs/blixt-controlplane integration-tests 662e7aa906d7 11 minutes ago 62.7MB
step2: replace images for default
replace latest images to integration-tests which build locally
diff --git a/config/dataplane/dataplane.yaml b/config/dataplane/dataplane.yaml
index 042db12..fd2de06 100644
--- a/config/dataplane/dataplane.yaml
+++ b/config/dataplane/dataplane.yaml
@@ -20,7 +20,7 @@ spec:
hostNetwork: true
containers:
- name: dataplane
- image: ghcr.io/kubernetes-sigs/blixt-dataplane:latest
+ image: ghcr.io/kubernetes-sigs/blixt-dataplane:integration-tests
securityContext:
privileged: true
args: ["-i", "eth0"]
diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml
index b4ce802..f028503 100644
--- a/config/manager/manager.yaml
+++ b/config/manager/manager.yaml
@@ -38,7 +38,7 @@ spec:
- /manager
args:
- --leader-elect
- image: ghcr.io/kubernetes-sigs/blixt-controlplane:latest
+ image: ghcr.io/kubernetes-sigs/blixt-controlplane:integration-tests
imagePullPolicy: IfNotPresent
name: manager
securityContext:
step3: kind load images
kind load docker-image -n blixt-dev ghcr.io/kubernetes-sigs/blixt-udp-test-server:integration-tests
kind load docker-image -n blixt-dev ghcr.io/kubernetes-sigs/blixt-dataplane:integration-tests
kind load docker-image -n blixt-dev ghcr.io/kubernetes-sigs/blixt-controlplane:integration-tests
step4: deploy
kubectl apply -k config/default
and get pods
kubectl -n blixt-system get pods
NAME READY STATUS RESTARTS AGE
blixt-controlplane-b846c79d5-t64wk 2/2 Running 0 7m35s
blixt-dataplane-88ssq 1/1 Running 0 7m35s
Hi @tzssangglass, can you please share which OS/Arch you're using? I guess it's Linux/AMD?
hi @levikobi Linux ubuntu
Note that this is now blocked on https://github.com/kubernetes-sigs/blixt/milestone/8, and the work should be done in the upcoming Rust control-plane afterwards.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale