docs: k8s CNI with Cilium example in docs/kubernetes.md
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- helm, kubernetes, linux
- Domain
- documentation, networking
Research direction
Start with the Cilium example in docs/kubernetes.md and reproduce the commands using the recommended kernel. Review the Cilium agent error about the missing CONFIG_NETFILTER_XT_MATCH_SOCKET capability, then update the example or its surrounding guidance so the documented setup has an explicit, verifiable requirement for egress to work.
Written by the indexing model from the issue text.
Description
I have done the following
- I have searched the existing issues
- If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
Use the recommended kernel (container system kernel set --recommended, 6.18.35),
then follow "Example: Cilium" in docs/kubernetes.md:
helm repo add cilium https://helm.cilium.io/
helm repo update
helm template cilium cilium/cilium --version 1.20.1 --namespace kube-system --set ipam.mode=kubernetes > cilium.yaml
container k8s create --name cilium-demo --cni ./cilium.yaml
Then test egress from a pod:
kubectl --context cilium-demo run t --image=busybox:1.37 --restart=Never --rm -i -- nslookup example.com
kubectl --context cilium-demo run t --image=busybox:1.37 --restart=Never --rm -i -- wget -qO- -T5 http://1.1.1.1
Problem description
The cluster looks healthy,
k8s createexits 0.- All pods are Running.
- Cluster DNS works.
but pods cannot reach anything outside the cluster.
- External DNS and internet by IP time out.
- CoreDNS cannot reach its upstream:
read udp 10.244.0.53:45400->192.168.64.1:53: i/o timeout
Cause: the kernel has no CONFIG_NETFILTER_XT_MATCH_SOCKET.
See in Cilium agent logs:
level=error msg="iptables rules full reconciliation failed, will retry another one later"
error="failed to install rules: cannot install static proxy rules: unable to run
'iptables -t mangle -A CILIUM_PRE_mangle -m socket --transparent ...'
stderr=\"Warning: Extension socket revision 0 not supported, missing kernel module? ...\""
Expected: the documented example gives a working cluster, or the docs say what is missing.
Environment
- OS: macOS 27.0.1 (26A434)
- Xcode: 27.0 (27A266a)
- Container: container CLI version 1.5.0 (build: release, commit: d265d66)
- Kernel: 6.18.35 (vmlinux-6.18.35-197-debug, the recommended kernel for 1.5.0)
- Cilium: 1.20.1 (Helm chart, as in the docs).
Code of Conduct
- I agree to follow this project's Code of Conduct
- Dominant language
- Swift
- Stars
- 50.7k
- Forks
- 1.8k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 31
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apple/container
-
[Request]: container ls --filter label=key=valuePossibly taken @gerardrecinto claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apple/container#2403 · 1 comment ·
Maintainers usually reply within 1 day
-
[Request]: Improve robustness and path resolution in ensure-hawkeye.shPossibly taken @denizguney claimed this 13 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
[Bug]: kernel download hangs forever when the server stops sendingPossibly taken @devops-thiago claimed this 15 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
[Bug]: container export -o deletes an existing directoryPossibly taken @devops-thiago claimed this 15 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Bug]: --mount and -v accept a relative container path and mount it at /<path>Possibly taken @devops-thiago claimed this 15 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
Similar issues
-
ace documentation
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
githubnext/desktop-tools#104 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
type: cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
googleapis/google-cloud-swift#1477 ·
Maintainers usually reply within 1 day
-
product / auth product / console product / databases product / messaging product / self-hosted product / sites product / storage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
P1 status: first-line-handled status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
a2ui-project/a2ui#3282 · 1 comment ·
Maintainers usually reply within 2 days