Persistent Storage NFS code for Kubernetes

 Persistent Storage NFS code for Kubernetes:

This is a sample you should modify it based on your environment.


kind: Deployment

apiVersion: apps/v1

metadata:

  name: nfs-client-provisioner

spec:

  selector:

    matchLabels:

      app: nfs-client-provisioner

  replicas: 1

  strategy:

    type: Recreate

  template:

    metadata:

      labels:

        app: nfs-client-provisioner

    spec:

      serviceAccountName: nfs-client-provisioner

      containers:

        - name: nfs-client-provisioner

          image: quay.io/external_storage/nfs-client-provisioner:latest

          volumeMounts:

            - name: nfs-client-root

              mountPath: /persistentvolumes

          env:

            - name: PROVISIONER_NAME

              value: example.com/nfs

            - name: NFS_SERVER

              value: 10.26.42.100

            - name: NFS_PATH

              value: /srv/nfs/kubedata

      volumes:

        - name: nfs-client-root

          nfs:

            server: 10.26.42.100

            path: /srv/nfs/kubedata

Comments

Popular posts from this blog

Push command for NetWorker Client Upgrade

Factors Affecting Users’ Sense of Security and Trust in Integrating Electronic health record to the cloud

Basic Elastic Cloud Storage Troubleshooting Commands