diff --git a/content/pt-br/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume.md b/content/pt-br/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume.md index d8a93d0bd9..19598f6422 100644 --- a/content/pt-br/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume.md +++ b/content/pt-br/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume.md @@ -1,5 +1,5 @@ --- -title: Communicate Between Containers in the Same Pod Using a Shared Volume +title: Comunicação entre contêineres no mesmo pod usando um volume compartilhado content_type: task weight: 110 --- diff --git a/content/pt-br/examples/pods/two-container-pod.yaml b/content/pt-br/examples/pods/two-container-pod.yaml new file mode 100644 index 0000000000..031ada7112 --- /dev/null +++ b/content/pt-br/examples/pods/two-container-pod.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Pod +metadata: + name: two-containers +spec: + + restartPolicy: Never + + volumes: + - name: shared-data + emptyDir: {} + + containers: + + - name: nginx-container + image: nginx + volumeMounts: + - name: shared-data + mountPath: /usr/share/nginx/html + + - name: debian-container + image: debian + volumeMounts: + - name: shared-data + mountPath: /pod-data + command: ["/bin/sh"] + args: ["-c", "echo Hello from the debian container > /pod-data/index.html"]