#provider.tf
main.tf:
#provider.tf
main.tf:
resource "aws_s3_bucket" "my-bucket1" {
resource "aws_key_pair" "key-tf" {
Follow Below Link For HosPath Demo:
https://srdev.hashnode.dev/managing-persistent-volumes-in-your-deployment
Follow Below Link For EBS PV and PVC Demo:
Installing and Configuring AWS EBS CSI Driver for Kubernetes Cluster with Dynamic Provisioning of EBS Volumes
Helm is a package manager for Kubernetes that simplifies the deployment and management of applications.
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
kubectl create secret generic aws-secret \
--namespace kube-system \
--from-literal "key_id=${AWS_ACCESS_KEY_ID}" \
--from-literal "access_key=${AWS_SECRET_ACCESS_KEY}"
helm repo add aws-ebs-csi-driver https://kubernetes-sigs.github.io/aws-ebs-csi-driver
helm repo update
helm upgrade --install aws-ebs-csi-driver \
--namespace kube-system \
aws-ebs-csi-driver/aws-ebs-csi-driver
kubectl get pods -n kube-system -l app.kubernetes.io/name=aws-ebs-csi-driver
kubectl apply -f storageclass.yaml
kubectl apply -f pvc.yaml
kubectl apply -f pod.yaml
kubectl exec -it app -- df -h /data
The output of the above command should show the mounted EBS volume and its available disk space.
https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/
https://medium.com/@mudasirhaji/setup-kubernetes-cluster-on-amazon-eks-56cbbadace04
https://padmakshi.medium.com/setting-up-an-eks-cluster-and-deploying-a-game-application-a-step-by-step-guide-08790e0be117