Compare commits
No commits in common. "779df9fb9c8d4db5ad433cf3b589ccc99babc066" and "29d4ca9fe69c1a93f2c6d9972efe5aadb3ba2ce1" have entirely different histories.
779df9fb9c
...
29d4ca9fe6
3 changed files with 1 additions and 89 deletions
|
@ -1,29 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: openbao-alloy-configmap
|
|
||||||
namespace: argocd
|
|
||||||
labels:
|
|
||||||
env: dev
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://{{{ .Env.DOMAIN_GITEA }}}/giteaAdmin/edfbuilder
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: "stacks/ref-implementation/openbao-alloy-configmap"
|
|
||||||
destination:
|
|
||||||
server: "https://kubernetes.default.svc"
|
|
||||||
namespace: openbao
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
retry:
|
|
||||||
limit: -1
|
|
||||||
backoff:
|
|
||||||
duration: 15s
|
|
||||||
factor: 1
|
|
||||||
maxDuration: 15s
|
|
|
@ -1,32 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: sidecar-container-alloy-config
|
|
||||||
data:
|
|
||||||
config.yaml: |
|
|
||||||
logging {
|
|
||||||
level = "info"
|
|
||||||
format = "logfmt"
|
|
||||||
}
|
|
||||||
|
|
||||||
loki.write "local_loki" {
|
|
||||||
endpoint {
|
|
||||||
url = "http://loki-loki-distributed-gateway/loki/api/v1/push"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
discovery.kubernetes "pod" {
|
|
||||||
role = "pod"
|
|
||||||
}
|
|
||||||
|
|
||||||
discovery.relabel "openbao_pod_logs" {
|
|
||||||
targets = discovery.kubernetes.pod.targets
|
|
||||||
|
|
||||||
rule {
|
|
||||||
source_labels = ["__meta_kubernetes_pod_name"]
|
|
||||||
action = "keep"
|
|
||||||
regex = "openbao-0"
|
|
||||||
}
|
|
||||||
|
|
||||||
forward_to = [loki.write.local_loki.receiver]
|
|
||||||
}
|
|
|
@ -1,31 +1,4 @@
|
||||||
server:
|
server:
|
||||||
extraContainers:
|
|
||||||
- name: grafana-alloy
|
|
||||||
image: grafana/alloy:latest
|
|
||||||
ports:
|
|
||||||
- containerPort: 12345
|
|
||||||
# volumeMounts:
|
|
||||||
# - name: sidecar-container-alloy-config
|
|
||||||
# mountPath: /etc/alloy/config.yaml
|
|
||||||
# subPath: config.yaml
|
|
||||||
# args:
|
|
||||||
# - --config.file=/etc/alloy/config.yaml
|
|
||||||
volumeMounts:
|
|
||||||
- name: alloy-data
|
|
||||||
mountPath: /var/lib/alloy/data
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
fsGroup: 1000
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: alloy-data
|
|
||||||
emptyDir: {}
|
|
||||||
|
|
||||||
# volumes:
|
|
||||||
# - name: sidecar-container-alloy-config
|
|
||||||
# configMap:
|
|
||||||
# name: sidecar-container-alloy-config
|
|
||||||
|
|
||||||
postStart:
|
postStart:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
|
|
Reference in a new issue