File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -130,30 +130,30 @@ Once the persistent volume claim has been created and the disk successfully prov
130
130
131
131
1. Create a file named `azure-pvc-disk.yaml`, and copy in the following manifest :
132
132
133
- ` ` ` yaml
134
- kind: Pod
135
- apiVersion: v1
136
- metadata:
137
- name: mypod
138
- spec:
139
- containers:
140
- - name: mypod
133
+ ` ` ` yaml
134
+ kind: Pod
135
+ apiVersion: v1
136
+ metadata:
137
+ name: mypod
138
+ spec:
139
+ containers:
140
+ - name: mypod
141
141
image: mcr.microsoft.com/oss/nginx/nginx:1.15.5-alpine
142
142
resources:
143
143
requests:
144
- cpu: 100m
145
- memory: 128Mi
144
+ cpu: 100m
145
+ memory: 128Mi
146
146
limits:
147
147
cpu: 250m
148
148
memory: 256Mi
149
149
volumeMounts:
150
- - mountPath: "/mnt/azure"
151
- name: volume
152
- volumes:
153
- - name: volume
154
- persistentVolumeClaim:
155
- claimName: azure-managed-disk
156
- ` ` `
150
+ - mountPath: "/mnt/azure"
151
+ name: volume
152
+ volumes:
153
+ - name: volume
154
+ persistentVolumeClaim:
155
+ claimName: azure-managed-disk
156
+ ` ` `
157
157
158
158
2. Create the pod with the [kubectl apply][kubectl-apply] command, as shown in the following example :
159
159
You can’t perform that action at this time.
0 commit comments