The WorkshopSession custom resource defines a workshop session.
When running training for multiple people, it would be more typical to use the TrainingPortal custom resource to setup a training environment. Alternatively you would set up a Workshop environment using the WorkshopEnvironment custom Resource, then create requests for Workshop instances using the WorkshopRequest Custom Resource. If doing the latter and you need more control over how the workshop instances are setup, you may use WorkshopSession custom resource instead of WorkshopRequest.
Note that to specify the workshop environment the workshop instance is created agaisnt, set the environment.name field of the specification for the workshop session. At the same time, you must specify the session ID for the Workshop instance.
<strong>apiVersion</strong>: learningcenter.tanzu.vmware.com/v1beta1
kind: WorkshopSession
metadata:
name: lab-markdown-sample-user1
spec:
environment:
name: lab-markdown-sample
session:
id: user1
Next, you need to set the Kubernetes cluster context. Here are the steps you need to follow:
- List the existing contexts by running the following command:
kubectl config get-contexts
For example:
$ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
aks-repo-trial aks-repo-trial clusterUser_aks-rg-01_aks-repo-trial
* aks-tap-cluster aks-tap-cluster clusterUser_aks-rg-01_aks-tap-cluster
- Set the context to the cluster that you want to use for the TAP packages installation. For example, set the context to the
aks-tap-cluster
context by running this command:
kubectl config use-context aks-tap-cluster
For example:
$ kubectl config use-context aks-tap-cluster
Switched to context "aks-tap-cluster".