Static Pods
- Take me to Video Tutorial
In this section, we will take a look at Static Pods
How do you provide a pod definition file to the kubelet without a kube-apiserver?
- You can configure the kubelet to read the pod definition files from a directory on the server designated to store information about pods.
Configure Static Pod
- The designated directory can be any directory on the host and the location of that directory is passed in to the kubelet as an option while running the service.
- The option is named as
--pod-manifest-path.
- The option is named as
Another way to configure static pod
-
Instead of specifying the option directly in the
kubelet.servicefile, you could provide a path to another config file using the config option, and define the directory path as staticPodPath in the file.
View the static pods
- To view the static pods
$ docker ps