-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logDNA supertenant agent volume mounts #590
Comments
@dkhokhlov Could you please guide me here. |
UPDATE: The agent configuration works fine with just the two below-mentioned mounts as well. Should I still consider using other volumes as well? volumes:
- name: varlog
hostPath:
path: /var/log/myservice
type: ''
- name: varliblogdna
hostPath:
path: /var/lib/logdna
type: '' |
CC @c-nixon ^ |
Can someone from the team please look into it and provide the requested guidance? |
keep varliblogdna different and the rest volumes the same. |
- name: varlog
hostPath:
path: /var/log
- name: vardata
hostPath:
path: /var/data
- name: varliblogdna
hostPath:
path: /var/lib/logdna
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: mnt
hostPath:
path: /mnt
- name: osrelease
hostPath:
path: /etc/os-release
- name: logdnahostname
hostPath:
path: /etc/hostname Do you want me to keep all the volumes from the above list, and only differentiate for:
|
correct. |
@dkhokhlov Thank you. My configuration would now look something like below: - name: varlogmyservice
hostPath:
path: /var/log/myservice
- name: vardata
hostPath:
path: /var/data
- name: varliblogdna
hostPath:
path: /var/lib/logdna/myservice
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: mnt
hostPath:
path: /mnt
- name: osrelease
hostPath:
path: /etc/os-release
- name: logdnahostname
hostPath:
path: /etc/hostname I would allow the services to mount only their respective sub-directories under Also, with respect to the Journald logs, currently I do not wish to capture it. So the configuration of the same should be irrelevant in my use-case. Please correct/confirm if my above shared understanding is correct. |
lgtm |
To accommodate multiple individual services in a single OpenShift cluster, I need to deploy multiple logDNA supertenant agents for each service in its own namespace.
These individual agents would then scrape logs from sub-directories under
/var/log
for example: agent-1 scrapes logs from/var/log/my-service-1
, similarly agent-2 scrapes logs from/var/log/my-service-2
.However, while configuring these agents I also need to maintain isolation between each of them due to compliance requirements. This means I do not want these agents to unnecessarily share volumes, which I came across here while defining the agent yaml.
Please advise on why we need the below mentioned volumes and which I could drop from my configuration.
I understand for configuring
lookback
in the agent I need the/var/lib/logdna
volume but not particularly sure on the other volumes. I specifically feel like I could drop the/var/data
and/var/lib/docker/containers
as these shared directories between the deployed cluster services and need not be mounted for compliance sake.The text was updated successfully, but these errors were encountered: