Skip to content

Instantly share code, notes, and snippets.

View ams0's full-sized avatar
🏠
Working from home

Alessandro Vozza ams0

🏠
Working from home
View GitHub Profile
modules:
http_2xx:
prober: http
http:
preferred_ip_protocol: "ip4"
http_post_2xx:
prober: http
http:
method: POST
Provisioned capacity 1024GiB
Allowed IO/s: 1024
Burst IO/s: 3072
Egress Rate: 121.4 MiBytes / s
Ingress Rate: 81.0 MiBytes / s
==================
= Dbench Summary =
==================
Random Read/Write IOPS: 3247/1892. BW: 183MiB/s / 119MiB/s
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: dbench
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteOnce
resources:
requests:
helm upgrade --install --create-namespace -n nfs-client \
--set nfs.server="nfs4aks.privatelink.file.core.windows.net" \
--set nfs.mountOptions[0]="vers=4" \
--set nfs.mountOptions[1]="minorversion=1" \
--set nfs.mountOptions[2]="sec=sys" \
--set nfs.path="/nfs4aks/twotb" \
nfs-client-provisioner stable/nfs-client-provisioner
#!/bin/bash
RG=nfs
REGION=uksouth
ADDRESS_PREFIX_STORAGE="172.16.0.0/16"
SUBNET_PREFIX_STORAGE="172.16.10.0/24"
ADDRESS_PREFIX_AKS="172.17.0.0/16"
SUBNET_PREFIX_AKS="172.17.10.0/24"
az group create -n $RG -l $REGION
kubectl apply -f - <<EOF
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: winhd-clone
spec:
accessModes:
- ReadWriteOnce
storageClassName: managed-ultra-csi
kubectl apply -f - <<EOF
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: winhd
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
@ams0
ams0 / gist:38fc64b3fac2adf3a53d1952dfa040c4
Created October 2, 2020 15:24
storageclass_csi-azure-disk.yaml
kubectl apply -f -<<EOF
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: managed-ultra-csi
provisioner: disk.csi.azure.com
parameters:
skuname: UltraSSD_LRS # alias: storageaccounttype, available values: Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS
reclaimPolicy: Delete
kubectl apply -f - <<EOF
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
generation: 1
labels:
kubevirt.io/os: windows
name: vm1
spec:
running: true
kubectl apply -f - <<EOF
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
generation: 1
labels:
kubevirt.io/os: windows
name: vm1
spec:
running: true