Skip to content

Commit 18b85cb

Browse files
Update content/pt-br/examples/pods/two-container-pod.yaml
1 parent 9fb809b commit 18b85cb

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

content/pt-br/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Communicate Between Containers in the Same Pod Using a Shared Volume
2+
title: Comunicação entre contêineres no mesmo pod usando um volume compartilhado
33
content_type: task
44
weight: 110
55
---
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: two-containers
5+
spec:
6+
7+
restartPolicy: Never
8+
9+
volumes:
10+
- name: shared-data
11+
emptyDir: {}
12+
13+
containers:
14+
15+
- name: nginx-container
16+
image: nginx
17+
volumeMounts:
18+
- name: shared-data
19+
mountPath: /usr/share/nginx/html
20+
21+
- name: debian-container
22+
image: debian
23+
volumeMounts:
24+
- name: shared-data
25+
mountPath: /pod-data
26+
command: ["/bin/sh"]
27+
args: ["-c", "echo Hello from the debian container > /pod-data/index.html"]

0 commit comments

Comments
 (0)