Kubernetes

How to create PV dynamically on k8s with AWS EFS

Prerequisites Create EFS on AWS Selected Subnets should contain the k8s cluster subnets. Selected Security Groups should ensure the EFS can be accessible. Create one EC2 instance in the same VPC as EFS. SSH to the instance, mount the EFS and create folder. sudo yum install -y nfs-utils sudo mkdir efs sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport ${file_sys_id}.efs.us-east-1.amazonaws.com:/ efs sudo mkdir efs/pvs file_sys_id can be found from AWS EFS console.

Tips of deploying service on Kubernetes

Preface These are some tips or something should be considered when you want to deploy your service on Kubernetes. About Pod How to decide what things should be put in one Pod? When designing a Pod, you should consider below 4 types container. Function container Init container Monitor container Operator container Function container is the service. Init container is responsible for initializing the service. For example, the configuration.