Skip to content

Instantly share code, notes, and snippets.

@rootfs
Created August 5, 2016 01:54
Show Gist options
  • Save rootfs/c6a7a28350d65ea056c6fd24c269390b to your computer and use it in GitHub Desktop.
Save rootfs/c6a7a28350d65ea056c6fd24c269390b to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ReplicationController
metadata:
name: nfs-web
spec:
replicas: 1
selector:
role: web-frontend
template:
metadata:
labels:
role: web-frontend
spec:
containers:
- name: web
image: nginx
ports:
- name: web
containerPort: 80
volumeMounts:
# name must match the volume name below
- name: disk1
mountPath: "/mnt1"
- name: disk2
mountPath: "/mnt2"
- name: disk3
mountPath: "/mnt3"
- name: disk4
mountPath: "/mnt4"
volumes:
- name: disk1
azureDisk:
diskName: test7.vhd
diskURI: https://openshiftstoragede1802.blob.core.windows.net/vhds/test7.vhd
cachingMode: ReadWrite
- name: disk2
azureDisk:
diskName: test8.vhd
diskURI: https://openshiftstoragede1802.blob.core.windows.net/vhds/test8.vhd
cachingMode: ReadWrite
- name: disk3
azureDisk:
diskName: test3.vhd
diskURI: https://openshiftstoragede1802.blob.core.windows.net/vhds/test3.vhd
cachingMode: ReadOnly
- name: disk4
azureDisk:
diskName: test5.vhd
diskURI: https://openshiftstoragede1802.blob.core.windows.net/vhds/test5.vhd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment