Comments (7)
This error is coming from kube-monkey being unable to find the timezone file that LoadLocation in the Go time package needs, since the default timezone is "America/Los Angeles". An alternative to creating the timezone file, is to use either the UTC or Local timezones. Those timezones are natively known.
from kube-monkey.
I also get stuck on this problem. Here is one solution for me ,maybe can give some help.
1)use "docker run -itd kube-monkey:v0.1.0 /bin/bash" to run a container
2)use "docker ps" to get its containerid
3)use "docker exec -it {$containerid} bash" to enter into the container
4)run "ll /etc |grep localtime" in the container and you will find it links to someplace:
localtime -> /usr/share/zoneinfo/Etc/UTC
5)In my case ,there is no zoneinfo directory under /usr/share/ in my container.
6)use "docker cp /usr/share/zoneinfo/ {$containerid} :/usr/share/" to copy the directory from host
7)use "docker commit {$containerid} kube-monkey:v0.1.1" to form a new image
The problem is solved for me using this new image "kube-monkey:v0.1.1"
from kube-monkey.
Wherever you are running kube-monkey
it seems to need the zoneinfo.zip
file in different places -
this appears to be dependant on your GOROOT
environment variable setting... this will also be true inside the container - if you're going that far. :-)
Try;
zip /usr/local/go/lib/time/zoneinfo.zip /usr/share/zoneinfo/
Substitute /usr/local/go/lib/time/zoneinfo.zip
, above, according to the no such file or directory
error.
If you've set the "time_zone" in the /etc/kube-mokey/config.toml
file, or via the examples/configmap.yaml
, then make sure you pick a TZ that exists in /usr/share/zoneinfo/
HTH
from kube-monkey.
kube-monkey could default to the local timezone in case of this error, although I feel that's more dangerous as we really don't want to be scheduling pods to be killed at unexpected times. I think panicking in this situation might be the outcome of least surprise.
from kube-monkey.
changing the Dockerfile to FROM golang:1.7.5-alpine
seems to resolve the issue.... any reason why this isn't a good solution?
from kube-monkey.
@pswenson What timezone are you using that causes that error?
from kube-monkey.
You may try to set time_zone="UTC" .
from kube-monkey.
Related Issues (20)
- version error when installing helm chart via flux
- kube-monkey schedules Termination successfully, but POD always doesn't be killed HOT 6
- pods still continues to terminate after the end_hour HOT 2
- Simplify labels to opt in to chaos
- Context deadline exceeded during slack notification
- No terminations scheduled problem HOT 2
- Kubectl exec into Kube-monkey pod
- Failed to execute termination for v1.StatefulSet . Error: no terminations requested for v1.StatefulSet
- Missing copyright information HOT 1
- KubeMonkey isnt killing any pods HOT 1
- Kill - frequency control HOT 1
- Documentation site for Kube-Monkey HOT 1
- Golang monkey patching library utilized against terms of license
- How to pull from a private docker registry?
- Chart doesn't work with rbac disabled
- CVEs in latest kube-monkey Image HOT 2
- Debug mode - extend run time HOT 1
- Schedule terminations days HOT 2
- Documentation error: broken link config/param/param.go not found
- podSecurityContext does not work using Helm values template
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 kube-monkey.