/solutions-gke-init-daemonsets-tutorial

How to use DaemonSets to automatically bootstrap Kubernetes Engine nodes

Primary LanguageShellApache License 2.0Apache-2.0

Automatically bootstrapping Kubernetes Engine nodes with daemonSets

This reference guide demonstrates how to use Kubernetes DaemonSets to initialize your Kubernetes cluster nodes.

For more information, refer to Automatically bootstrapping GKE nodes with DaemonSets.

Contents of this repository

DaemonSet

The DaemonSet descriptor defines the DaemonSet that executes the init container that runs a customized initialization procedure.

ConfigMap

The entrypoint contains an example of a script that the init container runs. The example script is part of the customized initialization procedure.

As part of the example, the script runs both privileged and un-privileged commands.

Verification script

This verify-init.sh runs checks on the nodes of the cluster to verify that the initialization completed successfully.