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