Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/70a6a10802dcdab8da9595823cd10012 to your computer and use it in GitHub Desktop.
Save abhirockzz/70a6a10802dcdab8da9595823cd10012 to your computer and use it in GitHub Desktop.
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