Explorar el Código

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 hace 4 años
padre
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.
 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.
 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 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.
 NB: The output of installing this chart, will contain a generated example with the correct PVC names.
 
 
 Example use:
 Example use:

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

@@ -3,6 +3,11 @@ kind: StorageClass
 metadata:
 metadata:
   name: {{ printf "dali-%s-sc" (include "hpcc-azurefile.fullname" $) }}
   name: {{ printf "dali-%s-sc" (include "hpcc-azurefile.fullname" $) }}
 provisioner: kubernetes.io/azure-file
 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:
 parameters:
   skuName: {{ .Values.daliStorage.sku | default "Standard_LRS" }}
   skuName: {{ .Values.daliStorage.sku | default "Standard_LRS" }}
 reclaimPolicy: Retain
 reclaimPolicy: Retain

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

@@ -3,6 +3,11 @@ kind: StorageClass
 metadata:
 metadata:
   name: {{ printf "data-%s-sc" (include "hpcc-azurefile.fullname" $) }}
   name: {{ printf "data-%s-sc" (include "hpcc-azurefile.fullname" $) }}
 provisioner: kubernetes.io/azure-file
 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:
 parameters:
   skuName: {{ .Values.dataStorage.sku | default "Standard_LRS" }}
   skuName: {{ .Values.dataStorage.sku | default "Standard_LRS" }}
 reclaimPolicy: Retain
 reclaimPolicy: Retain

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

@@ -3,6 +3,11 @@ kind: StorageClass
 metadata:
 metadata:
   name: {{ printf "dll-%s-sc" (include "hpcc-azurefile.fullname" $) }}
   name: {{ printf "dll-%s-sc" (include "hpcc-azurefile.fullname" $) }}
 provisioner: kubernetes.io/azure-file
 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:
 parameters:
   skuName: {{ .Values.dllStorage.sku | default "Standard_LRS" }}
   skuName: {{ .Values.dllStorage.sku | default "Standard_LRS" }}
 reclaimPolicy: Retain
 reclaimPolicy: Retain