Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding kubernetes yaml for introduction to kubernetes volume blog #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

100daysofdevops
Copy link

@100daysofdevops 100daysofdevops commented Oct 22, 2021

  1. Creating Pod using HostPath Volume

    kubectl create -f hostpathvolume.yaml
    pod/my-test-pod created

  2. Creating PV

    kubectl create -f pv.yaml
    persistentvolume/mypv created

    kubectl get pv
    NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
    mypv 5Gi RWO Retain Pending 4s

  3. Creating PVC

    kubectl create -f pvc.yaml
    persistentvolumeclaim/my-pv-claim created

    kubectl get pvc
    NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
    my-pv-claim Pending standard 8s

  4. Creating Storage Class using AWS

    kubectl create -f sc-aws.yaml
    storageclass.storage.k8s.io/aws-ebs created

    kubectl get sc
    NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
    aws-ebs kubernetes.io/aws-ebs Delete Immediate false 4s

  5. Creating Pod using PVC

    vim pod-pvc.yaml
    kubectl create -f pod-pvc.yaml

6: Creating PVC using AWS Storage class

kubectl create -f pvc-aws.yaml
persistentvolumeclaim/my-pvc-aws-claim created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant