create-vlan-network

Generate VLANs and interconnect Kubernetes worker nodes and NFS servers on demand.

Updated Jun 9, 2025
One-click install
npx skills add https://github.com/shelken/home-ops --skill create-vlan-network
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-vlan-network
Source: https://github.com/shelken/home-ops/tree/main/.claude/skills/create-vlan-network
Command: npx skills add https://github.com/shelken/home-ops --skill create-vlan-network

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

在 home-ops 环境中,管理和扩展 VLAN 网络以及 Multus 网络定义往往涉及多步骤的路由配置、K8s 节点接口和网络对象的创建。此技能提供一个自包含的工作流来简化这些操作。

Core Features & Use Cases

  • 自动化创建 VLAN 网络的路由与接口配置,确保网络分段符合规划。
  • 生成 Kubernetes NetworkAttachmentDefinition 对象以实现多网络接入。
  • 支持记录与更新文档,方便团队协作与合规。

Quick Start

Run the VLAN setup by applying the Ansible playbook or invoking the integration steps: ansible-playbook -i inventory/hosts.yaml playbooks/setup-vlan.yaml Alternatively, edit the relevant YAML files under k8s/infra/common/network/multus/networks/ and then apply.

Frequently Asked Questions about create-vlan-network

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create VLAN networks and Multus configs for a Kubernetes home-ops environment?

To create VLAN networks and Multus configs, you can apply an Ansible playbook for router and node interfaces, or manually edit YAML files for Kubernetes NetworkAttachmentDefinition objects to automate network segmentation.

What is the best way to automate adding new VLAN IDs across Kubernetes nodes and OpenWrt routers?

Automating new VLAN IDs across Kubernetes nodes and OpenWrt routers is handled by running an Ansible playbook that configures the necessary routing and interfaces, ensuring consistent network segmentation and documentation updates.

How does Multus NetworkAttachmentDefinition work with Kubernetes network segmentation?

Multus NetworkAttachmentDefinition enables Kubernetes network segmentation by attaching multiple network interfaces to pods, allowing distinct VLANs to be defined across namespaces for isolated home-ops network access.

Can I use Ansible to generate Kubernetes NetworkAttachmentDefinition objects?

Yes, you can use Ansible to generate Kubernetes NetworkAttachmentDefinition objects by executing the setup playbook, which configures router interfaces and simultaneously defines the Multus networks across your namespaces.

Do I need to manually configure OpenWrt interfaces before defining Multus networks in Kubernetes?

Manual OpenWrt interface configuration is not strictly required before defining Multus networks, as the automation workflow handles routing setup and node interface preparation alongside Kubernetes object generation.

Why are my Multus network definitions not applying across namespaces in Kubernetes?

Multus network definitions may not apply across namespaces if the VLAN configurations are incomplete; ensure the Ansible playbook successfully generates the required NetworkAttachmentDefinition objects and updates documentation.