[Request]: container cluster create: kubeadm config patches, extra mounts, and node labels
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- kubernetes, swift
- Lĩnh vực
- cli, infrastructure
Hướng nghiên cứu
Start with the container cluster create implementation and the related k8s plugin work in #2043; the issue does not name source files or tests. Compare the existing create options with the requested kubeadm patches, node mounts, labels, and readiness wait, then determine which configuration approach the project supports. Done means the selected create-time options are implemented and documented, with coverage for their behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature or enhancement request details
I've been trying container cluster create as a drop-in for Kind in a tool that spins up throwaway clusters to compare Kubernetes schedulers. Most of it maps over nicely (--node-image, --workers, write-config, --shared-image-store), but there are three Kind config features I couldn't find a way to express:
- kubeadm config patches (Kind's
kubeadmConfigPatches) - extra mounts into a node (Kind's per-node
extraMounts) - node labels (Kind's per-node
labels)
The concrete case: running kube-scheduler with a custom KubeSchedulerConfiguration. With Kind, that's a file mounted into the control-plane node plus a ClusterConfiguration patch that adds --config to the scheduler:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraMounts:
- hostPath: ./kube-scheduler.yaml
containerPath: /etc/kubernetes/scheduler-config.yaml
readOnly: true
- role: worker
labels:
example/role: system
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta4
kind: ClusterConfiguration
scheduler:
extraArgs:
- name: config
value: /etc/kubernetes/scheduler-config.yaml
extraVolumes:
- name: scheduler-config
hostPath: /etc/kubernetes/scheduler-config.yaml
mountPath: /etc/kubernetes/scheduler-config.yaml
readOnly: true
pathType: File
Workaround today (container 1.7.1): after cluster create, container exec the config file into the node and rewrite /etc/kubernetes/manifests/kube-scheduler.yaml so kubelet restarts the static pod with --config. It works — /configz shows the custom profiles and the scheduler is Ready again in ~25s — but it restarts a control-plane component after bootstrap and relies on kubeadm's manifest layout. Labels are easy enough to add afterwards with kubectl label node, but mounts and patches really want to happen at create time.
What would help, either of:
- The
--config <path>option mentioned under "Future Work" in #2043 — ideally accepting Kind'skind.x-k8s.io/v1alpha4Clusterschema (or a documented subset of it), which would make porting existing Kind setups close to free. - Or individual flags, something like:
container cluster create --name lab \ --kubeadm-config-patch ./scheduler-patch.yaml \ --mount ./kube-scheduler.yaml:/etc/kubernetes/scheduler-config.yaml:ro \ --workers count=1,label=example/role=system
A smaller related nicety: a --wait <duration> for node readiness, like kind create cluster --wait 180s, so scripts don't need a separate kubectl wait.
Related: #2043 (k8s plugin), #2468 (network/MTU options for cluster create), #2382 (skipping kube-proxy).
Code of Conduct
- I agree to follow this project's Code of Conduct
- Ngôn ngữ chính
- Swift
- Star
- 51.9k
- Fork
- 1.8k
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 27
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apple/container
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Kernel download ignores credentials in HTTPS_PROXY and fails with proxyAuthenticationRequiredĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apple/container#2499 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: `container machine logs -f` exits immediately when the log is emptyCó thể đã có người làm @srivilliamsai đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apple/container#2492 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Intermittent failure in PathUtilsTests.testNewDirectoryIsExcludedAndExistingChoiceIsKeptĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
apple/container#2474 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Request]: container ls --filter label=key=valueCó thể đã có người làm @kavix đã nhận 21 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apple/container#2403 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apple/container
Issue tương tự
-
compiler diagnostics quality ownership SIL ownership
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
T-Defect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
element-hq/element-x-ios#6536 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Switch to new string APIĐang mởfxios-coreexperience
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
mozilla-mobile/firefox-ios#36661 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
manaflow-ai/cmux#45713 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày