Comments (13)
@rayh0001
Mount your config maps inside /var/opt/splunk/etc
instead of directly inside ${SPLUNK_HOME}
. This fix works because the entrypoint copies the files over before trying to change the ownership https://github.com/splunk/docker-splunk/blob/master/universalforwarder/entrypoint.sh#L24
from docker-splunk-legacy.
Thanks @ffscl
I just tested it in a Kubernetes v1.10.2 cluster and this fixes the issue, I used:
volumeMounts:
- name: ufconfig
mountPath: /var/opt/splunk/etc/apps/search/local
And still reference any file with $SPLUNK_HOME
from docker-splunk-legacy.
Sorry I am not getting what solved the issue here... I updated daemonset yaml with:
volumeMounts:
- name: ufconfig
mountPath: /var/opt/splunk/etc/apps/search/local
But nothing seems to work. Please let me know what exactly need to be done to resolve the issue
from docker-splunk-legacy.
@sharmmoh1983 If you are using Splunk Cloud, you need to mount the ConfigMap to /var/opt/splunk/etc/apps/splunkclouduf/default
from docker-splunk-legacy.
@mchene ^
from docker-splunk-legacy.
@erks I've alerted PM and got ack back that they will triage.
from docker-splunk-legacy.
@halr9000 if you're okay with doing chown ... || true
, which seems to work for me, I can create a quick PR for that.
from docker-splunk-legacy.
Any updates? Any temporary fix or work-around?
from docker-splunk-legacy.
Thanks @ffscl @guilhemmarchand that seems to work
from docker-splunk-legacy.
This definitely should be documented. @halr9000
from docker-splunk-legacy.
@guilhemmarchand Works like a charm!!
from docker-splunk-legacy.
@ffscl That worked like a charm! Thank goodness I found this otherwise I might have gone crazy.
from docker-splunk-legacy.
Can't get this to work with a daemonset
and configmaps. Does anyone has any working example with splunkforwarder:7.3.0
?
from docker-splunk-legacy.
Related Issues (20)
- Small error in documentation HOT 1
- Splunk attempts to upgrade from 7.0.0 to 7.0.0 HOT 12
- [Errno 39] Directory not empty: '/opt/splunk/share/splunk/search_mrsparkle/modules.new/converters' HOT 2
- Splunk Universal Forwarder has hardcoded credentials in entrypoint.sh HOT 2
- Branch 7.0.1 not available on Docker Hub HOT 2
- Enterprise Security in Docker container HOT 1
- Error when attempting to run Splunk in Docker for Windows
- master branch /tag latest doesn't pull 7.1.0 HOT 2
- failing to run/Permission denied HOT 1
- entrypoint.sh: no such file or directory HOT 2
- docker image for splunk 7.1.0 fails file integrity validation HOT 1
- First time configurations don't work for splunk 7.1.0 image HOT 4
- ARG commands - clustering
- license loading
- _meta data needs to be added as part of splunk cli HOT 1
- No logs in splunk HOT 12
- Include rfc5424-syslog plugin in *-monitor image by default HOT 2
- DeamonSet Logs : asking to set the password HOT 3
- Kubernetes/helm chart packaging? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-splunk-legacy.