Giter VIP home page Giter VIP logo

gke-nodes-timezone's Introduction

GKE Nodes timezone configurator

Instead of using default UTC0 you can specify your own timezone.
More details you can find here and there.

Configure timezone on GKE Nodes using:

  • ConfigMap
  • DaemonSet

Default values:

  • namespace - default
  • timezone - Europe/Berlin
  • gke_timezone_label - default-init

Keep in mind to set up the same label for GKE nodes and have kubeconfig available!

module "gke_nodes_timezone" {
  source   = "[email protected]:michalswi/gke-nodes-timezone.git?ref=main"
}
> check ConfigMap
$ kubectl get cm
NAME               DATA   AGE
entrypoint         1      8s
kube-root-ca.crt   1      20h


> check DaemonSet (3 GKE nodes)
$ kubectl get ds
NAME               DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
node-initializer   3         3         3       3            3           <none>          58s


> check GKE node
gke-node-pool-01999668-t0jv ~ $ timedatectl
Local time: Wed 2024-04-09 08:41:03 CEST
Universal time: Wed 2024-04-09 06:41:03 UTC
RTC time: Wed 2024-04-09 06:41:03
Time zone: Europe/Warsaw (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

gke-nodes-timezone's People

Watchers

Michał Świerczewski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.