Skip to content

Commit

Permalink
Update vcluster command examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Sep 23, 2023
1 parent 5363828 commit fd4f2d4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
5 changes: 3 additions & 2 deletions workshops/lab-command-vcluster/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Workshop
Command vcluster
================

Workshop description
A workshop demonstrating creation of a virtual cluster using the `vcluster` CLI.
3 changes: 3 additions & 0 deletions workshops/lab-command-vcluster/exercises/vcluster-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sync:
ingresses:
enabled: true
3 changes: 2 additions & 1 deletion workshops/lab-command-vcluster/resources/workshop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ spec:
includePaths:
- /workshop/**
- /resources/**
- /README.md
- /exercises/**
- README.md
excludePaths:
- /workshop/.hugo_build.lock
- /workshop/resources/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@
title: Workshop Overview
---

```terminal:execute
session: vcluster
command: vcluster create test --extra-values ~/exercises/vcluster-values.yaml --connect
```

```terminal:execute
session: vcluster
command: vcluster create test --connect
```

```editor:open-file
file: ~/exercises/vcluster-values.yaml
```

```terminal:execute
command: vcluster list
```
Expand Down Expand Up @@ -51,6 +60,18 @@ command: kubectl get serviceaccounts --context educates --namespace default
name: Console
```

```terminal:execute
command: helm install --set ingress.enabled=true --set ingress.hostname=apache-{{< param session_name >}}.{{< param ingress_domain >}} httpd oci://registry-1.docker.io/bitnamicharts/apache
```

```terminal:execute
command: kubectl rollout status deployment/httpd-apache
```

```terminal:execute
command: curl http://apache-{{< param session_name >}}.{{< param ingress_domain >}}
```

```terminal:execute
command: vcluster delete test
```
Expand Down

0 comments on commit fd4f2d4

Please sign in to comment.