mirror of
https://github.com/apple/container.git
synced 2026-10-14 18:19:17 +00:00
K8s plugin: support no CNI on create (#2277)
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
This commit is contained in:
1 parent
dbd5ca0840
commit
2ef8aef92a
9 files changed
+170
-46
No files matched your search
@@ -1633,7 +1633,7 @@ container k8s create [--name <name>] [--node-image <image>] [--cni <path>] [--rm
|
||||
|
||||
* `--name <name>`: Cluster name (default: `k8s-dev`)
|
||||
* `--node-image <image>`: Node image reference (default: `docker.io/kindest/node:v1.35.5`)
|
||||
* `--cni <path>`: Optional path to a CNI manifest to apply. If not provided, the bundled kindnet CNI is used.
|
||||
* `--cni <path>`: Optional path to a CNI manifest to apply, or `NONE` (case-insensitive) to skip installing a CNI. If not provided, the bundled kindnet CNI is used. With `NONE`, the command returns without waiting for nodes to become `Ready`, since that requires a CNI; apply your own afterward with `kubectl apply`.
|
||||
* `--rm`: Remove the cluster container after it stops
|
||||
|
||||
**Resource Options**
|
||||
@@ -1663,6 +1663,9 @@ container k8s create --name temp-cluster --rm
|
||||
|
||||
# create a cluster using a custom CNI manifest instead of the bundled kindnet
|
||||
container k8s create --cni ./my-cni.yaml
|
||||
|
||||
# create a cluster with no CNI installed
|
||||
container k8s create --cni NONE
|
||||
```
|
||||
|
||||
### `container k8s delete (rm)`
|
||||
|
||||
Reference in new issue
Block a user