Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.42 KB

File metadata and controls

43 lines (27 loc) · 1.42 KB

Static Pods

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.

    sp

Another way to configure static pod

  • Instead of specifying the option directly in the kubelet.service file, you could provide a path to another config file using the config option, and define the directory path as staticPodPath in the file.

    sp1

View the static pods

  • To view the static pods
    $ docker ps
    
    sp2

The kubelet can create both kinds of pods - the static pods and the ones from the api server at the same time.

sp3

Static Pods - Use Case

sp4

sp5

Static Pods vs DaemonSets

spvsds

K8s Reference Docs