From cdd34866a7a037cd60a3ace47e0fc662b4fa2aa1 Mon Sep 17 00:00:00 2001 From: Asem Hamid <155321064+asem-hamid@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:53:27 +0600 Subject: [PATCH] Adding deployment-sidecar.yaml in bn version --- .../application/deployment-sidecar.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 content/bn/examples/application/deployment-sidecar.yaml diff --git a/content/bn/examples/application/deployment-sidecar.yaml b/content/bn/examples/application/deployment-sidecar.yaml new file mode 100644 index 0000000000..80bacbd15b --- /dev/null +++ b/content/bn/examples/application/deployment-sidecar.yaml @@ -0,0 +1,34 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: myapp + labels: + app: myapp +spec: + replicas: 1 + selector: + matchLabels: + app: myapp + template: + metadata: + labels: + app: myapp + spec: + containers: + - name: myapp + image: alpine:latest + command: ['sh', '-c', 'while true; do echo "logging" >> /opt/logs.txt; sleep 1; done'] + volumeMounts: + - name: data + mountPath: /opt + initContainers: + - name: logshipper + image: alpine:latest + restartPolicy: Always + command: ['sh', '-c', 'tail -F /opt/logs.txt'] + volumeMounts: + - name: data + mountPath: /opt + volumes: + - name: data + emptyDir: {}