Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: init kperf-vc-nodepool add subcommand #17

Merged
merged 4 commits into from
Jan 3, 2024

Conversation

fuweid
Copy link
Collaborator

@fuweid fuweid commented Jan 3, 2024

The users can use that following command to create a new virtual node
pool.

$ bin/kperf vc nodepool add vc-kperf-1
$ bin/kperf vc nodepool add vc-kperf-2 --nodes 1 --cpu 128 --memory 180
$ kubectl get nodes | grep vc-kperf-
vc-kperf-1-0                          Ready    agent   4m40s   fake
vc-kperf-1-1                          Ready    agent   4m40s   fake
vc-kperf-1-2                          Ready    agent   4m40s   fake
vc-kperf-1-3                          Ready    agent   4m40s   fake
vc-kperf-1-4                          Ready    agent   4m40s   fake
vc-kperf-1-5                          Ready    agent   4m40s   fake
vc-kperf-1-6                          Ready    agent   4m40s   fake
vc-kperf-1-7                          Ready    agent   4m40s   fake
vc-kperf-1-8                          Ready    agent   4m40s   fake
vc-kperf-1-9                          Ready    agent   4m40s   fake
vc-kperf-2-0                          Ready    agent   3m20s   fake

That nodepool is managed by helm charts. The users can also use helm
command to check.

$ helm -n virtualnodes-kperf-io get values vc-kperf-1
USER-SUPPLIED VALUES:
controllerNodeSelectors: {}
cpu: 8
memory: 16
name: vc-kperf-1
nodeLabels: {}
replicas: 10

$ helm -n virtualnodes-kperf-io get values vc-kperf-2
USER-SUPPLIED VALUES:
controllerNodeSelectors: {}
cpu: 128
memory: 180
name: vc-kperf-2
nodeLabels: {}
replicas: 1

Since we don't have kperf-vc-nodepool del, we should use helm to
cleanup nodepools.

$ helm -n virtualnodes-kperf-io uninstall vc-kperf-1
$ helm -n virtualnodes-kperf-io uninstall vc-kperf-2

Signed-off-by: Wei Fu [email protected]

fuweid added 4 commits January 3, 2024 13:20
The users can use that following command to create a new virtual node
pool.

```bash
$ bin/kperf vc nodepool add vc-kperf-1
$ bin/kperf vc nodepool add vc-kperf-2 --nodes 1 --cpu 128 --memory 180
$ kubectl get nodes | grep vc-kperf-
vc-kperf-1-0                          Ready    agent   4m40s   fake
vc-kperf-1-1                          Ready    agent   4m40s   fake
vc-kperf-1-2                          Ready    agent   4m40s   fake
vc-kperf-1-3                          Ready    agent   4m40s   fake
vc-kperf-1-4                          Ready    agent   4m40s   fake
vc-kperf-1-5                          Ready    agent   4m40s   fake
vc-kperf-1-6                          Ready    agent   4m40s   fake
vc-kperf-1-7                          Ready    agent   4m40s   fake
vc-kperf-1-8                          Ready    agent   4m40s   fake
vc-kperf-1-9                          Ready    agent   4m40s   fake
vc-kperf-2-0                          Ready    agent   3m20s   fake
```

That nodepool is managed by helm charts. The users can also use `helm`
command to check.

```bash
$ helm -n virtualnodes-kperf-io get values vc-kperf-1
USER-SUPPLIED VALUES:
controllerNodeSelectors: {}
cpu: 8
memory: 16
name: vc-kperf-1
nodeLabels: {}
replicas: 10

$ helm -n virtualnodes-kperf-io get values vc-kperf-2
USER-SUPPLIED VALUES:
controllerNodeSelectors: {}
cpu: 128
memory: 180
name: vc-kperf-2
nodeLabels: {}
replicas: 1
```

Since we don't have kperf-vc-nodepool del, we should use `helm` to
cleanup nodepools.

```bash
$ helm -n virtualnodes-kperf-io uninstall vc-kperf-1
$ helm -n virtualnodes-kperf-io uninstall vc-kperf-2
```

Signed-off-by: Wei Fu <[email protected]>
@fuweid fuweid force-pushed the weifu/support-virtualnodes-add branch from 0260a2e to ef4908e Compare January 3, 2024 13:21
@fuweid fuweid merged commit d7e34e7 into Azure:main Jan 3, 2024
4 checks passed
@fuweid fuweid deleted the weifu/support-virtualnodes-add branch January 3, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant