- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi experts,
SAS Viya 2023.11
When an end-user opens SAS Studio, a "compute server" type pod is launched on his behalf (correct me if I am wrong here). Question is how a cluster admin can associate a launched compute-server pod seen in the list of pods in Azure portal with an end-user?
Update: I found out that in the pod's properties there is an annotation called "sas.com/owner" which contains the UID of the owner user. I do not know how to easily locate this uid in the identities service. I know that I can find the UID given a username with the /identities/users/{{username}}/identifier endpoint but how to I find the username given the UID?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I would go for the labels associated with a pod, see the example below.
labels: app: sas-workload-orchestrator launcher.sas.com/job-type: compute-server launcher.sas.com/requested-by-client: sas.studio launcher.sas.com/username: christine sas.com/created-by: sas-launcher sas.com/deployment: sas-viya swo.sas.com/containerName: sas-programming-environment swo.sas.com/jobID: '40'
This gives you directly the userid your are after.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I would go for the labels associated with a pod, see the example below.
labels: app: sas-workload-orchestrator launcher.sas.com/job-type: compute-server launcher.sas.com/requested-by-client: sas.studio launcher.sas.com/username: christine sas.com/created-by: sas-launcher sas.com/deployment: sas-viya swo.sas.com/containerName: sas-programming-environment swo.sas.com/jobID: '40'
This gives you directly the userid your are after.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
kubectl -n namespace get pods -l launcher.sas.com/username=sasdemo
Greg Wootton | Principal Systems Technical Support Engineer