<?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: mount azure fileshare as NFS cas data mounts in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/mount-azure-fileshare-as-NFS-cas-data-mounts/m-p/796311#M23798</link>
    <description>&lt;P&gt;There are two types of mounts in the example file you are using, a "hostPath" mount and an "NFS" mount. You are trying to use an NFS mount so the hostPath mount (which mounts a path on the kubernetes node into the pod) is not needed here, so the hostpath example section should be removed.&lt;BR /&gt;In the NFS section you are specifying the host name as "/domfilestorage.file.core.windows.net/inbound", which is not a valid hostname. You would need to provide the NFS hostname and share in the volume section.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, this creates a patchTransformer called "data-mount-cas" which mounts the nfs share nfs.example.com:/share to /mnt/share in the cas pod:&lt;/P&gt;
&lt;PRE&gt;apiVersion: builtin
kind: PatchTransformer
metadata:
  name: data-mount-cas
patch: |-
  ## NFS path example - kubernetes will mount these for you
  - op: add
    path: /spec/controllerTemplate/spec/containers/0/volumeMounts/-
    value:
      name: share
      mountPath: "/mnt/share"
  - op: add
    path: /spec/controllerTemplate/spec/volumes/-
    value:
     name: share
     nfs:
       path: /share
       server: nfs.example.com
target:
  kind: CASDeployment
  annotationSelector: sas.com/sas-access-config=true&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Feb 2022 16:13:57 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2022-02-15T16:13:57Z</dc:date>
    <item>
      <title>mount azure fileshare as NFS cas data mounts</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/mount-azure-fileshare-as-NFS-cas-data-mounts/m-p/796221#M23797</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to mount my Azure fileshare as NFS cas data mounts. My data-mounts-cas.yaml file look something like this:&lt;/P&gt;&lt;P&gt;# General example for adding mounts to CAS workers&lt;BR /&gt;# PatchTransformer&lt;BR /&gt;apiVersion: builtin&lt;BR /&gt;kind: PatchTransformer&lt;BR /&gt;metadata:&lt;BR /&gt;name: data-mounts-cas&lt;BR /&gt;patch: |-&lt;BR /&gt;## Host path example - these should be mounted and available on every kubernetes worker&lt;BR /&gt;- op: add&lt;BR /&gt;path: /spec/controllerTemplate/spec/containers/0/volumeMounts/-&lt;BR /&gt;value:&lt;BR /&gt;name: wine&lt;BR /&gt;mountPath: "/data/wine"&lt;BR /&gt;- op: add&lt;BR /&gt;path: /spec/controllerTemplate/spec/volumes/-&lt;BR /&gt;value:&lt;BR /&gt;name: wine&lt;BR /&gt;hostPath:&lt;BR /&gt;path: /net/example.com/ifs/edm_data/Testdata/modeling/wine&lt;/P&gt;&lt;P&gt;## NFS path example - kubernetes will mount these for you&lt;BR /&gt;- op: add&lt;BR /&gt;path: /spec/controllerTemplate/spec/containers/0/volumeMounts/-&lt;BR /&gt;value:&lt;BR /&gt;name: insight&lt;BR /&gt;mountPath: "/data/inbound"&lt;BR /&gt;- op: add&lt;BR /&gt;path: /spec/controllerTemplate/spec/volumes/-&lt;BR /&gt;value:&lt;BR /&gt;name: insight&lt;BR /&gt;nfs:&lt;BR /&gt;path: /inbound&lt;BR /&gt;server: &lt;SPAN&gt;/domfilestorage.file.core.windows.net/inbound&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;target:&lt;BR /&gt;kind: CASDeployment&lt;BR /&gt;annotationSelector: sas.com/sas-access-config=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running a new kustomize build and applying it to my deployment I see the following errors on my&amp;nbsp;sas-cas-server-default-controller&amp;nbsp; pod.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sounak93_0-1644911782735.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68474i9DC155D237D69946/image-size/large?v=v2&amp;amp;px=999" role="button" title="sounak93_0-1644911782735.png" alt="sounak93_0-1644911782735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;would appreciate if anyone could help here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sounak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 07:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/mount-azure-fileshare-as-NFS-cas-data-mounts/m-p/796221#M23797</guid>
      <dc:creator>sounak93</dc:creator>
      <dc:date>2022-02-15T07:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: mount azure fileshare as NFS cas data mounts</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/mount-azure-fileshare-as-NFS-cas-data-mounts/m-p/796311#M23798</link>
      <description>&lt;P&gt;There are two types of mounts in the example file you are using, a "hostPath" mount and an "NFS" mount. You are trying to use an NFS mount so the hostPath mount (which mounts a path on the kubernetes node into the pod) is not needed here, so the hostpath example section should be removed.&lt;BR /&gt;In the NFS section you are specifying the host name as "/domfilestorage.file.core.windows.net/inbound", which is not a valid hostname. You would need to provide the NFS hostname and share in the volume section.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, this creates a patchTransformer called "data-mount-cas" which mounts the nfs share nfs.example.com:/share to /mnt/share in the cas pod:&lt;/P&gt;
&lt;PRE&gt;apiVersion: builtin
kind: PatchTransformer
metadata:
  name: data-mount-cas
patch: |-
  ## NFS path example - kubernetes will mount these for you
  - op: add
    path: /spec/controllerTemplate/spec/containers/0/volumeMounts/-
    value:
      name: share
      mountPath: "/mnt/share"
  - op: add
    path: /spec/controllerTemplate/spec/volumes/-
    value:
     name: share
     nfs:
       path: /share
       server: nfs.example.com
target:
  kind: CASDeployment
  annotationSelector: sas.com/sas-access-config=true&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 16:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/mount-azure-fileshare-as-NFS-cas-data-mounts/m-p/796311#M23798</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-02-15T16:13:57Z</dc:date>
    </item>
  </channel>
</rss>

