Browse Source

Merge pull request #14590 from jakesmith/hpcc-25367-azurefile-mountOptions

HPCC-25367 Use mountOptions in example azurefile helm chart

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 4 years ago
parent
commit
a672a457fb

+ 3 - 0
helm/examples/azure/README.md

@@ -18,6 +18,9 @@ This may be okay for experimentation, where you do not care that your files are
 The hpcc-azurefile helm chart will provision a new Storage Class and a Persistent Volume Claim for each of the required HPCC storage types.
 Once installed the generated PVC names should be used when installing the HPCC helm chart.
 The values-retained-azurefile.yaml is an example of the HPCC storage settings that should be applied, after the "hpcc-azurefile" helm chart is installed.
+
+The storage class used in this example supports mountOptions, which are used to ensure that the mounts are owned by user and group 'hpcc' with suitable file permissions.
+
 NB: The output of installing this chart, will contain a generated example with the correct PVC names.
 
 Example use:

+ 5 - 0
helm/examples/azure/hpcc-azurefile/templates/dalistorage-sc.yaml

@@ -3,6 +3,11 @@ kind: StorageClass
 metadata:
   name: {{ printf "dali-%s-sc" (include "hpcc-azurefile.fullname" $) }}
 provisioner: kubernetes.io/azure-file
+mountOptions:
+  - uid=10000 # uid of user 'hpcc'
+  - gid=10001 # gid of group 'hpcc'
+  - dir_mode=0700 # user read/write/execute
+  - file_mode=0600 # user read/write
 parameters:
   skuName: {{ .Values.daliStorage.sku | default "Standard_LRS" }}
 reclaimPolicy: Retain

+ 5 - 0
helm/examples/azure/hpcc-azurefile/templates/datastorage-sc.yaml

@@ -3,6 +3,11 @@ kind: StorageClass
 metadata:
   name: {{ printf "data-%s-sc" (include "hpcc-azurefile.fullname" $) }}
 provisioner: kubernetes.io/azure-file
+mountOptions:
+  - uid=10000 # uid of user 'hpcc'
+  - gid=10001 # gid of group 'hpcc'
+  - dir_mode=0700 # user read/write/execute
+  - file_mode=0600 # user read/write
 parameters:
   skuName: {{ .Values.dataStorage.sku | default "Standard_LRS" }}
 reclaimPolicy: Retain

+ 5 - 0
helm/examples/azure/hpcc-azurefile/templates/dllstorage-sc.yaml

@@ -3,6 +3,11 @@ kind: StorageClass
 metadata:
   name: {{ printf "dll-%s-sc" (include "hpcc-azurefile.fullname" $) }}
 provisioner: kubernetes.io/azure-file
+mountOptions:
+  - uid=10000 # uid of user 'hpcc'
+  - gid=10001 # gid of group 'hpcc'
+  - dir_mode=0700 # user read/write/execute
+  - file_mode=0600 # user read/write
 parameters:
   skuName: {{ .Values.dllStorage.sku | default "Standard_LRS" }}
 reclaimPolicy: Retain