Skip to content
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

Not able to inject #69

Open
bansioza44 opened this issue Jun 8, 2023 · 1 comment
Open

Not able to inject #69

bansioza44 opened this issue Jun 8, 2023 · 1 comment
Labels
question Further information is requested

Comments

@bansioza44
Copy link

Hi Team,
Great work with k8tz. We are able to install it, it run perfectly with any newly created pod/deployments.
But we already have cron Job which timing we wanted to change.
Inject option you mention but it throws below error.can you help me with this?
bansari [ ~ ]$ k8tz inject --strategy=hostPath test-pod.yaml > injected-test-pod.yaml
bash: k8tz: command not found
bansari [ ~ ]$ helm test k8tz
NAME: k8tz
LAST DEPLOYED: Thu Jun 8 07:20:17 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: k8tz-health-test
Last Started: Thu Jun 8 08:52:49 2023
Last Completed: Thu Jun 8 08:52:52 2023
Phase: Succeeded
bansari [ ~ ]$

@yonatankahana yonatankahana added the question Further information is requested label Jun 8, 2023
@yonatankahana
Copy link
Member

Hi @bansioza44,

don't confuse between k8tz as a command line tool and k8tz as a controller (which you installed by helm).

  • if you want to inject the timezone to the pods created by the cronjob - it will happen automatically with k8tz installed as a controller on the cluster - as it is in yours.
  • if you want to change the cronjob cron expression timezone, it is possible only in kubernetes version that supports this feature (>=1.24 alpha, >=1.25 beta). if the cronjob already created you can just edit it's timezone manually. if you want to automatically inject timezone to newly created cronjobs you can enable that feature during helm install/upgrade (--set cronJobTimeZone=true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants