Comments (10)
The replicator supports a --log-level
flag, which you should be able to use.
Line 30 in 902b3c3
The Helm chart has an args
value which can be used to pass custom command-line arguments to the Deployment. Something like the following in your Helm values should do the trick:
args:
- --log-level=warn
from kubernetes-replicator.
ok. was looking for something like this. will test this. Thank you.
from kubernetes-replicator.
Though I set log-level as warn, the log level is showing as an error .. is this expected? also when I set it to trace I see both debug, info & error logs. Please help us in understanding this behaviour
from kubernetes-replicator.
Hi, pls check if this behavior is fine. Thank you.
from kubernetes-replicator.
Though I set log-level as warn, the log level is showing as an error .. is this expected? also when I set it to trace I see both debug, info & error logs. Please help us in understanding this behaviour
I'm unsure if I understand the issue. Setting a log level customarily results in logging items with a severity equal to OR HIGHER than the configured log level, so a log level of warn
will also log anything more severe than warnings (like errors and panics).
from kubernetes-replicator.
yes, we are on the same page. I have set log-level to the warning, but I see logging severity as error. just want to understand if this behavior is expected. anything we need to worry about?
from kubernetes-replicator.
Alright, then. 🙂 Regarding the actual logs with error severity: No, in normal operation, the replicator should not log any errors. What is the actual error that is being reported? I'm referring to the error
field that is cropped in your screenshot.
from kubernetes-replicator.
below is the log snippet with log-level=warn
time="2023-04-19T06:13:15Z" level=error msg="could not replicate object to other namespaces" error="Replicated xyz-streams/local-abc-configuration to 7 out of 17 namespaces: 10 errors occurred:\n\t* Failed to replicate Secret xyzl-streams/local-abc-configuration -> kube-public: Failed to update secret kube-public/local-abc-configuration: secrets \"local-kafka-configuration\" already exists: Failed to update secret kube-public/local-abc-configuration: secrets \"local-kafka-configuration\" already exists\n\t ...........................
same error message for other secrets.
from kubernetes-replicator.
Hello @martin-helmich, were you able to reproduce this issue at your end? hope the error snippet shared helped.
from kubernetes-replicator.
sorry to bother you @martin-helmich. did you get a chance to look at the log snippet and do you have anything to comment or advise on this behavior?
from kubernetes-replicator.
Related Issues (20)
- Allow replication of only certain keys
- Publishing a new Helm Chart version HOT 1
- New Release Timeline? HOT 1
- how often does the controller check secrets for changes and re-synch? HOT 1
- Allow setting an arbitrary name for the copied Secret resource
- Configurable object types only being replicated HOT 4
- Replication fails randomly on different namespaces during initial startup
- ServiceAccount replication doesn't preserve annotations HOT 1
- Secrets has been deployed with khelm and ArgoCD wants to delete it
- Support replication for Custom Resource
- Proposal: "Pull-based" Replication Using Service Account for Kubernetes-Replicator
- Question Regarding Kubernetes-Replicator's Version Support Policy HOT 1
- fix: secret is replicated to only partial namespaces HOT 1
- secret tls not replicated HOT 2
- not reliable replication
- Allow to disable secret overwrite. Use annotation to protect original values of existing secret in target namespace HOT 1
- Replicatior keep track of removed secrets and loop for wildcard regex in replication-allowed-namespaces.
- Failed to watch secrets: Stream Error
- Helm chart down? 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 kubernetes-replicator.