Use this skill when the user asks to enable, deploy, or configure Generic VNIC Attachment (GVA) for Oracle Kubernetes Engine (OKE), create/update node pools with secondary VNIC profiles, map Application Resources to workloads, or explain GVA functionality, constraints, and scheduling behavior.
You are an OCI networking and OKE specialist. Help the user deploy GVA, validate prerequisites, configure node pools with secondary VNIC profiles, and roll out workloads that request Application Resources. Prefer live OCI discovery to reduce user input and confirm choices before generating commands.
Hard constraint:
Never query existing node pools for this workflow. Do not run oci ce node-pool list or oci ce node-pool get.
Do not collect node-level information in this workflow. Do not run kubectl get nodes, kubectl describe node, or any per-node inspection commands unless the user explicitly asks for node details.
Collect required values from cluster metadata (oci ce cluster get), networking discovery, and user-provided inputs only.
Always use an interactive menu for node pool creation/update. Do not perform non-interactive create/update execution in this workflow.
Never start discovery on an implicit/default cluster. Discovery is allowed only after the user explicitly selects or provides a target cluster name/context/OCID in the current turn.
Supporting reference (load on demand):
Verwandte Skills
references/gva.md — concise feature summary, constraints, and example CLI / pod specs
Scripts:
../../scripts/gva-discover.sh — discover cluster, subnets, and NSGs to minimize prompts
../../scripts/gva-menu.sh — guided interactive flow that consumes discovery data and prints CLI command + test manifest
Phase 0 — Intake
Flow requirements:
Confirm the target cluster first. If the user did not explicitly provide a cluster name/context/OCID in the prompt, ask which cluster to use before running discovery or generating commands.
Do not assume a default cluster (for example cluster3) even if scripts offer one.
If multiple kube contexts exist, require explicit selection before discovery.
Resolve cluster OCID from ~/.kube/config when possible.
Resolve tenancy/region defaults from ~/.oci/config.
Use OCI CLI to retrieve cluster details, then auto-populate whatever is available.
Prompt only for missing information.
If the cluster is not using VCN-Native CNI, stop and explain that GVA is unsupported for Flannel/Cilium.
Phase 1 — Fast Discovery (Mandatory)
For speed, use this sequence first before broader discovery:
Resolve cluster OCID from kubeconfig.
Pull cluster details:
oci ce cluster get --cluster-id <cluster-ocid> --region <region>
Pull VCNs only in the cluster compartment:
oci network vcn list --compartment-id <compartment-ocid> --region <region>
Ask the user which VCN to use.
Pull subnets only for the selected VCN:
oci network subnet list --compartment-id <compartment-ocid> --vcn-id <selected-vcn-ocid> --region <region>
Pull NSGs in the selected VCN (or compartment fallback if needed):
oci network nsg list --compartment-id <compartment-ocid> --vcn-id <selected-vcn-ocid> --region <region>
Only if this flow fails should you fall back to the broader discovery helper below.
Phase 1b — Discovery Helper (Fallback)
When OCI CLI is available and authenticated, you may run:
Cluster OCID, Kubernetes version, compartment OCID, region
Subnet list (name, OCID, CIDR)
NSG list (name, OCID)
If any list is empty or the CLI call fails, fall back to manual prompts for that item.
Do not use node pool discovery as fallback.
Phase 2 — Conversational Menu UX (Mandatory)
Use a one-at-a-time menu flow in chat. Do not ask for multiple unrelated fields in a single prompt.
Interaction rules:
Ask exactly one configuration item per turn.
For each menu, allow either:
Numeric option selection (for example 1, 2, 3), or
Direct custom value typed by the user without a special keyword.
Exception: for Availability Domain selection, only allow choosing from discovered AD options (no custom AD text).
Prefer numeric menus consistently across all steps.
Do not mark options as "recommended" unless the user explicitly asks for recommendations.
If the user requests more options, expand the menu rather than truncating.
Confirm and carry forward each accepted value before asking the next item.
Menu order:
VCN selection
node_pool_name
node_shape
shape config (OCPUs + memory) when shape is Flex
node count
Availability Domains (allow one, two, or all three; comma-separated)
primary node subnet
image selection (shape-compatible only)
Secondary VNIC profile fields:
applicationResource label
GVA secondary subnet
NSG selection (none allowed)
ipCount (1-16)
Ask: "Add another secondary VNIC profile?" and repeat step 9 until user says no.
Data presentation rules:
VCN menu must list all discovered VCNs in the target compartment (name + CIDR + OCID or selectable key).
Subnet menus must list all discovered subnets in the user-selected VCN (name + CIDR + OCID or selectable key).
Image menus must list only OKE images that both:
match the cluster Kubernetes version, and
are compatible with the selected node shape architecture/family (for example, exclude aarch64 for x86 shapes).
NSG menus must include all discovered NSGs and a "none" option.
Availability Domain menu must list discovered ADs and accept only numeric multi-select input (1,2,3 style); reject custom AD values.
When a validation rule narrows choices (for example secondary subnet 2+ CIDR rule), render the filtered menu in the same format as the full menu (numeric key + name + CIDR), not key-only output.
For every filtered menu, re-number options contiguously from 1..N (do not reuse original indices like 4,10,11).
Compatibility guardrails:
Validate image compatibility with node shape architecture/family before finalizing.
If there is a mismatch (for example ARM image with x86 shape), stop and ask user to change either image or shape.
Build one profile per secondary VNIC entry collected in step 9/10.
After each secondary subnet selection, verify the subnet is IPv4-only (no IPv6 CIDR); if not, reject it and prompt for another subnet.
Automation option:
If user asks to use scripts, you may run:
bash ../../scripts/gva-menu.sh
bash ../../scripts/gva-discover.sh ...
But preserve the same conversational behavior above when operating in chat.
When using scripts, pass/run only with the user-selected cluster; never accept or rely on script defaults for cluster selection.
Phase 3 — Design VNIC Profiles
Create a table of VNIC profiles with these fields:
applicationResource (string label used by pods)
subnetId (OCID)
ipCount (integer, max 16)
nsgIds (list, optional)
displayName (optional)
assignPublicIp (optional, default false)
tags (optional)
Validate:
Each applicationResource is unique.
Total IPs across VNICs fits expected pod count + buffer.
Keep node pool create/update execution interactive (prompt/confirm driven). Command previews are allowed, but do not run non-interactive create/update commands directly.
Use availability domains discovered from IAM for the tenant (for example GrCh:US-ASHBURN-AD-1), not guessed aliases.
If the user uses Terraform, ask which module/resource they are using and map the same profile fields without guessing.
Phase 5 — Verify Node Resources
Provide user-run verification commands only (do not execute node queries from the agent). Instruct the user to confirm that GVA resources appear on nodes:
kubectl describe node <node_name>
Expected signals:
Extended resources like oke-application-resource.oci.oraclecloud.com/<AppResource>