Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync our repo with upstream #3

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Conversation

suvl
Copy link

@suvl suvl commented Feb 7, 2025

We were some commits behind upstream, this PR syncs the upstream with our own.

This pull request includes several updates to improve compatibility and functionality by transitioning from Docker to containerd, updating the base Docker image, and adding new tools. The most important changes include modifications to the Dockerfiles, workflow files, and Kubernetes manifests.

Transition from Docker to containerd:

  • Dockerfile: Changed the base image from debian:10-slim to debian:12-slim, added installation steps for crictl, and updated the default image endpoint configuration. [1] [2]
  • README.md: Updated instructions to reflect the switch from Docker to containerd, including mounting the containerd socket and adding crictl to the list of tools. [1] [2]
  • k8s/daemonset.yaml and k8s/deployment.yaml: Replaced Docker socket mounts with containerd socket mounts and added annotations for safe eviction and DNS policy. [1] [2] [3] [4]

Workflow updates:

  • .github/workflows/release.yaml and .github/workflows/test.yaml: Added the --platform linux/amd64 flag to the docker build commands to ensure compatibility with the target platform. [1] [2]

Tooling updates:

  • Dockerfile: Added iptables, wget, and upgraded llvm from version 8 to 13. [1] [2]

Timo Reimann and others added 19 commits April 30, 2024 10:24
As a drive-by, enforce the linux/amd64 to be safe.
Workloads in the kube-system namespace would block cluster-autoscaler
from evicting workloads unless a PDB was defined (see also [1]).
Set an annotation to disregard the constraint for doks-debug which
should never block evictions and node draining.

[1]: https://github.com/kubernetes/autoscaler/blob/7c86e2813d20db8a943e69e447413ca859b92f97/cluster-autoscaler/FAQ.md#how-to-set-pdbs-to-enable-ca-to-move-kube-system-pods
doks-debug should always terminate immediately.
Never block cluster-autoscaler
These are important for node debugging.
Simplifies testing in-cluster DNS as the policy enables to query CoreDNS
for such requests.
…dnspolicy

Use ClusterFirstWithHostNet DNS policy
doks switched to containerd container runtime a while ago
(https://docs.digitalocean.com/products/kubernetes/details/changelog/#1.20.2-do.0),
so while docker is still installed on the nodes it's not useful for
debugging k8s containers anymore
addn: fix the > as for some reason it was incorrect
Add support for crictl into the base images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants