We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05e38b9 + cdd3486 commit 8ff2ab2Copy full SHA for 8ff2ab2
content/bn/examples/application/deployment-sidecar.yaml
@@ -0,0 +1,34 @@
1
+apiVersion: apps/v1
2
+kind: Deployment
3
+metadata:
4
+ name: myapp
5
+ labels:
6
+ app: myapp
7
+spec:
8
+ replicas: 1
9
+ selector:
10
+ matchLabels:
11
12
+ template:
13
+ metadata:
14
15
16
+ spec:
17
+ containers:
18
+ - name: myapp
19
+ image: alpine:latest
20
+ command: ['sh', '-c', 'while true; do echo "logging" >> /opt/logs.txt; sleep 1; done']
21
+ volumeMounts:
22
+ - name: data
23
+ mountPath: /opt
24
+ initContainers:
25
+ - name: logshipper
26
27
+ restartPolicy: Always
28
+ command: ['sh', '-c', 'tail -F /opt/logs.txt']
29
30
31
32
+ volumes:
33
34
+ emptyDir: {}
0 commit comments