BookmarkSubscribeRSS Feed
sounak93
Calcite | Level 5

Hi All,

 

I am trying to mount my Azure fileshare as NFS cas data mounts. My data-mounts-cas.yaml file look something like this:

# General example for adding mounts to CAS workers
# PatchTransformer
apiVersion: builtin
kind: PatchTransformer
metadata:
name: data-mounts-cas
patch: |-
## Host path example - these should be mounted and available on every kubernetes worker
- op: add
path: /spec/controllerTemplate/spec/containers/0/volumeMounts/-
value:
name: wine
mountPath: "/data/wine"
- op: add
path: /spec/controllerTemplate/spec/volumes/-
value:
name: wine
hostPath:
path: /net/example.com/ifs/edm_data/Testdata/modeling/wine

## NFS path example - kubernetes will mount these for you
- op: add
path: /spec/controllerTemplate/spec/containers/0/volumeMounts/-
value:
name: insight
mountPath: "/data/inbound"
- op: add
path: /spec/controllerTemplate/spec/volumes/-
value:
name: insight
nfs:
path: /inbound
server: /domfilestorage.file.core.windows.net/inbound

target:
kind: CASDeployment
annotationSelector: sas.com/sas-access-config=true

 

After running a new kustomize build and applying it to my deployment I see the following errors on my sas-cas-server-default-controller  pod.

 

sounak93_0-1644911782735.png

would appreciate if anyone could help here?

 

Thanks

Sounak

 

1 REPLY 1
gwootton
SAS Super FREQ

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.
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.

 

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:

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
--
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1606 views
  • 0 likes
  • 2 in conversation