当前位置:   article > 正文

k8s :AKS with Azure storage_aks azure storage

aks azure storage

Azure Disk for static:

manually create an Azure disk and attach it to a pod in AKS

1.create Azure Disk
在这里插入图片描述
2.mount disk as volume

在这里插入图片描述

kubectl apply -f azure-disk-pod.yaml

kubectl describe pod mypod

verify the disk is mounted successfully

在这里插入图片描述
Azure Disk for dynamic:

Each AKS cluster includes two pre-created storage classes:

在这里插入图片描述

create a persistvolumeclaim

在这里插入图片描述

create a pod which uses PVC to mount Azure Disk at /mnt/azure

在这里插入图片描述
Azure will auto-provision a disk :
在这里插入图片描述

Azure File for dynamic

multiple pods need concurrent access to the same storage volume ,Azure File of SMB protocol is suitable.

create storage:
az storage account create --resource-group MC_aks2019rg_aks2019_eastus --name aks2019af --sku Standard_LRS

create azure-file StorageClass:

在这里插入图片描述

To allow the Azure platform to create the required storage resources, create a ClusterRole and ClusterRoleBinding.

在这里插入图片描述

create PVC for Azure File:

在这里插入图片描述

create PV;

create a pod which uses PVC(azurefile) to mount Azure File at /mnt/azure path
在这里插入图片描述

Azure auto-creates Azure File Storge for k8s:

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/305057
推荐阅读
  

闽ICP备14008679号