Upgrade to Pro — share decks privately, control downloads, hide ads and more …

使用 Kubernetes CSI 與 Ceph 實現 Trustzone

使用 Kubernetes CSI 與 Ceph 實現 Trustzone

chun wang

July 20, 2019
Tweet

Other Decks in Technology

Transcript

  1. Agenda Why need CSI What is CSI How to use

    CSI with Kubernetes What is Trustzone How to implement Trustzone Summary 2
  2. Deploy Ceph-CSI Services Deploy RBACs for sidecar containers and node

    plugins kubectl create -f csi-provisioner-rbac.yaml kubectl create -f csi-nodeplugin-rbac.yaml Deploy CSI sidecar containers: kubectl create -f csi-cephfsplugin-provisioner.yaml Deploy CSI CephFS driver: kubectl create -f csi-cephfsplugin.yaml 11 https://github.com/ceph/ceph-csi/blob/master/docs/deploy-cephfs.md
  3. Deploy the Storage Class kubectl create -f secret.yaml kubectl create

    -f storageclass.yaml kubectl create -f pvc.yaml kubectl create -f pod.yaml 12
  4. Ceph - CRUSH Maps 23 host normal { id -2

    alg straw2 hash 0 item osd.1 weight 0.910 item osd.2 weight 0.910 item osd.3 weight 0.910 } host secret { id -3 alg straw2 hash 0 item osd.4 weight 0.910 item osd.5 weight 0.910 item osd.6 weight 0.910 }
  5. Ceph - CRUSH Rule 24 rule normal { id 1

    type replicated min_size 1 max_size 10 step take normal step chooseleaf firstn 0 type host step emit } rule secret{ id 2 type replicated min_size 1 max_size 10 step take secret step chooseleaf firstn 0 type host step emit }
  6. Ceph - File Layouts (Extended Attributes) ceph osd pool create

    normal_data 128 normal ceph osd pool create secret_data 128 secret setfattr -n ceph.dir.layout -v “pool=normal_data" /mnt/normal/ setfattr -n ceph.dir.layout -v “pool=secret_data” /mnt/secret/ 25 http://docs.ceph.com/docs/jewel/cephfs/file-layouts/