github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/volumes/iscsi/iscsi-chap.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: Pod
     4  metadata:
     5    name: iscsipd
     6  spec:
     7    containers:
     8    - name: iscsipd-ro
     9      image: kubernetes/pause
    10      volumeMounts:
    11      - mountPath: "/mnt/iscsipd"
    12        name: iscsivol
    13    volumes:
    14    - name: iscsivol
    15      iscsi:
    16        targetPortal: 127.0.0.1
    17        iqn: iqn.2015-02.example.com:test
    18        lun: 0
    19        fsType: ext4
    20        readOnly: true
    21        chapAuthDiscovery: true
    22        chapAuthSession: true
    23        secretRef:
    24           name: chap-secret