background
I am new to kubernetes, I am trying to install stable/prometheus
using helm charts on AKS cluster and want to set up a persistent volume for it to consume.
when you create a AKS cluster it keeps all the actual resources in a resource group MC_XXX_XXXX
- I manually created ABC-BLOB-STORAGE via the azure via azure portal
- created the persistant volume using
kubectl
- tried install prometheus via helm with a values file
Persistent Volume
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
name: azurefile
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
labels:
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: EnsureExists
provisioner: kubernetes.io/azure-disk
parameters:
skuName: Standard_LRS
location: eastus
storageAccount: ABC-BLOB-STORAGE
Values.YAML (snippet related to storage looks like)
prometheus:
name: prometheus
server:
configMapOverrideName: prometheus-config
persistentVolume:
enabled: true
storageClass: azurefile
size: 10Gi
Error
when I install prometheus using helm :
helm install stable/prometheus --name d02 -f values.yaml
Error: release d02 failed: persistentvolumeclaims "d02-prometheus-alertmanager" is forbidden
- Feels like kubernetes needs access to the blob storage. I can pass in the access token but not sure how