-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Add support for timezones / user data #1794
Comments
Hmmm... that's an unusual request :-) Do you mind if I ask why? (I'm wondering if the pods inherit the node timezone, and whether they should). Also I presume this would be a cluster-wide setting, or do you really mean per-instancegroup? I'm torn between a label/annotation on the cluster, vs allowing you to run a custom script at bootup. We could also just do a property, as I guess most people won't even see it unless they need it. |
I have worked in IT groups where they want to run their servers in a certain TZ. @dlutsch I would recommend modifying the base ami to set your TZ. Admittedly I never recommend running servers in non-UTC tz, but I understand you may have other requirements. |
It might make sense to let kops support EC2 user-data, since we could use it to do some customized settings (like install extra packages) using Cloud-init. |
I agree, having an ability to pass in EC2 user data would be extremely helpful. |
+1 on user-data |
We're discussing different approaches to this: "User-Data" can be a lot of things - if you have specific use cases that would be handy to help figure out what we need to support. I have noted:
The problem with "just use cloud-init" is that some distros support different versions of cloud-init (CoreOS) and some don't support cloud-init at all (Container-Optimized OS). Also kops itself uses cloud-init on OSes where it is supported, and it isn't necessarily trivial to just combine two operations. |
@justinsb We're using CoreOS/Container Linux. I've listed some of our use cases below. I realise we could achieve some of these by rolling our own AMI, but we're keen stick with CoreOS's AMI to take full advantage of Container Linux's "auto update" feature. Even with a custom AMI, we'd need to provide some environment config for prod vs non-prod clusters.
|
How can I adjust timezone for kops 1.7? Is there any workaround for now? |
@venth I typically run the image in UTC. If you really need to, you could use a hook to change the TZ, which is NOT tested :) Here is more information on hooks https://github.com/kubernetes/kops/blob/master/docs/cluster_spec.md#hooks |
Thanks 👍 |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/reopen We would also love to have support for this! |
@mayrbenjamin92: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We have a need to create our kops nodes in PST rather than UTC. It would be helpful if kops either had an option to set the instance timezone via the ig config, or if ec2 user data could be passed in order to set that.
The text was updated successfully, but these errors were encountered: