Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolagospagopa committed Nov 13, 2023
1 parent 8405fc0 commit b273d22
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
12 changes: 12 additions & 0 deletions kubernetes_storage_class/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

This module creates a series of storage class with ZRS redundancy to be used in place of the default ones provided by AKS

## List of storageclasses

* "standard-hdd"
* "azurefile-zrs"
* "azurefile-csi-zrs"
* "azurefile-csi-premium-zrs"
* "azurefile-premium-zrs"
* "default-zrs"
* "managed-zrs"
* "managed-csi-zrs"
* "managed-csi-premium-zrs"

## How to use it

```hcl
Expand Down
14 changes: 12 additions & 2 deletions kubernetes_storage_class/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# HDD
#
resource "kubernetes_storage_class_v1" "standard_hdd" {
metadata {
name = "standard-hdd"
Expand All @@ -9,7 +12,9 @@ resource "kubernetes_storage_class_v1" "standard_hdd" {
}
}


#
# Azure Files
#
resource "kubernetes_storage_class_v1" "azurefile_zrs" {
metadata {
name = "azurefile-zrs"
Expand Down Expand Up @@ -83,6 +88,9 @@ resource "kubernetes_storage_class_v1" "azurefile_premium_zrs" {
}
}

#
# Default
#
resource "kubernetes_storage_class_v1" "default_zrs" {
metadata {
name = "default-zrs"
Expand All @@ -96,7 +104,9 @@ resource "kubernetes_storage_class_v1" "default_zrs" {
}
}


#
# Managed
#
resource "kubernetes_storage_class_v1" "managed_zrs" {
metadata {
name = "managed-zrs"
Expand Down

0 comments on commit b273d22

Please sign in to comment.