Commit graph

215 commits

Author SHA1 Message Date
d21c543f2c log-sidecar removed 2025-03-20 15:50:04 +01:00
64677a02d1 url = "http://loki-loki-distributed-gateway.monitoring.svc.cluster.local/loki/api/v1/push" 2025-03-20 15:14:01 +01:00
350398cb23 path_targets = [{"__path__" = "/openbao/logs/*"}] 2025-03-20 14:44:48 +01:00
02c739524b config.alloy 2025-03-20 14:39:03 +01:00
3db4058181 - key: "config.yaml"
path: "/config.alloy"
                - key: "config.yaml"
                  path: "/pupa/config.alloy"
2025-03-20 14:34:51 +01:00
d866169744 - name: config-volume
mountPath: /etc/alloy
              items:
                - key: "config.yaml"
                  path: "config.alloy"
2025-03-20 14:28:27 +01:00
267a04fee5 mountPath: /etc/alloy
items:
                - key: "config.yaml"
                  path: "config.alloy"
2025-03-20 14:23:57 +01:00
c376f6d0c6 - --config.file=/var/lib/alloy/config/config.yaml 2025-03-20 14:09:45 +01:00
39eab1ef93 - name: config-volume
configMap:
        name: sidecar-container-alloy-config
2025-03-20 14:00:59 +01:00
ec2fc47ea2 mountPath: /var/lib/alloy 2025-03-20 13:52:04 +01:00
2058f6a36b mountPath: /var/lib 2025-03-20 13:48:12 +01:00
87522c11db /var 2025-03-20 13:39:35 +01:00
88df4ea8f4 runAsUser: 100 2025-03-20 13:30:37 +01:00
6385e39067 /openbao/logs/pupa2 2025-03-20 13:12:50 +01:00
005f7503ce mountPath: /var/lib/alloy/data 2025-03-20 13:05:44 +01:00
140dddd955 mountPath: /var/lib/alloy/data 2025-03-20 12:58:23 +01:00
285e823936 path_targets = [{"__path__" = "/var/log/*"}] 2025-03-20 12:55:00 +01:00
c9c67a9d54 name changes 2025-03-20 12:36:57 +01:00
0dbf646477 alloy is back 2025-03-20 12:36:18 +01:00
5843e9498b targets = local.file_match.openbao_file_logs.targets 2025-03-20 11:33:08 +01:00
3e1b284e3b local.file_match "openbao_file_logs" {
path_targets = [{"__path__" = "/openbao/logs/*"}]
        sync_period = "5s"
      }

      loki.source.file "openbao_logs" {
        targets    = local.file_match.openbao_file_logs.output
        forward_to = [loki.write.local_loki.receiver]
      }
2025-03-20 11:26:21 +01:00
a5ec02205a bao audit enable -path="stdout" file file_path=stdout
bao audit enable -path="file" file file_path=/openbao/logs/openbao.log
2025-03-20 11:03:57 +01:00
974e0182cc # touch /openbao/logs/openbao.log
# bao audit enable file file_path=/openbao/logs/openbao.log
2025-03-20 10:45:12 +01:00
d51e0859a9 touch /openbao/logs/openbao.log 2025-03-19 16:34:32 +01:00
1bf5b468bc bao audit enable file file_path=/openbao/logs/openbao.log 2025-03-19 16:25:16 +01:00
e7d693465d mountPath: /openbao/logs 2025-03-19 15:02:47 +01:00
12d35ad1e9 touch /var/log/openbao.log
chmod 644 /var/log/openbao.log
      chown openbao:openbao /var/log/openbao.log
      bao audit enable file file_path=/var/log/openbao.log removed
2025-03-19 14:48:25 +01:00
5ffb47d1ca volumeMounts:
- mountPath: /var/log/test
      name: log-storage
      readOnly: false
2025-03-19 14:44:29 +01:00
e72e440e51 volumeMounts:
- mountPath: /var/log/test
      name: plugins
      readOnly: false
2025-03-19 14:40:57 +01:00
ff72720654 volumes:
- name: log-storage
      emptyDir: {}
2025-03-19 14:35:18 +01:00
ac4d10d619 # volumeMounts:
#   - mountPath: /
  #     name: plugins
  #     readOnly: false
2025-03-19 14:30:00 +01:00
d946b419e7 volumeMounts:
- mountPath: /
      name: plugins
      readOnly: false
2025-03-19 14:27:04 +01:00
da3624d82a volumeMounts:
- mountPath: /var/log/test
      name: plugins
      readOnly: false
2025-03-19 14:20:57 +01:00
cba0a236f5 volumes:
- name: log-storage
      path: /var/log/test
2025-03-19 14:14:07 +01:00
0971384fd2 emptyDir: {}
volumeMounts:
        - name: log-storage
          mountPath: /var/log/test
2025-03-19 14:06:21 +01:00
4d93d50874 volumes:
- name: log-storage
      path: /var/log/test
2025-03-19 13:58:20 +01:00
8f7ccf5fa7 mountPath: /var/log/test 2025-03-19 13:53:13 +01:00
1938cc8f44 - name: init-log-permissions
image: busybox
      command: ["sh", "-c", "chown -R 1000:1000 /var/log && chmod -R 775 /var/log"]
      volumeMounts:
        - mountPath: /var/log
          name: log-storage
2025-03-19 13:24:40 +01:00
80ca890f5f - name: init-log-permissions
image: busybox
      command: ["sh", "-c", "chown -R 1000:1000 /var/log && chmod -R 775 /var/log"]
      securityContext:
        runAsUser: 0
      volumeMounts:
        - mountPath: /var/log
          name: log-storage
2025-03-19 13:20:34 +01:00
18d03cee74 runAsUser: 1 2025-03-19 11:47:50 +01:00
7efc8124b0 runAsUser: 0 2025-03-19 11:39:53 +01:00
3cd6a846b2 securityContext:
runAsUser: 1001
2025-03-19 11:35:16 +01:00
3d39948468 command: ["/bin/sh", "-c", "
while true; do
            echo 'Hello'
          sleep 5;
          done
        "]
2025-03-19 11:18:38 +01:00
055713e4a5 command: ["/bin/sh", "-c", "
while true; do
            echo 'Hello'
          sleep 5;
          done
        "]
2025-03-19 11:02:44 +01:00
0b5b2b25fd touch /var/log/openbao.log
chmod 644 /var/log/openbao.log
      chown openbao:openbao /var/1og/openbao_audit.log
      bao audit enable file file_path=/var/log/openbao.log
2025-03-19 10:47:00 +01:00
3bb9b4b059 while true; do
echo 'Hello'
          sleep 5;
          done
        "]
2025-03-19 10:33:33 +01:00
fb0eebef13 no exit 2025-03-19 10:26:14 +01:00
1c71f8555d # while kill -0 $(pidof openbao) 2>/dev/null; do sleep 1; done;
# echo 'OpenBao has crashed - giving Alloy time to collect logs...' >> var/log/openbao.log;
          # sleep 20;
          # echo 'Sidecar exiting.';
          # exit 1;
2025-03-19 10:25:44 +01:00
abdbcff9fd while kill -0 $(pidof openbao) 2>/dev/null; do sleep 1; done;
echo 'OpenBao has crashed - giving Alloy time to collect logs...' >> var/log/openbao.log;
          sleep 20;
          echo 'Sidecar exiting.';
          exit 1;
2025-03-19 10:18:19 +01:00
ac3988f9ac touch /var/log/openbao.log
chmod 644 /var/log/openbao.log
      chown openbao:openbao /var/1og/openbao_audit.log
      bao audit enable file file_path=/var/log/openbao.log removed
2025-03-18 14:34:59 +01:00