Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
deployment-with-persistent-storage-details.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
labels:
app: myapp
spec:
replicas: 2
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
spec:
volumes:
- name: myapp-vol
azureDisk:
kind: Managed
diskName: myAKSDisk
diskURI: /subscriptions/<subscriptionID>/resourceGroups/MC_myAKSCluster_myAKSCluster_eastus/providers/Microsoft.Compute/disks/myAKSDisk
containers:
- name: myapp
image: myapp
volumeMounts:
- name: myapp-vol
mountPath: /mnt/logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment