<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to match the compute server pod launched by SAS Studio with an end-user via Azure CLI or Por in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-match-the-compute-server-pod-launched-by-SAS-Studio-with/m-p/908565#M27726</link>
    <description>&lt;P&gt;I would go for the labels associated with a pod, see the example below.&lt;/P&gt;
&lt;PRE&gt;labels:
    app: sas-workload-orchestrator
    launcher.sas.com/job-type: compute-server
    launcher.sas.com/requested-by-client: sas.studio
    &lt;STRONG&gt;launcher.sas.com/username: christine&lt;/STRONG&gt;
    sas.com/created-by: sas-launcher
    sas.com/deployment: sas-viya
    swo.sas.com/containerName: sas-programming-environment
    swo.sas.com/jobID: '40'&lt;/PRE&gt;
&lt;P&gt;This gives you directly the userid your are after.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 08:38:53 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2023-12-18T08:38:53Z</dc:date>
    <item>
      <title>How to match the compute server pod launched by SAS Studio with an end-user via Azure CLI or Portal?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-match-the-compute-server-pod-launched-by-SAS-Studio-with/m-p/908516#M27723</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Viya 2023.11&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;: 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.&amp;nbsp; I know that I can find the UID given a username with the&amp;nbsp;&lt;SPAN&gt;/identities/users/{{username}}/identifier endpoint but how to I find the username given the UID?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 13:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-match-the-compute-server-pod-launched-by-SAS-Studio-with/m-p/908516#M27723</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2023-12-17T13:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to match the compute server pod launched by SAS Studio with an end-user via Azure CLI or Por</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-match-the-compute-server-pod-launched-by-SAS-Studio-with/m-p/908565#M27726</link>
      <description>&lt;P&gt;I would go for the labels associated with a pod, see the example below.&lt;/P&gt;
&lt;PRE&gt;labels:
    app: sas-workload-orchestrator
    launcher.sas.com/job-type: compute-server
    launcher.sas.com/requested-by-client: sas.studio
    &lt;STRONG&gt;launcher.sas.com/username: christine&lt;/STRONG&gt;
    sas.com/created-by: sas-launcher
    sas.com/deployment: sas-viya
    swo.sas.com/containerName: sas-programming-environment
    swo.sas.com/jobID: '40'&lt;/PRE&gt;
&lt;P&gt;This gives you directly the userid your are after.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 08:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-match-the-compute-server-pod-launched-by-SAS-Studio-with/m-p/908565#M27726</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2023-12-18T08:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to match the compute server pod launched by SAS Studio with an end-user via Azure CLI or Por</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-match-the-compute-server-pod-launched-by-SAS-Studio-with/m-p/908616#M27727</link>
      <description>As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt; mentions you can use the launcher.sas.com/username label. In the Azure Portal under the AKS cluster -&amp;gt; Workloads -&amp;gt; Pods you can add a label filter to specify the user and see the pods associated with that user that way. You could similarly use kubectl: &lt;BR /&gt;kubectl -n namespace get pods -l launcher.sas.com/username=sasdemo</description>
      <pubDate>Mon, 18 Dec 2023 14:48:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-match-the-compute-server-pod-launched-by-SAS-Studio-with/m-p/908616#M27727</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-12-18T14:48:06Z</dc:date>
    </item>
  </channel>
</rss>

