Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: q-pod-sample-03
  5. namespace: mq
  6. spec:
  7. containers:
  8. - image: test.azurecr.io/q/p:01
  9. name: q-ctr-sample-03
  10. imagePullPolicy: "IfNotPresent"
  11. volumeMounts:
  12. - name: azfileshare
  13. mountPath: 'c:/app/app-data'
  14. nodeSelector:
  15. "beta.kubernetes.io/os": windows
  16. volumes:
  17. - name: azfs
  18. azureFile:
  19. secretName: qastapv-share-01-secret
  20. shareName: qastapv-share-01
  21. readOnly: false
  22.  
  23. apiVersion: v1
  24. kind: Secret
  25. metadata:
  26. name: qastapv-share-01-secret
  27. namespace: mq
  28. type: Opaque
  29. data:
  30. azurestorageaccountname: <Base64Str>
  31. azurestorageaccountkey: <Base64Str>
  32.  
  33. apiVersion: v1
  34. kind: PersistentVolume
  35. metadata:
  36. name: pv-azfs-q-01
  37. namespace: mq
  38. spec:
  39. capacity:
  40. storage: 5Gi
  41. accessModes:
  42. - ReadWriteMany
  43. azureFile:
  44. secretName: qastapv-share-01-secret
  45. shareName: qastapv-share-01
  46. readOnly: false
  47. mountOptions:
  48. - dir_mode=0777
  49. - file_mode=0777
  50. - uid=1000
  51. - gid=1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement