Kubernetes 101 : Running an "unmanaged" static pod and exposing it through a nodePort service
We run the below command to get a skeleton of pod's Yaml file, which is redirected to "static-pod.yaml" file:
Then, we could modify our pod as below - parameters were omitted - :
We could check our pod using the below command:
We create a service to make the pod "static-pod" available, and ready to receive requests - through the service -
We use the below command to create the "pod-service" service:
Comments