diff --git a/kubernetes/pod/web.yaml b/kubernetes/pod/web.yaml index 56667f5..078d5b3 100644 --- a/kubernetes/pod/web.yaml +++ b/kubernetes/pod/web.yaml @@ -1,21 +1,23 @@ apiVersion: v1 kind: Pod metadata: - name: aws-web + name: aws-web spec: - containers: - - name: web - image: nginx - ports: + containers: - name: web - containerPort: 80 - protocol: tcp - volumeMounts: + image: nginx + ports: + - name: web + containerPort: 80 + protocol: tcp + volumeMounts: + - name: html-volume + mountPath: "/usr/share/nginx/html" + securityContext: + allowPrivilegeEscalation: false + volumes: - name: html-volume - mountPath: "/usr/share/nginx/html" - volumes: - - name: html-volume - awsElasticBlockStore: - # Enter the volume ID below - volumeID: volume_ID - fsType: ext4 + awsElasticBlockStore: + # Enter the volume ID below + volumeID: volume_ID + fsType: ext4