Skip to content

Commit 0546451

Browse files
Remove k8s start command for now
Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
1 parent 4e7dce6 commit 0546451

4 files changed

Lines changed: 10 additions & 100 deletions

File tree

‎Sources/ContainerK8s/Commands/K8sStart.swift‎

Lines changed: 0 additions & 74 deletions
This file was deleted.

‎Sources/Plugins/K8s/K8sCommand.swift‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public struct K8sCommand: AsyncParsableCommand {
5252
K8sDelete.self,
5353
K8sList.self,
5454
K8sLoadImage.self,
55-
K8sStart.self,
5655
K8sWriteConfig.self,
5756
]
5857
)

‎docs/command-reference.md‎

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,30 +1649,6 @@ container k8s create --name temp-cluster --rm
16491649
container k8s create --cni ./my-cni.yaml
16501650
```
16511651

1652-
### `container k8s start`
1653-
1654-
Starts a stopped Kubernetes cluster and refreshes its entry in `~/.kube/config` (the container IP can change between starts).
1655-
1656-
**Usage**
1657-
1658-
```bash
1659-
container k8s start [--name <name>] [--debug]
1660-
```
1661-
1662-
**Options**
1663-
1664-
* `--name <name>`: Cluster name (default: `k8s-dev`)
1665-
1666-
**Examples**
1667-
1668-
```bash
1669-
# start the default cluster
1670-
container k8s start
1671-
1672-
# start a named cluster
1673-
container k8s start --name my-cluster
1674-
```
1675-
16761652
### `container k8s delete (rm)`
16771653

16781654
Stops and deletes a Kubernetes cluster container and removes its entry from `~/.kube/config`.
@@ -1749,7 +1725,7 @@ container k8s load-image --platform linux/amd64 my-app:latest
17491725

17501726
### `container k8s write-config`
17511727

1752-
Fetches the current kubeconfig from a running cluster and merges its context into a kubeconfig file. Use this to refresh credentials after a cluster restart or to write to an alternate config file.
1728+
Fetches the current kubeconfig from a running cluster and merges its context into a kubeconfig file. Use this to write to an alternate config file.
17531729

17541730
**Usage**
17551731

‎docs/kubernetes.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,15 @@ To have a cluster automatically remove itself when stopped, create it with `--rm
199199
container k8s create --name temp-cluster --rm
200200
```
201201

202+
### Recovering a stopped cluster
203+
204+
If a cluster's control plane node stops (for example, after `container stop`), delete and re-create the cluster:
205+
206+
```bash
207+
container k8s delete --name my-cluster
208+
container k8s create --name my-cluster
209+
```
210+
202211
## Common workflows
203212

204213
### Test a deployment locally before production

0 commit comments

Comments
 (0)