Creating a CTE for Kubernetes Claim Against the PVC
Note
For the next step, you must have your PV and PVC already deployed.
-
Create the following YAML file:
cte-csi-claim.yaml
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: cte-claim annotations: # The following must match your CTE Kubernetes Policy name. csi.cte.cpl.thalesgroup.com/policy: policy_1 # NFS source persistent volume claim csi.cte.cpl.thalesgroup.com/source_pvc: nfs-test-claim spec: storageClassName: <CHANGE to the storageclass name that you deployed. For example: e.g. csi-test-sc> accessModes: - ReadWriteMany resources: requests: storage: 1Ki
-
To deploy the
cte-csi-claim.yaml
script, type:kubectl apply -f cte-claim.yaml
Note
-
AccessMode of CTE-PVC must be the same as the sourcePVC accessMode.
-
Multiple CTE-PVC cannot use same sourcePVC (
csi.cte.cpl.thalesgroup.com/source_pvc: nfs-test-claim
) at the same time.