Question: When would you use Running Automated Tasks with a CronJob?

Answer: Running Automated Tasks with a CronJobThis page shows how to run automated tasks using Kubernetes CronJob object.Before you beginYou need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds:iximiuz LabsKillercodaKodeKloudPlay with KubernetesCreating a CronJobCron jobs require a config file. Here is a manifest for a CronJob that runs a simple demonstration task every minute:application/job/cronjob.yaml apiVersion: batch/v1 kind: CronJob metadata: name: hello spec: schedule: "* * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox:1.28 imagePullPolicy: IfNotPresent command: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure Run the example CronJob by using this command:kubectl create -f https://k8s.io/examples/application/job/cronjob.yaml The output is similar to this:cronjob.batch/hello created After creating the cron job, get its status using this command:kubectl get cronjob hello The output is similar to this:NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE hello */1 * * * * False 0 <none> 10s As you can see from the results of the command, the cron job has not scheduled or run any jobs yet. Watch for the job to be created in around one minute:kubectl get jobs --watch The output is similar to this:NAME COMPLETIONS DURATION AGE hello-4111706356 0/1 0s hello-4111706356 0/1 0s 0s hello-4111706356 1/1 5s 5s Now you've seen one running job scheduled by the "hello" cron job. You can stop watching the job and view the cron job again to see that it scheduled the job:kubectl get cronjob hello The output is similar to this:NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE hello */1 * * * * False 0 50s 75s You should see that the cron job hello successfully scheduled a job at the time specified in LAST SCHEDULE. There are currently 0 active jobs, meaning that the job has completed or failed.Now, find the pods that the last scheduled job created and view the standard output of one of the pods.Note:The job name is different from the pod name.# Replace "hello-4111706356" with the job name in your system pods=$(kubectl get pods --selector=job-name=hello-4111706356 --output=jsonpath={.items[*].metadata.name}) Show the pod log:kubectl logs $pods The output is similar to this:Fri Feb 22 11:02:09 UTC 2019 Hello from the Kubernetes cluster Deleting a CronJobWhen you don't need a cron job any more, delete it with kubectl delete cronjob <cronjob name>:kubectl delete cronjob hello Deleting the cron job removes all the jobs and pods it created and stops it from creating additional jobs. You can read more about removing jobs in garbage collection.


Question: What are the benefits of Running Automated Tasks with a CronJob?

Answer: Running Automated Tasks with a CronJobThis page shows how to run automated tasks using Kubernetes CronJob object.Before you beginYou need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds:iximiuz LabsKillercodaKodeKloudPlay with KubernetesCreating a CronJobCron jobs require a config file. Here is a manifest for a CronJob that runs a simple demonstration task every minute:application/job/cronjob.yaml apiVersion: batch/v1 kind: CronJob metadata: name: hello spec: schedule: "* * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox:1.28 imagePullPolicy: IfNotPresent command: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure Run the example CronJob by using this command:kubectl create -f https://k8s.io/examples/application/job/cronjob.yaml The output is similar to this:cronjob.batch/hello created After creating the cron job, get its status using this command:kubectl get cronjob hello The output is similar to this:NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE hello */1 * * * * False 0 <none> 10s As you can see from the results of the command, the cron job has not scheduled or run any jobs yet. Watch for the job to be created in around one minute:kubectl get jobs --watch The output is similar to this:NAME COMPLETIONS DURATION AGE hello-4111706356 0/1 0s hello-4111706356 0/1 0s 0s hello-4111706356 1/1 5s 5s Now you've seen one running job scheduled by the "hello" cron job. You can stop watching the job and view the cron job again to see that it scheduled the job:kubectl get cronjob hello The output is similar to this:NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE hello */1 * * * * False 0 50s 75s You should see that the cron job hello successfully scheduled a job at the time specified in LAST SCHEDULE. There are currently 0 active jobs, meaning that the job has completed or failed.Now, find the pods that the last scheduled job created and view the standard output of one of the pods.Note:The job name is different from the pod name.# Replace "hello-4111706356" with the job name in your system pods=$(kubectl get pods --selector=job-name=hello-4111706356 --output=jsonpath={.items[*].metadata.name}) Show the pod log:kubectl logs $pods The output is similar to this:Fri Feb 22 11:02:09 UTC 2019 Hello from the Kubernetes cluster Deleting a CronJobWhen you don't need a cron job any more, delete it with kubectl delete cronjob <cronjob name>:kubectl delete cronjob hello Deleting the cron job removes all the jobs and pods it created and stops it from creating additional jobs. You can read more about removing jobs in garbage collection.


Question: What is Running Automated Tasks with a CronJob?

Answer: T h i s   p a g e   s h o w s   h o w   t o   r u n   a u t o m a t e d   t a s k s   u s i n g   K u b e r n e t e s   C r o n J o b   o b j e c t .


Question: What is Before you begin?

Answer: Y o u   n e e d   t o   h a v e   a   K u b e r n e t e s   c l u s t e r ,   a n d   t h e   k u b e c t l   c o m m a n d - l i n e   t o o l   m u s t   b e   c o n f i g u r e d   t o   c o m m u n i c a t e   w i t h   y o u r   c l u s t e r .   I t   i s   r e c o m m e n d e d   t o   r u n   t h i s   t u t o r i a l   o n   a   c l u s t e r   w i t h   a t   l e a s t   t w o   n o d e s   t h a t   a r e   n o t   a c t i n g   a s   c o n t r o l   p l a n e   h o s t s .   I f   y o u   d o   n o t   a l r e a d y   h a v e   a   c l u s t e r ,   y o u   c a n   c r e a t e   o n e   b y   u s i n g   m i n i k u b e   o r   y o u   c a n   u s e   o n e   o f   t h e s e   K u b e r n e t e s   p l a y g r o u n d s : i x i m i u z   L a b s K i l l e r c o d a K o d e K l o u d P l a y   w i t h   K u b e r n e t e s   Y o u   n e e d   t o   h a v e   a   K u b e r n e t e s   c l u s t e r ,   a n d   t h e   k u b e c t l   c o m m a n d - l i n e   t o o l   m u s t   b e   c o n f i g u r e d   t o   c o m m u n i c a t e   w i t h   y o u r   c l u s t e r .   I t   i s   r e c o m m e n d e d   t o   r u n   t h i s   t u t o r i a l   o n   a   c l u s t e r   w i t h   a t   l e a s t   t w o   n o d e s   t h a t   a r e   n o t   a c t i n g   a s   c o n t r o l   p l a n e   h o s t s .   I f   y o u   d o   n o t   a l r e a d y   h a v e   a   c l u s t e r ,   y o u   c a n   c r e a t e   o n e   b y   u s i n g   m i n i k u b e   o r   y o u   c a n   u s e   o n e   o f   t h e s e   K u b e r n e t e s   p l a y g r o u n d s :   i x i m i u z   L a b s K i l l e r c o d a K o d e K l o u d P l a y   w i t h   K u b e r n e t e s


Question: What is Creating a CronJob?

Answer: C r o n   j o b s   r e q u i r e   a   c o n f i g   f i l e .   H e r e   i s   a   m a n i f e s t   f o r   a   C r o n J o b   t h a t   r u n s   a   s i m p l e   d e m o n s t r a t i o n   t a s k   e v e r y   m i n u t e :   a p i V e r s i o n :   b a t c h / v 1   k i n d :   C r o n J o b   m e t a d a t a :   n a m e :   h e l l o   s p e c :   s c h e d u l e :   " *   *   *   *   * "   j o b T e m p l a t e :   s p e c :   t e m p l a t e :   s p e c :   c o n t a i n e r s :   -   n a m e :   h e l l o   i m a g e :   b u s y b o x : 1 . 2 8   i m a g e P u l l P o l i c y :   I f N o t P r e s e n t   c o m m a n d :   -   / b i n / s h   -   - c   -   d a t e ;   e c h o   H e l l o   f r o m   t h e   K u b e r n e t e s   c l u s t e r   r e s t a r t P o l i c y :   O n F a i l u r e   R u n   t h e   e x a m p l e   C r o n J o b   b y   u s i n g   t h i s   c o m m a n d :   k u b e c t l   c r e a t e   - f   h t t p s : / / k 8 s . i o / e x a m p l e s / a p p l i c a t i o n / j o b / c r o n j o b . y a m l   T h e   o u t p u t   i s   s i m i l a r   t o   t h i s :   c r o n j o b . b a t c h / h e l l o   c r e a t e d   A f t e r   c r e a t i n g   t h e   c r o n   j o b ,   g e t   i t s   s t a t u s   u s i n g   t h i s   c o m m a n d :   k u b e c t l   g e t   c r o n j o b   h e l l o   T h e   o u t p u t   i s   s i m i l a r   t o   t h i s :   N A M E   S C H E D U L E   S U S P E N D   A C T I V E   L A S T   S C H E D U L E   A G E   h e l l o   * / 1   *   *   *   *   F a l s e   0   < n o n e >   1 0 s   A s   y o u   c a n   s e e   f r o m   t h e   r e s u l t s   o f   t h e   c o m m a n d ,   t h e   c r o n   j o b   h a s   n o t   s c h e d u l e d   o r   r u n   a n y   j o b s   y e t .   W a t c h   f o r   t h e   j o b   t o   b e   c r e a t e d   i n   a r o u n d   o n e   m i n u t e :   k u b e c t l   g e t   j o b s   - - w a t c h   T h e   o u t p u t   i s   s i m i l a r   t o   t h i s


Question: What is Note:?

Answer: #   R e p l a c e   " h e l l o - 4 1 1 1 7 0 6 3 5 6 "   w i t h   t h e   j o b   n a m e   i n   y o u r   s y s t e m   p o d s = $ ( k u b e c t l   g e t   p o d s   - - s e l e c t o r = j o b - n a m e = h e l l o - 4 1 1 1 7 0 6 3 5 6   - - o u t p u t = j s o n p a t h = { . i t e m s [ * ] . m e t a d a t a . n a m e } )   S h o w   t h e   p o d   l o g :   k u b e c t l   l o g s   $ p o d s   T h e   o u t p u t   i s   s i m i l a r   t o   t h i s :   F r i   F e b   2 2   1 1 : 0 2 : 0 9   U T C   2 0 1 9   H e l l o   f r o m   t h e   K u b e r n e t e s   c l u s t e r


Question: What is Deleting a CronJob?

Answer: W h e n   y o u   d o n ' t   n e e d   a   c r o n   j o b   a n y   m o r e ,   d e l e t e   i t   w i t h   k u b e c t l   d e l e t e   c r o n j o b   < c r o n j o b   n a m e > :   k u b e c t l   d e l e t e   c r o n j o b   h e l l o   D e l e t i n g   t h e   c r o n   j o b   r e m o v e s   a l l   t h e   j o b s   a n d   p o d s   i t   c r e a t e d   a n d   s t o p s   i t   f r o m   c r e a t i n g   a d d i t i o n a l   j o b s .   Y o u   c a n   r e a d   m o r e   a b o u t   r e m o v i n g   j o b s   i n   g a r b a g e   c o l l e c t i o n .


Question: What is Containers?

Answer: ContainersTechnology for packaging an application along with its runtime dependencies.This page will discuss containers and container images, as well as their use in operations and solution development.The word container is an overloaded term. Whenever you use the word, check whether your audience uses the same definition.Each container that you run is repeatable; the standardization from having dependencies included means that you get the same behavior wherever you run it.Containers decouple applications from the underlying host infrastructure. This makes deployment easier in different cloud or OS environments.Each node in a Kubernetes cluster runs the containers that form the Pods assigned to that node. Containers in a Pod are co-located and co-scheduled to run on the same node.Container imagesA container image is a ready-to-run software package containing everything needed to run an application: the code and any runtime it requires, application and system libraries, and default values for any essential settings.Containers are intended to be stateless and immutable: you should not change the code of a container that is already running. If you have a containerized application and want to make changes, the correct process is to build a new image that includes the change, then recreate the container to start from the updated image.Container runtimesA fundamental component that empowers Kubernetes to run containers effectively. It is responsible for managing the execution and lifecycle of containers within the Kubernetes environment.Kubernetes supports container runtimes such as containerd, CRI-O, and any other implementation of the Kubernetes CRI (Container Runtime Interface).Usually, you can allow your cluster to pick the default container runtime for a Pod. If you need to use more than one container runtime in your cluster, you can specify the RuntimeClass for a Pod to make sure that Kubernetes runs those containers using a particular container runtime.You can also use RuntimeClass to run different Pods with the same container runtime but with different settings.Container EnvironmentContainer Lifecycle Hooks


Question: How does Containers work?

Answer: ContainersTechnology for packaging an application along with its runtime dependencies.This page will discuss containers and container images, as well as their use in operations and solution development.The word container is an overloaded term. Whenever you use the word, check whether your audience uses the same definition.Each container that you run is repeatable; the standardization from having dependencies included means that you get the same behavior wherever you run it.Containers decouple applications from the underlying host infrastructure. This makes deployment easier in different cloud or OS environments.Each node in a Kubernetes cluster runs the containers that form the Pods assigned to that node. Containers in a Pod are co-located and co-scheduled to run on the same node.Container imagesA container image is a ready-to-run software package containing everything needed to run an application: the code and any runtime it requires, application and system libraries, and default values for any essential settings.Containers are intended to be stateless and immutable: you should not change the code of a container that is already running. If you have a containerized application and want to make changes, the correct process is to build a new image that includes the change, then recreate the container to start from the updated image.Container runtimesA fundamental component that empowers Kubernetes to run containers effectively. It is responsible for managing the execution and lifecycle of containers within the Kubernetes environment.Kubernetes supports container runtimes such as containerd, CRI-O, and any other implementation of the Kubernetes CRI (Container Runtime Interface).Usually, you can allow your cluster to pick the default container runtime for a Pod. If you need to use more than one container runtime in your cluster, you can specify the RuntimeClass for a Pod to make sure that Kubernetes runs those containers using a particular container runtime.You can also use RuntimeClass to run different Pods with the same container runtime but with different settings.Container EnvironmentContainer Lifecycle Hooks


Question: When would you use Containers?

Answer: ContainersTechnology for packaging an application along with its runtime dependencies.This page will discuss containers and container images, as well as their use in operations and solution development.The word container is an overloaded term. Whenever you use the word, check whether your audience uses the same definition.Each container that you run is repeatable; the standardization from having dependencies included means that you get the same behavior wherever you run it.Containers decouple applications from the underlying host infrastructure. This makes deployment easier in different cloud or OS environments.Each node in a Kubernetes cluster runs the containers that form the Pods assigned to that node. Containers in a Pod are co-located and co-scheduled to run on the same node.Container imagesA container image is a ready-to-run software package containing everything needed to run an application: the code and any runtime it requires, application and system libraries, and default values for any essential settings.Containers are intended to be stateless and immutable: you should not change the code of a container that is already running. If you have a containerized application and want to make changes, the correct process is to build a new image that includes the change, then recreate the container to start from the updated image.Container runtimesA fundamental component that empowers Kubernetes to run containers effectively. It is responsible for managing the execution and lifecycle of containers within the Kubernetes environment.Kubernetes supports container runtimes such as containerd, CRI-O, and any other implementation of the Kubernetes CRI (Container Runtime Interface).Usually, you can allow your cluster to pick the default container runtime for a Pod. If you need to use more than one container runtime in your cluster, you can specify the RuntimeClass for a Pod to make sure that Kubernetes runs those containers using a particular container runtime.You can also use RuntimeClass to run different Pods with the same container runtime but with different settings.Container EnvironmentContainer Lifecycle Hooks


Question: What are the benefits of Containers?

Answer: ContainersTechnology for packaging an application along with its runtime dependencies.This page will discuss containers and container images, as well as their use in operations and solution development.The word container is an overloaded term. Whenever you use the word, check whether your audience uses the same definition.Each container that you run is repeatable; the standardization from having dependencies included means that you get the same behavior wherever you run it.Containers decouple applications from the underlying host infrastructure. This makes deployment easier in different cloud or OS environments.Each node in a Kubernetes cluster runs the containers that form the Pods assigned to that node. Containers in a Pod are co-located and co-scheduled to run on the same node.Container imagesA container image is a ready-to-run software package containing everything needed to run an application: the code and any runtime it requires, application and system libraries, and default values for any essential settings.Containers are intended to be stateless and immutable: you should not change the code of a container that is already running. If you have a containerized application and want to make changes, the correct process is to build a new image that includes the change, then recreate the container to start from the updated image.Container runtimesA fundamental component that empowers Kubernetes to run containers effectively. It is responsible for managing the execution and lifecycle of containers within the Kubernetes environment.Kubernetes supports container runtimes such as containerd, CRI-O, and any other implementation of the Kubernetes CRI (Container Runtime Interface).Usually, you can allow your cluster to pick the default container runtime for a Pod. If you need to use more than one container runtime in your cluster, you can specify the RuntimeClass for a Pod to make sure that Kubernetes runs those containers using a particular container runtime.You can also use RuntimeClass to run different Pods with the same container runtime but with different settings.Container EnvironmentContainer Lifecycle Hooks


Question: What is Containers?

Answer: T h i s   p a g e   w i l l   d i s c u s s   c o n t a i n e r s   a n d   c o n t a i n e r   i m a g e s ,   a s   w e l l   a s   t h e i r   u s e   i n   o p e r a t i o n s   a n d   s o l u t i o n   d e v e l o p m e n t .   T h e   w o r d   c o n t a i n e r   i s   a n   o v e r l o a d e d   t e r m .   W h e n e v e r   y o u   u s e   t h e   w o r d ,   c h e c k   w h e t h e r   y o u r   a u d i e n c e   u s e s   t h e   s a m e   d e f i n i t i o n .   E a c h   c o n t a i n e r   t h a t   y o u   r u n   i s   r e p e a t a b l e ;   t h e   s t a n d a r d i z a t i o n   f r o m   h a v i n g   d e p e n d e n c i e s   i n c l u d e d   m e a n s   t h a t   y o u   g e t   t h e   s a m e   b e h a v i o r   w h e r e v e r   y o u   r u n   i t .   C o n t a i n e r s   d e c o u p l e   a p p l i c a t i o n s   f r o m   t h e   u n d e r l y i n g   h o s t   i n f r a s t r u c t u r e .   T h i s   m a k e s   d e p l o y m e n t   e a s i e r   i n   d i f f e r e n t   c l o u d   o r   O S   e n v i r o n m e n t s .   E a c h   n o d e   i n   a   K u b e r n e t e s   c l u s t e r   r u n s   t h e   c o n t a i n e r s   t h a t   f o r m   t h e   P o d s   a s s i g n e d   t o   t h a t   n o d e .   C o n t a i n e r s   i n   a   P o d   a r e   c o - l o c a t e d   a n d   c o - s c h e d u l e d   t o   r u n   o n   t h e   s a m e   n o d e .


Question: What is Container images?

Answer: A   c o n t a i n e r   i m a g e   i s   a   r e a d y - t o - r u n   s o f t w a r e   p a c k a g e   c o n t a i n i n g   e v e r y t h i n g   n e e d e d   t o   r u n   a n   a p p l i c a t i o n :   t h e   c o d e   a n d   a n y   r u n t i m e   i t   r e q u i r e s ,   a p p l i c a t i o n   a n d   s y s t e m   l i b r a r i e s ,   a n d   d e f a u l t   v a l u e s   f o r   a n y   e s s e n t i a l   s e t t i n g s .   C o n t a i n e r s   a r e   i n t e n d e d   t o   b e   s t a t e l e s s   a n d   i m m u t a b l e :   y o u   s h o u l d   n o t   c h a n g e   t h e   c o d e   o f   a   c o n t a i n e r   t h a t   i s   a l r e a d y   r u n n i n g .   I f   y o u   h a v e   a   c o n t a i n e r i z e d   a p p l i c a t i o n   a n d   w a n t   t o   m a k e   c h a n g e s ,   t h e   c o r r e c t   p r o c e s s   i s   t o   b u i l d   a   n e w   i m a g e   t h a t   i n c l u d e s   t h e   c h a n g e ,   t h e n   r e c r e a t e   t h e   c o n t a i n e r   t o   s t a r t   f r o m   t h e   u p d a t e d   i m a g e .


Question: What is Container runtimes?

Answer: A   f u n d a m e n t a l   c o m p o n e n t   t h a t   e m p o w e r s   K u b e r n e t e s   t o   r u n   c o n t a i n e r s   e f f e c t i v e l y .   I t   i s   r e s p o n s i b l e   f o r   m a n a g i n g   t h e   e x e c u t i o n   a n d   l i f e c y c l e   o f   c o n t a i n e r s   w i t h i n   t h e   K u b e r n e t e s   e n v i r o n m e n t .   K u b e r n e t e s   s u p p o r t s   c o n t a i n e r   r u n t i m e s   s u c h   a s   c o n t a i n e r d ,   C R I - O ,   a n d   a n y   o t h e r   i m p l e m e n t a t i o n   o f   t h e   K u b e r n e t e s   C R I   ( C o n t a i n e r   R u n t i m e   I n t e r f a c e ) .   U s u a l l y ,   y o u   c a n   a l l o w   y o u r   c l u s t e r   t o   p i c k   t h e   d e f a u l t   c o n t a i n e r   r u n t i m e   f o r   a   P o d .   I f   y o u   n e e d   t o   u s e   m o r e   t h a n   o n e   c o n t a i n e r   r u n t i m e   i n   y o u r   c l u s t e r ,   y o u   c a n   s p e c i f y   t h e   R u n t i m e C l a s s   f o r   a   P o d   t o   m a k e   s u r e   t h a t   K u b e r n e t e s   r u n s   t h o s e   c o n t a i n e r s   u s i n g   a   p a r t i c u l a r   c o n t a i n e r   r u n t i m e .   Y o u   c a n   a l s o   u s e   R u n t i m e C l a s s   t o   r u n   d i f f e r e n t   P o d s   w i t h   t h e   s a m e   c o n t a i n e r   r u n t i m e   b u t   w i t h   d i f f e r e n t   s e t t i n g s .


Question: What is ConfigMap?

Answer: ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1import "k8s.io/api/core/v1"ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1kind: ConfigMapmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatabinaryData (map[string][]byte)BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.data (map[string]string)Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.immutable (boolean)Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.ConfigMapListConfigMapList is a resource containing a list of ConfigMap objects.apiVersion: v1kind: ConfigMapListmetadata (ListMeta)More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]ConfigMap), requiredItems is the list of ConfigMaps.Operationsget read the specified ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmaps/{name}Parametersname (in path): string, requiredname of the ConfigMapnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (ConfigMap): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmapsParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (ConfigMapList): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/configmapsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendIn


Question: How does ConfigMap work?

Answer: ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1import "k8s.io/api/core/v1"ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1kind: ConfigMapmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatabinaryData (map[string][]byte)BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.data (map[string]string)Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.immutable (boolean)Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.ConfigMapListConfigMapList is a resource containing a list of ConfigMap objects.apiVersion: v1kind: ConfigMapListmetadata (ListMeta)More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]ConfigMap), requiredItems is the list of ConfigMaps.Operationsget read the specified ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmaps/{name}Parametersname (in path): string, requiredname of the ConfigMapnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (ConfigMap): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmapsParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (ConfigMapList): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/configmapsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendIn


Question: When would you use ConfigMap?

Answer: ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1import "k8s.io/api/core/v1"ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1kind: ConfigMapmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatabinaryData (map[string][]byte)BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.data (map[string]string)Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.immutable (boolean)Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.ConfigMapListConfigMapList is a resource containing a list of ConfigMap objects.apiVersion: v1kind: ConfigMapListmetadata (ListMeta)More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]ConfigMap), requiredItems is the list of ConfigMaps.Operationsget read the specified ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmaps/{name}Parametersname (in path): string, requiredname of the ConfigMapnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (ConfigMap): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmapsParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (ConfigMapList): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/configmapsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendIn


Question: What are the benefits of ConfigMap?

Answer: ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1import "k8s.io/api/core/v1"ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1kind: ConfigMapmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatabinaryData (map[string][]byte)BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.data (map[string]string)Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.immutable (boolean)Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.ConfigMapListConfigMapList is a resource containing a list of ConfigMap objects.apiVersion: v1kind: ConfigMapListmetadata (ListMeta)More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]ConfigMap), requiredItems is the list of ConfigMaps.Operationsget read the specified ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmaps/{name}Parametersname (in path): string, requiredname of the ConfigMapnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (ConfigMap): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmapsParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (ConfigMapList): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/configmapsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendIn


Question: What is ConfigMap?

Answer: a p i V e r s i o n :   v 1   i m p o r t   " k 8 s . i o / a p i / c o r e / v 1 "


Question: What is ConfigMap?

Answer: C o n f i g M a p   h o l d s   c o n f i g u r a t i o n   d a t a   f o r   p o d s   t o   c o n s u m e .   a p i V e r s i o n :   v 1 k i n d :   C o n f i g M a p m e t a d a t a   ( O b j e c t M e t a ) S t a n d a r d   o b j e c t ' s   m e t a d a t a .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # m e t a d a t a b i n a r y D a t a   ( m a p [ s t r i n g ] [ ] b y t e ) B i n a r y D a t a   c o n t a i n s   t h e   b i n a r y   d a t a .   E a c h   k e y   m u s t   c o n s i s t   o f   a l p h a n u m e r i c   c h a r a c t e r s ,   ' - ' ,   ' _ '   o r   ' . ' .   B i n a r y D a t a   c a n   c o n t a i n   b y t e   s e q u e n c e s   t h a t   a r e   n o t   i n   t h e   U T F - 8   r a n g e .   T h e   k e y s   s t o r e d   i n   B i n a r y D a t a   m u s t   n o t   o v e r l a p   w i t h   t h e   o n e s   i n   t h e   D a t a   f i e l d ,   t h i s   i s   e n f o r c e d   d u r i n g   v a l i d a t i o n   p r o c e s s .   U s i n g   t h i s   f i e l d   w i l l   r e q u i r e   1 . 1 0 +   a p i s e r v e r   a n d   k u b e l e t . d a t a   ( m a p [ s t r i n g ] s t r i n g ) D a t a   c o n t a i n s   t h e   c o n f i g u r a t i o n   d a t a .   E a c h   k e y   m u s t   c o n s i s t   o f   a l p h a n u m e r i c   c h a r a c t e r s ,   ' - ' ,   ' _ '   o r   ' . ' .   V a l u e s   w i t h   n o n - U T F - 8   b y t e   s e q u e n c e s   m u s t   u s e   t h e   B i n a r y D a t a   f i e l d .   T h e   k e y s   s t o r e d   i n   D a t a   m u s t   n o t   o v e r l a p   w i t h   t h e   k e y s   i n   t h e   B i n a r y D a t a   f i e l d ,   t h i s   i s   e n f o r c e d   d u r i n g   v a l i d a t i o n   p r o c e s s . i m m u t a b l e   ( b o o l e a n ) I m m u t a b l e ,   i f   s e t   t o   t r u e ,   e n s u r e s   t h


Question: What is ConfigMapList?

Answer: C o n f i g M a p L i s t   i s   a   r e s o u r c e   c o n t a i n i n g   a   l i s t   o f   C o n f i g M a p   o b j e c t s .   a p i V e r s i o n :   v 1 k i n d :   C o n f i g M a p L i s t m e t a d a t a   ( L i s t M e t a ) M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # m e t a d a t a i t e m s   ( [ ] C o n f i g M a p ) ,   r e q u i r e d I t e m s   i s   t h e   l i s t   o f   C o n f i g M a p s .   a p i V e r s i o n :   v 1   k i n d :   C o n f i g M a p L i s t   m e t a d a t a   ( L i s t M e t a )   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # m e t a d a t a   i t e m s   ( [ ] C o n f i g M a p ) ,   r e q u i r e d   I t e m s   i s   t h e   l i s t   o f   C o n f i g M a p s .


Question: What is HTTP Request?

Answer: G E T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / c o n f i g m a p s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   C o n f i g M a p n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e   o f   t h e   C o n f i g M a p   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

Answer: 2 0 0   ( C o n f i g M a p ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: G E T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / c o n f i g m a p s


Question: What is Parameters?

Answer: n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e a l l o w W a t c h B o o k m a r k s   ( i n   q u e r y ) :   b o o l e a n a l l o w W a t c h B o o k m a r k s c o n t i n u e   ( i n   q u e r y ) :   s t r i n g c o n t i n u e f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g f i e l d S e l e c t o r l a b e l S e l e c t o r   ( i n   q u e r y ) :   s t r i n g l a b e l S e l e c t o r l i m i t   ( i n   q u e r y ) :   i n t e g e r l i m i t p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y r e s o u r c e V e r s i o n   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n r e s o u r c e V e r s i o n M a t c h   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n M a t c h s e n d I n i t i a l E v e n t s   ( i n   q u e r y ) :   b o o l e a n s e n d I n i t i a l E v e n t s t i m e o u t S e c o n d s   ( i n   q u e r y ) :   i n t e g e r t i m e o u t S e c o n d s w a t c h   ( i n   q u e r y ) :   b o o l e a n w a t c h   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   a l l o w W a t c h B o o k m a r k s   ( i n   q u e r y ) :   b o o l e a n   a l l o w W a t c h B o o k m a r k s   c o n t i n u e   ( i n   q u e r y ) :   s t r i n g   c o n t i n u e   f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g   f i e l d S e l e c t o r   l a b e l S e l e c t o r   ( i n   q u e r y ) :   s t r i n g   l a b e l S e l e c t o r   l i m i t   ( i n   q u e r y ) :   i n t e g e r   l i m i t   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y   r e s o u r c e V e r s i o n   ( i n   q u e r y ) :   s t r i n g   r e s o u r c e V e r s i o n   r e s o u r c e V e r s i o n M a t c h   ( i n   q u e r y ) :   s t r i n g   r e s o u r c e V e r s i o n M a t c h   s e n d I n i t i a l E v e n t s   ( i n   q u e r y ) :   b o o l e a n   s e n d I n i t i a l E v e n


Question: What is Response?

Answer: 2 0 0   ( C o n f i g M a p L i s t ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: G E T   / a p i / v 1 / c o n f i g m a p s


Question: What is Parameters?

Answer: a l l o w W a t c h B o o k m a r k s   ( i n   q u e r y ) :   b o o l e a n a l l o w W a t c h B o o k m a r k s c o n t i n u e   ( i n   q u e r y ) :   s t r i n g c o n t i n u e f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g f i e l d S e l e c t o r l a b e l S e l e c t o r   ( i n   q u e r y ) :   s t r i n g l a b e l S e l e c t o r l i m i t   ( i n   q u e r y ) :   i n t e g e r l i m i t p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y r e s o u r c e V e r s i o n   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n r e s o u r c e V e r s i o n M a t c h   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n M a t c h s e n d I n i t i a l E v e n t s   ( i n   q u e r y ) :   b o o l e a n s e n d I n i t i a l E v e n t s t i m e o u t S e c o n d s   ( i n   q u e r y ) :   i n t e g e r t i m e o u t S e c o n d s w a t c h   ( i n   q u e r y ) :   b o o l e a n w a t c h   a l l o w W a t c h B o o k m a r k s   ( i n   q u e r y ) :   b o o l e a n   a l l o w W a t c h B o o k m a r k s   c o n t i n u e   ( i n   q u e r y ) :   s t r i n g   c o n t i n u e   f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g   f i e l d S e l e c t o r   l a b e l S e l e c t o r   ( i n   q u e r y ) :   s t r i n g   l a b e l S e l e c t o r   l i m i t   ( i n   q u e r y ) :   i n t e g e r   l i m i t   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y   r e s o u r c e V e r s i o n   ( i n   q u e r y ) :   s t r i n g   r e s o u r c e V e r s i o n   r e s o u r c e V e r s i o n M a t c h   ( i n   q u e r y ) :   s t r i n g   r e s o u r c e V e r s i o n M a t c h   s e n d I n i t i a l E v e n t s   ( i n   q u e r y ) :   b o o l e a n   s e n d I n i t i a l E v e n t s   t i m e o u t S e c o n d s   ( i n   q u e r y ) :   i n t e g e r   t i m e o u t S e c o n d s   w a t c h   ( i n   q u e r y ) :   b o o l e a n   w a t c h


Question: What is Response?

Answer: 2 0 0   ( C o n f i g M a p L i s t ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P O S T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / c o n f i g m a p s


Question: What is Parameters?

Answer: n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   C o n f i g M a p ,   r e q u i r e d d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g f i e l d M a n a g e r f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g f i e l d V a l i d a t i o n p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   C o n f i g M a p ,   r e q u i r e d   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g   f i e l d M a n a g e r   f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g   f i e l d V a l i d a t i o n   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

Answer: 2 0 0   ( C o n f i g M a p ) :   O K   2 0 1   ( C o n f i g M a p ) :   C r e a t e d   2 0 2   ( C o n f i g M a p ) :   A c c e p t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P U T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / c o n f i g m a p s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   C o n f i g M a p n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   C o n f i g M a p ,   r e q u i r e d d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g f i e l d M a n a g e r f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g f i e l d V a l i d a t i o n p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e   o f   t h e   C o n f i g M a p   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   C o n f i g M a p ,   r e q u i r e d   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g   f i e l d M a n a g e r   f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g   f i e l d V a l i d a t i o n   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

Answer: 2 0 0   ( C o n f i g M a p ) :   O K   2 0 1   ( C o n f i g M a p ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P A T C H   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / c o n f i g m a p s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   C o n f i g M a p n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   P a t c h ,   r e q u i r e d d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g f i e l d M a n a g e r f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g f i e l d V a l i d a t i o n f o r c e   ( i n   q u e r y ) :   b o o l e a n f o r c e p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e   o f   t h e   C o n f i g M a p   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   P a t c h ,   r e q u i r e d   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g   f i e l d M a n a g e r   f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g   f i e l d V a l i d a t i o n   f o r c e   ( i n   q u e r y ) :   b o o l e a n   f o r c e   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

Answer: 2 0 0   ( C o n f i g M a p ) :   O K   2 0 1   ( C o n f i g M a p ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: D E L E T E   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / c o n f i g m a p s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   C o n f i g M a p n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   D e l e t e O p t i o n s d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n g r a c e P e r i o d S e c o n d s   ( i n   q u e r y ) :   i n t e g e r g r a c e P e r i o d S e c o n d s i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   ( i n   q u e r y ) :   b o o l e a n i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y p r o p a g a t i o n P o l i c y   ( i n   q u e r y ) :   s t r i n g p r o p a g a t i o n P o l i c y   n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e   o f   t h e   C o n f i g M a p   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   D e l e t e O p t i o n s   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   g r a c e P e r i o d S e c o n d s   ( i n   q u e r y ) :   i n t e g e r   g r a c e P e r i o d S e c o n d s   i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   ( i n   q u e r y ) :   b o o l e a n   i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y   p r o p a g a t i o n P o l i c y   ( i n   q u e r y ) :   s t r i n g   p r o p a g a t i o n P o l i c y


Question: What is Response?

Answer: 2 0 0   ( S t a t u s ) :   O K   2 0 2   ( S t a t u s ) :   A c c e p t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: D E L E T E   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / c o n f i g m a p s


Question: What is Parameters?

Answer: n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   D e l e t e O p t i o n s c o n t i n u e   ( i n   q u e r y ) :   s t r i n g c o n t i n u e d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g f i e l d S e l e c t o r g r a c e P e r i o d S e c o n d s   ( i n   q u e r y ) :   i n t e g e r g r a c e P e r i o d S e c o n d s i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   ( i n   q u e r y ) :   b o o l e a n i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l l a b e l S e l e c t o r   ( i n   q u e r y ) :   s t r i n g l a b e l S e l e c t o r l i m i t   ( i n   q u e r y ) :   i n t e g e r l i m i t p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y p r o p a g a t i o n P o l i c y   ( i n   q u e r y ) :   s t r i n g p r o p a g a t i o n P o l i c y r e s o u r c e V e r s i o n   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n r e s o u r c e V e r s i o n M a t c h   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n M a t c h s e n d I n i t i a l E v e n t s   ( i n   q u e r y ) :   b o o l e a n s e n d I n i t i a l E v e n t s t i m e o u t S e c o n d s   ( i n   q u e r y ) :   i n t e g e r t i m e o u t S e c o n d s   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   D e l e t e O p t i o n s   c o n t i n u e   ( i n   q u e r y ) :   s t r i n g   c o n t i n u e   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g   f i e l d S e l e c t o r   g r a c e P e r i o d S e c o n d s   ( i n   q u e r y ) :   i n t e g e r   g r a c e P e r i o d S e c o n d s   i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g


Question: What is Response?

Answer: 2 0 0   ( S t a t u s ) :   O K   4 0 1 :   U n a u t h o r i z e d   T h i s   p a g e   i s   a u t o m a t i c a l l y   g e n e r a t e d .   I f   y o u   p l a n   t o   r e p o r t   a n   i s s u e   w i t h   t h i s   p a g e ,   m e n t i o n   t h a t   t h e   p a g e   i s   a u t o - g e n e r a t e d   i n   y o u r   i s s u e   d e s c r i p t i o n .   T h e   f i x   m a y   n e e d   t o   h a p p e n   e l s e w h e r e   i n   t h e   K u b e r n e t e s   p r o j e c t .


Question: What is Participating in SIG Docs?

Answer: Participating in SIG DocsSIG Docs is one of the special interest groups within the Kubernetes project, focused on writing, updating, and maintaining the documentation for Kubernetes as a whole. See SIG Docs from the community github repo for more information about the SIG.SIG Docs welcomes content and reviews from all contributors. Anyone can open a pull request (PR), and anyone is welcome to file issues about content or comment on pull requests in progress.You can also become a member, reviewer, or approver. These roles require greater access and entail certain responsibilities for approving and committing changes. See community-membership for more information on how membership works within the Kubernetes community.The rest of this document outlines some unique ways these roles function within SIG Docs, which is responsible for maintaining one of the most public-facing aspects of Kubernetes -- the Kubernetes website and documentation.SIG Docs chairpersonEach SIG, including SIG Docs, selects one or more SIG members to act as chairpersons. These are points of contact between SIG Docs and other parts of the Kubernetes organization. They require extensive knowledge of the structure of the Kubernetes project as a whole and how SIG Docs works within it. See Leadership for the current list of chairpersons.SIG Docs teams and automationAutomation in SIG Docs relies on two different mechanisms: GitHub teams and OWNERS files.GitHub teamsThere are two categories of SIG Docs teams on GitHub:@sig-docs-{language}-owners are approvers and leads@sig-docs-{language}-reviews are reviewersEach can be referenced with their @name in GitHub comments to communicate with everyone in that group.Sometimes Prow and GitHub teams overlap without matching exactly. For assignment of issues, pull requests, and to support PR approvals, the automation uses information from OWNERS files.OWNERS files and front-matterThe Kubernetes project uses an automation tool called prow for automation related to GitHub issues and pull requests. The Kubernetes website repository uses two prow plugins:blunderbussapproveThese two plugins use the OWNERS and OWNERS_ALIASES files in the top level of the kubernetes/website GitHub repository to control how prow works within the repository.An OWNERS file contains a list of people who are SIG Docs reviewers and approvers. OWNERS files can also exist in subdirectories, and can override who can act as a reviewer or approver of files in that subdirectory and its descendants. For more information about OWNERS files in general, see OWNERS.In addition, an individual Markdown file can list reviewers and approvers in its front-matter, either by listing individual GitHub usernames or GitHub groups.The combination of OWNERS files and front-matter in Markdown files determines the advice PR owners get from automated systems about who to ask for technical and editorial review of their PR.How merging worksWhen a pull request is merged to the branch used to publish con


Question: How does Participating in SIG Docs work?

Answer: Participating in SIG DocsSIG Docs is one of the special interest groups within the Kubernetes project, focused on writing, updating, and maintaining the documentation for Kubernetes as a whole. See SIG Docs from the community github repo for more information about the SIG.SIG Docs welcomes content and reviews from all contributors. Anyone can open a pull request (PR), and anyone is welcome to file issues about content or comment on pull requests in progress.You can also become a member, reviewer, or approver. These roles require greater access and entail certain responsibilities for approving and committing changes. See community-membership for more information on how membership works within the Kubernetes community.The rest of this document outlines some unique ways these roles function within SIG Docs, which is responsible for maintaining one of the most public-facing aspects of Kubernetes -- the Kubernetes website and documentation.SIG Docs chairpersonEach SIG, including SIG Docs, selects one or more SIG members to act as chairpersons. These are points of contact between SIG Docs and other parts of the Kubernetes organization. They require extensive knowledge of the structure of the Kubernetes project as a whole and how SIG Docs works within it. See Leadership for the current list of chairpersons.SIG Docs teams and automationAutomation in SIG Docs relies on two different mechanisms: GitHub teams and OWNERS files.GitHub teamsThere are two categories of SIG Docs teams on GitHub:@sig-docs-{language}-owners are approvers and leads@sig-docs-{language}-reviews are reviewersEach can be referenced with their @name in GitHub comments to communicate with everyone in that group.Sometimes Prow and GitHub teams overlap without matching exactly. For assignment of issues, pull requests, and to support PR approvals, the automation uses information from OWNERS files.OWNERS files and front-matterThe Kubernetes project uses an automation tool called prow for automation related to GitHub issues and pull requests. The Kubernetes website repository uses two prow plugins:blunderbussapproveThese two plugins use the OWNERS and OWNERS_ALIASES files in the top level of the kubernetes/website GitHub repository to control how prow works within the repository.An OWNERS file contains a list of people who are SIG Docs reviewers and approvers. OWNERS files can also exist in subdirectories, and can override who can act as a reviewer or approver of files in that subdirectory and its descendants. For more information about OWNERS files in general, see OWNERS.In addition, an individual Markdown file can list reviewers and approvers in its front-matter, either by listing individual GitHub usernames or GitHub groups.The combination of OWNERS files and front-matter in Markdown files determines the advice PR owners get from automated systems about who to ask for technical and editorial review of their PR.How merging worksWhen a pull request is merged to the branch used to publish con


Question: When would you use Participating in SIG Docs?

Answer: Participating in SIG DocsSIG Docs is one of the special interest groups within the Kubernetes project, focused on writing, updating, and maintaining the documentation for Kubernetes as a whole. See SIG Docs from the community github repo for more information about the SIG.SIG Docs welcomes content and reviews from all contributors. Anyone can open a pull request (PR), and anyone is welcome to file issues about content or comment on pull requests in progress.You can also become a member, reviewer, or approver. These roles require greater access and entail certain responsibilities for approving and committing changes. See community-membership for more information on how membership works within the Kubernetes community.The rest of this document outlines some unique ways these roles function within SIG Docs, which is responsible for maintaining one of the most public-facing aspects of Kubernetes -- the Kubernetes website and documentation.SIG Docs chairpersonEach SIG, including SIG Docs, selects one or more SIG members to act as chairpersons. These are points of contact between SIG Docs and other parts of the Kubernetes organization. They require extensive knowledge of the structure of the Kubernetes project as a whole and how SIG Docs works within it. See Leadership for the current list of chairpersons.SIG Docs teams and automationAutomation in SIG Docs relies on two different mechanisms: GitHub teams and OWNERS files.GitHub teamsThere are two categories of SIG Docs teams on GitHub:@sig-docs-{language}-owners are approvers and leads@sig-docs-{language}-reviews are reviewersEach can be referenced with their @name in GitHub comments to communicate with everyone in that group.Sometimes Prow and GitHub teams overlap without matching exactly. For assignment of issues, pull requests, and to support PR approvals, the automation uses information from OWNERS files.OWNERS files and front-matterThe Kubernetes project uses an automation tool called prow for automation related to GitHub issues and pull requests. The Kubernetes website repository uses two prow plugins:blunderbussapproveThese two plugins use the OWNERS and OWNERS_ALIASES files in the top level of the kubernetes/website GitHub repository to control how prow works within the repository.An OWNERS file contains a list of people who are SIG Docs reviewers and approvers. OWNERS files can also exist in subdirectories, and can override who can act as a reviewer or approver of files in that subdirectory and its descendants. For more information about OWNERS files in general, see OWNERS.In addition, an individual Markdown file can list reviewers and approvers in its front-matter, either by listing individual GitHub usernames or GitHub groups.The combination of OWNERS files and front-matter in Markdown files determines the advice PR owners get from automated systems about who to ask for technical and editorial review of their PR.How merging worksWhen a pull request is merged to the branch used to publish con


Question: What are the benefits of Participating in SIG Docs?

Answer: Participating in SIG DocsSIG Docs is one of the special interest groups within the Kubernetes project, focused on writing, updating, and maintaining the documentation for Kubernetes as a whole. See SIG Docs from the community github repo for more information about the SIG.SIG Docs welcomes content and reviews from all contributors. Anyone can open a pull request (PR), and anyone is welcome to file issues about content or comment on pull requests in progress.You can also become a member, reviewer, or approver. These roles require greater access and entail certain responsibilities for approving and committing changes. See community-membership for more information on how membership works within the Kubernetes community.The rest of this document outlines some unique ways these roles function within SIG Docs, which is responsible for maintaining one of the most public-facing aspects of Kubernetes -- the Kubernetes website and documentation.SIG Docs chairpersonEach SIG, including SIG Docs, selects one or more SIG members to act as chairpersons. These are points of contact between SIG Docs and other parts of the Kubernetes organization. They require extensive knowledge of the structure of the Kubernetes project as a whole and how SIG Docs works within it. See Leadership for the current list of chairpersons.SIG Docs teams and automationAutomation in SIG Docs relies on two different mechanisms: GitHub teams and OWNERS files.GitHub teamsThere are two categories of SIG Docs teams on GitHub:@sig-docs-{language}-owners are approvers and leads@sig-docs-{language}-reviews are reviewersEach can be referenced with their @name in GitHub comments to communicate with everyone in that group.Sometimes Prow and GitHub teams overlap without matching exactly. For assignment of issues, pull requests, and to support PR approvals, the automation uses information from OWNERS files.OWNERS files and front-matterThe Kubernetes project uses an automation tool called prow for automation related to GitHub issues and pull requests. The Kubernetes website repository uses two prow plugins:blunderbussapproveThese two plugins use the OWNERS and OWNERS_ALIASES files in the top level of the kubernetes/website GitHub repository to control how prow works within the repository.An OWNERS file contains a list of people who are SIG Docs reviewers and approvers. OWNERS files can also exist in subdirectories, and can override who can act as a reviewer or approver of files in that subdirectory and its descendants. For more information about OWNERS files in general, see OWNERS.In addition, an individual Markdown file can list reviewers and approvers in its front-matter, either by listing individual GitHub usernames or GitHub groups.The combination of OWNERS files and front-matter in Markdown files determines the advice PR owners get from automated systems about who to ask for technical and editorial review of their PR.How merging worksWhen a pull request is merged to the branch used to publish con


Question: What is Participating in SIG Docs?

Answer: S I G   D o c s   i s   o n e   o f   t h e   s p e c i a l   i n t e r e s t   g r o u p s   w i t h i n   t h e   K u b e r n e t e s   p r o j e c t ,   f o c u s e d   o n   w r i t i n g ,   u p d a t i n g ,   a n d   m a i n t a i n i n g   t h e   d o c u m e n t a t i o n   f o r   K u b e r n e t e s   a s   a   w h o l e .   S e e   S I G   D o c s   f r o m   t h e   c o m m u n i t y   g i t h u b   r e p o   f o r   m o r e   i n f o r m a t i o n   a b o u t   t h e   S I G .   S I G   D o c s   w e l c o m e s   c o n t e n t   a n d   r e v i e w s   f r o m   a l l   c o n t r i b u t o r s .   A n y o n e   c a n   o p e n   a   p u l l   r e q u e s t   ( P R ) ,   a n d   a n y o n e   i s   w e l c o m e   t o   f i l e   i s s u e s   a b o u t   c o n t e n t   o r   c o m m e n t   o n   p u l l   r e q u e s t s   i n   p r o g r e s s .   Y o u   c a n   a l s o   b e c o m e   a   m e m b e r ,   r e v i e w e r ,   o r   a p p r o v e r .   T h e s e   r o l e s   r e q u i r e   g r e a t e r   a c c e s s   a n d   e n t a i l   c e r t a i n   r e s p o n s i b i l i t i e s   f o r   a p p r o v i n g   a n d   c o m m i t t i n g   c h a n g e s .   S e e   c o m m u n i t y - m e m b e r s h i p   f o r   m o r e   i n f o r m a t i o n   o n   h o w   m e m b e r s h i p   w o r k s   w i t h i n   t h e   K u b e r n e t e s   c o m m u n i t y .   T h e   r e s t   o f   t h i s   d o c u m e n t   o u t l i n e s   s o m e   u n i q u e   w a y s   t h e s e   r o l e s   f u n c t i o n   w i t h i n   S I G   D o c s ,   w h i c h   i s   r e s p o n s i b l e   f o r   m a i n t a i n i n g   o n e   o f   t h e   m o s t   p u b l i c - f a c i n g   a s p e c t s   o f   K u b e r n e t e s   - -   t h e   K u b e r n e t e s   w e b s i t e   a n d   d o c u m e n t a t i o n .


Question: What is SIG Docs chairperson?

Answer: E a c h   S I G ,   i n c l u d i n g   S I G   D o c s ,   s e l e c t s   o n e   o r   m o r e   S I G   m e m b e r s   t o   a c t   a s   c h a i r p e r s o n s .   T h e s e   a r e   p o i n t s   o f   c o n t a c t   b e t w e e n   S I G   D o c s   a n d   o t h e r   p a r t s   o f   t h e   K u b e r n e t e s   o r g a n i z a t i o n .   T h e y   r e q u i r e   e x t e n s i v e   k n o w l e d g e   o f   t h e   s t r u c t u r e   o f   t h e   K u b e r n e t e s   p r o j e c t   a s   a   w h o l e   a n d   h o w   S I G   D o c s   w o r k s   w i t h i n   i t .   S e e   L e a d e r s h i p   f o r   t h e   c u r r e n t   l i s t   o f   c h a i r p e r s o n s .


Question: What is SIG Docs teams and automation?

Answer: A u t o m a t i o n   i n   S I G   D o c s   r e l i e s   o n   t w o   d i f f e r e n t   m e c h a n i s m s :   G i t H u b   t e a m s   a n d   O W N E R S   f i l e s .


Question: What is GitHub teams?

Answer: T h e r e   a r e   t w o   c a t e g o r i e s   o f   S I G   D o c s   t e a m s   o n   G i t H u b :   @ s i g - d o c s - { l a n g u a g e } - o w n e r s   a r e   a p p r o v e r s   a n d   l e a d s @ s i g - d o c s - { l a n g u a g e } - r e v i e w s   a r e   r e v i e w e r s   E a c h   c a n   b e   r e f e r e n c e d   w i t h   t h e i r   @ n a m e   i n   G i t H u b   c o m m e n t s   t o   c o m m u n i c a t e   w i t h   e v e r y o n e   i n   t h a t   g r o u p .   S o m e t i m e s   P r o w   a n d   G i t H u b   t e a m s   o v e r l a p   w i t h o u t   m a t c h i n g   e x a c t l y .   F o r   a s s i g n m e n t   o f   i s s u e s ,   p u l l   r e q u e s t s ,   a n d   t o   s u p p o r t   P R   a p p r o v a l s ,   t h e   a u t o m a t i o n   u s e s   i n f o r m a t i o n   f r o m   O W N E R S   f i l e s .


Question: What is OWNERS files and front-matter?

Answer: T h e   K u b e r n e t e s   p r o j e c t   u s e s   a n   a u t o m a t i o n   t o o l   c a l l e d   p r o w   f o r   a u t o m a t i o n   r e l a t e d   t o   G i t H u b   i s s u e s   a n d   p u l l   r e q u e s t s .   T h e   K u b e r n e t e s   w e b s i t e   r e p o s i t o r y   u s e s   t w o   p r o w   p l u g i n s :   b l u n d e r b u s s a p p r o v e   T h e s e   t w o   p l u g i n s   u s e   t h e   O W N E R S   a n d   O W N E R S _ A L I A S E S   f i l e s   i n   t h e   t o p   l e v e l   o f   t h e   k u b e r n e t e s / w e b s i t e   G i t H u b   r e p o s i t o r y   t o   c o n t r o l   h o w   p r o w   w o r k s   w i t h i n   t h e   r e p o s i t o r y .   A n   O W N E R S   f i l e   c o n t a i n s   a   l i s t   o f   p e o p l e   w h o   a r e   S I G   D o c s   r e v i e w e r s   a n d   a p p r o v e r s .   O W N E R S   f i l e s   c a n   a l s o   e x i s t   i n   s u b d i r e c t o r i e s ,   a n d   c a n   o v e r r i d e   w h o   c a n   a c t   a s   a   r e v i e w e r   o r   a p p r o v e r   o f   f i l e s   i n   t h a t   s u b d i r e c t o r y   a n d   i t s   d e s c e n d a n t s .   F o r   m o r e   i n f o r m a t i o n   a b o u t   O W N E R S   f i l e s   i n   g e n e r a l ,   s e e   O W N E R S .   I n   a d d i t i o n ,   a n   i n d i v i d u a l   M a r k d o w n   f i l e   c a n   l i s t   r e v i e w e r s   a n d   a p p r o v e r s   i n   i t s   f r o n t - m a t t e r ,   e i t h e r   b y   l i s t i n g   i n d i v i d u a l   G i t H u b   u s e r n a m e s   o r   G i t H u b   g r o u p s .   T h e   c o m b i n a t i o n   o f   O W N E R S   f i l e s   a n d   f r o n t - m a t t e r   i n   M a r k d o w n   f i l e s   d e t e r m i n e s   t h e   a d v i c e   P R   o w n e r s   g e t   f r o m   a u t o m a t e d   s y s t e m s   a b o u t   w h o   t o   a s k   f o r   t e c h n i c a l   a n d   e d i t o r i a l   r e v i e w   o


Question: What is How merging works?

Answer: W h e n   a   p u l l   r e q u e s t   i s   m e r g e d   t o   t h e   b r a n c h   u s e d   t o   p u b l i s h   c o n t e n t ,   t h a t   c o n t e n t   i s   p u b l i s h e d   t o   h t t p s : / / k u b e r n e t e s . i o .   T o   e n s u r e   t h a t   t h e   q u a l i t y   o f   o u r   p u b l i s h e d   c o n t e n t   i s   h i g h ,   w e   l i m i t   m e r g i n g   p u l l   r e q u e s t s   t o   S I G   D o c s   a p p r o v e r s .   H e r e ' s   h o w   i t   w o r k s .   W h e n   a   p u l l   r e q u e s t   h a s   b o t h   t h e   l g t m   a n d   a p p r o v e   l a b e l s ,   h a s   n o   h o l d   l a b e l s ,   a n d   a l l   t e s t s   a r e   p a s s i n g ,   t h e   p u l l   r e q u e s t   m e r g e s   a u t o m a t i c a l l y . K u b e r n e t e s   o r g a n i z a t i o n   m e m b e r s   a n d   S I G   D o c s   a p p r o v e r s   c a n   a d d   c o m m e n t s   t o   p r e v e n t   a u t o m a t i c   m e r g i n g   o f   a   g i v e n   p u l l   r e q u e s t   ( b y   a d d i n g   a   / h o l d   c o m m e n t   o r   w i t h h o l d i n g   a   / l g t m   c o m m e n t ) . A n y   K u b e r n e t e s   m e m b e r   c a n   a d d   t h e   l g t m   l a b e l   b y   a d d i n g   a   / l g t m   c o m m e n t . O n l y   S I G   D o c s   a p p r o v e r s   c a n   m e r g e   a   p u l l   r e q u e s t   b y   a d d i n g   a n   / a p p r o v e   c o m m e n t .   S o m e   a p p r o v e r s   a l s o   p e r f o r m   a d d i t i o n a l   s p e c i f i c   r o l e s ,   s u c h   a s   P R   W r a n g l e r   o r   S I G   D o c s   c h a i r p e r s o n .


Question: What is What's next?

Answer: F o r   m o r e   i n f o r m a t i o n   a b o u t   c o n t r i b u t i n g   t o   t h e   K u b e r n e t e s   d o c u m e n t a t i o n ,   s e e :   C o n t r i b u t i n g   n e w   c o n t e n t R e v i e w i n g   c o n t e n t D o c u m e n t a t i o n   s t y l e   g u i d e


Question: What is Pod Priority and Preemption?

Answer: Pod Priority and PreemptionFEATURE STATE: Kubernetes v1.14 [stable]Pods can have priority. Priority indicates the importance of a Pod relative to other Pods. If a Pod cannot be scheduled, the scheduler tries to preempt (evict) lower priority Pods to make scheduling of the pending Pod possible.Warning:In a cluster where not all users are trusted, a malicious user could create Pods at the highest possible priorities, causing other Pods to be evicted/not get scheduled. An administrator can use ResourceQuota to prevent users from creating pods at high priorities.See limit Priority Class consumption by default for details.How to use priority and preemptionTo use priority and preemption:Add one or more PriorityClasses.Create Pods withpriorityClassName set to one of the added PriorityClasses. Of course you do not need to create the Pods directly; normally you would add priorityClassName to the Pod template of a collection object like a Deployment.Keep reading for more information about these steps.Note:Kubernetes already ships with two PriorityClasses: system-cluster-critical and system-node-critical. These are common classes and are used to ensure that critical components are always scheduled first.PriorityClassA PriorityClass is a non-namespaced object that defines a mapping from a priority class name to the integer value of the priority. The name is specified in the name field of the PriorityClass object's metadata. The value is specified in the required value field. The higher the value, the higher the priority. The name of a PriorityClass object must be a valid DNS subdomain name, and it cannot be prefixed with system-.A PriorityClass object can have any 32-bit integer value smaller than or equal to 1 billion. This means that the range of values for a PriorityClass object is from -2147483648 to 1000000000 inclusive. Larger numbers are reserved for built-in PriorityClasses that represent critical system Pods. A cluster admin should create one PriorityClass object for each such mapping that they want.PriorityClass also has two optional fields: globalDefault and description. The globalDefault field indicates that the value of this PriorityClass should be used for Pods without a priorityClassName. Only one PriorityClass with globalDefault set to true can exist in the system. If there is no PriorityClass with globalDefault set, the priority of Pods with no priorityClassName is zero.The description field is an arbitrary string. It is meant to tell users of the cluster when they should use this PriorityClass.Notes about PodPriority and existing clustersIf you upgrade an existing cluster without this feature, the priority of your existing Pods is effectively zero.Addition of a PriorityClass with globalDefault set to true does not change the priorities of existing Pods. The value of such a PriorityClass is used only for Pods created after the PriorityClass is added.If you delete a PriorityClass, existing Pods that use the name of the deleted PriorityClass r


Question: How does Pod Priority and Preemption work?

Answer: Pod Priority and PreemptionFEATURE STATE: Kubernetes v1.14 [stable]Pods can have priority. Priority indicates the importance of a Pod relative to other Pods. If a Pod cannot be scheduled, the scheduler tries to preempt (evict) lower priority Pods to make scheduling of the pending Pod possible.Warning:In a cluster where not all users are trusted, a malicious user could create Pods at the highest possible priorities, causing other Pods to be evicted/not get scheduled. An administrator can use ResourceQuota to prevent users from creating pods at high priorities.See limit Priority Class consumption by default for details.How to use priority and preemptionTo use priority and preemption:Add one or more PriorityClasses.Create Pods withpriorityClassName set to one of the added PriorityClasses. Of course you do not need to create the Pods directly; normally you would add priorityClassName to the Pod template of a collection object like a Deployment.Keep reading for more information about these steps.Note:Kubernetes already ships with two PriorityClasses: system-cluster-critical and system-node-critical. These are common classes and are used to ensure that critical components are always scheduled first.PriorityClassA PriorityClass is a non-namespaced object that defines a mapping from a priority class name to the integer value of the priority. The name is specified in the name field of the PriorityClass object's metadata. The value is specified in the required value field. The higher the value, the higher the priority. The name of a PriorityClass object must be a valid DNS subdomain name, and it cannot be prefixed with system-.A PriorityClass object can have any 32-bit integer value smaller than or equal to 1 billion. This means that the range of values for a PriorityClass object is from -2147483648 to 1000000000 inclusive. Larger numbers are reserved for built-in PriorityClasses that represent critical system Pods. A cluster admin should create one PriorityClass object for each such mapping that they want.PriorityClass also has two optional fields: globalDefault and description. The globalDefault field indicates that the value of this PriorityClass should be used for Pods without a priorityClassName. Only one PriorityClass with globalDefault set to true can exist in the system. If there is no PriorityClass with globalDefault set, the priority of Pods with no priorityClassName is zero.The description field is an arbitrary string. It is meant to tell users of the cluster when they should use this PriorityClass.Notes about PodPriority and existing clustersIf you upgrade an existing cluster without this feature, the priority of your existing Pods is effectively zero.Addition of a PriorityClass with globalDefault set to true does not change the priorities of existing Pods. The value of such a PriorityClass is used only for Pods created after the PriorityClass is added.If you delete a PriorityClass, existing Pods that use the name of the deleted PriorityClass r


Question: When would you use Pod Priority and Preemption?

Answer: Pod Priority and PreemptionFEATURE STATE: Kubernetes v1.14 [stable]Pods can have priority. Priority indicates the importance of a Pod relative to other Pods. If a Pod cannot be scheduled, the scheduler tries to preempt (evict) lower priority Pods to make scheduling of the pending Pod possible.Warning:In a cluster where not all users are trusted, a malicious user could create Pods at the highest possible priorities, causing other Pods to be evicted/not get scheduled. An administrator can use ResourceQuota to prevent users from creating pods at high priorities.See limit Priority Class consumption by default for details.How to use priority and preemptionTo use priority and preemption:Add one or more PriorityClasses.Create Pods withpriorityClassName set to one of the added PriorityClasses. Of course you do not need to create the Pods directly; normally you would add priorityClassName to the Pod template of a collection object like a Deployment.Keep reading for more information about these steps.Note:Kubernetes already ships with two PriorityClasses: system-cluster-critical and system-node-critical. These are common classes and are used to ensure that critical components are always scheduled first.PriorityClassA PriorityClass is a non-namespaced object that defines a mapping from a priority class name to the integer value of the priority. The name is specified in the name field of the PriorityClass object's metadata. The value is specified in the required value field. The higher the value, the higher the priority. The name of a PriorityClass object must be a valid DNS subdomain name, and it cannot be prefixed with system-.A PriorityClass object can have any 32-bit integer value smaller than or equal to 1 billion. This means that the range of values for a PriorityClass object is from -2147483648 to 1000000000 inclusive. Larger numbers are reserved for built-in PriorityClasses that represent critical system Pods. A cluster admin should create one PriorityClass object for each such mapping that they want.PriorityClass also has two optional fields: globalDefault and description. The globalDefault field indicates that the value of this PriorityClass should be used for Pods without a priorityClassName. Only one PriorityClass with globalDefault set to true can exist in the system. If there is no PriorityClass with globalDefault set, the priority of Pods with no priorityClassName is zero.The description field is an arbitrary string. It is meant to tell users of the cluster when they should use this PriorityClass.Notes about PodPriority and existing clustersIf you upgrade an existing cluster without this feature, the priority of your existing Pods is effectively zero.Addition of a PriorityClass with globalDefault set to true does not change the priorities of existing Pods. The value of such a PriorityClass is used only for Pods created after the PriorityClass is added.If you delete a PriorityClass, existing Pods that use the name of the deleted PriorityClass r


Question: What are the benefits of Pod Priority and Preemption?

Answer: Pod Priority and PreemptionFEATURE STATE: Kubernetes v1.14 [stable]Pods can have priority. Priority indicates the importance of a Pod relative to other Pods. If a Pod cannot be scheduled, the scheduler tries to preempt (evict) lower priority Pods to make scheduling of the pending Pod possible.Warning:In a cluster where not all users are trusted, a malicious user could create Pods at the highest possible priorities, causing other Pods to be evicted/not get scheduled. An administrator can use ResourceQuota to prevent users from creating pods at high priorities.See limit Priority Class consumption by default for details.How to use priority and preemptionTo use priority and preemption:Add one or more PriorityClasses.Create Pods withpriorityClassName set to one of the added PriorityClasses. Of course you do not need to create the Pods directly; normally you would add priorityClassName to the Pod template of a collection object like a Deployment.Keep reading for more information about these steps.Note:Kubernetes already ships with two PriorityClasses: system-cluster-critical and system-node-critical. These are common classes and are used to ensure that critical components are always scheduled first.PriorityClassA PriorityClass is a non-namespaced object that defines a mapping from a priority class name to the integer value of the priority. The name is specified in the name field of the PriorityClass object's metadata. The value is specified in the required value field. The higher the value, the higher the priority. The name of a PriorityClass object must be a valid DNS subdomain name, and it cannot be prefixed with system-.A PriorityClass object can have any 32-bit integer value smaller than or equal to 1 billion. This means that the range of values for a PriorityClass object is from -2147483648 to 1000000000 inclusive. Larger numbers are reserved for built-in PriorityClasses that represent critical system Pods. A cluster admin should create one PriorityClass object for each such mapping that they want.PriorityClass also has two optional fields: globalDefault and description. The globalDefault field indicates that the value of this PriorityClass should be used for Pods without a priorityClassName. Only one PriorityClass with globalDefault set to true can exist in the system. If there is no PriorityClass with globalDefault set, the priority of Pods with no priorityClassName is zero.The description field is an arbitrary string. It is meant to tell users of the cluster when they should use this PriorityClass.Notes about PodPriority and existing clustersIf you upgrade an existing cluster without this feature, the priority of your existing Pods is effectively zero.Addition of a PriorityClass with globalDefault set to true does not change the priorities of existing Pods. The value of such a PriorityClass is used only for Pods created after the PriorityClass is added.If you delete a PriorityClass, existing Pods that use the name of the deleted PriorityClass r


Question: What is Pod Priority and Preemption?

Answer: P o d s   c a n   h a v e   p r i o r i t y .   P r i o r i t y   i n d i c a t e s   t h e   i m p o r t a n c e   o f   a   P o d   r e l a t i v e   t o   o t h e r   P o d s .   I f   a   P o d   c a n n o t   b e   s c h e d u l e d ,   t h e   s c h e d u l e r   t r i e s   t o   p r e e m p t   ( e v i c t )   l o w e r   p r i o r i t y   P o d s   t o   m a k e   s c h e d u l i n g   o f   t h e   p e n d i n g   P o d   p o s s i b l e .


Question: What is Warning:?

Answer: I n   a   c l u s t e r   w h e r e   n o t   a l l   u s e r s   a r e   t r u s t e d ,   a   m a l i c i o u s   u s e r   c o u l d   c r e a t e   P o d s   a t   t h e   h i g h e s t   p o s s i b l e   p r i o r i t i e s ,   c a u s i n g   o t h e r   P o d s   t o   b e   e v i c t e d / n o t   g e t   s c h e d u l e d .   A n   a d m i n i s t r a t o r   c a n   u s e   R e s o u r c e Q u o t a   t o   p r e v e n t   u s e r s   f r o m   c r e a t i n g   p o d s   a t   h i g h   p r i o r i t i e s .   S e e   l i m i t   P r i o r i t y   C l a s s   c o n s u m p t i o n   b y   d e f a u l t   f o r   d e t a i l s .


Question: What is How to use priority and preemption?

Answer: T o   u s e   p r i o r i t y   a n d   p r e e m p t i o n :   A d d   o n e   o r   m o r e   P r i o r i t y C l a s s e s . C r e a t e   P o d s   w i t h p r i o r i t y C l a s s N a m e   s e t   t o   o n e   o f   t h e   a d d e d   P r i o r i t y C l a s s e s .   O f   c o u r s e   y o u   d o   n o t   n e e d   t o   c r e a t e   t h e   P o d s   d i r e c t l y ;   n o r m a l l y   y o u   w o u l d   a d d   p r i o r i t y C l a s s N a m e   t o   t h e   P o d   t e m p l a t e   o f   a   c o l l e c t i o n   o b j e c t   l i k e   a   D e p l o y m e n t .   A d d   o n e   o r   m o r e   P r i o r i t y C l a s s e s .   C r e a t e   P o d s   w i t h p r i o r i t y C l a s s N a m e   s e t   t o   o n e   o f   t h e   a d d e d   P r i o r i t y C l a s s e s .   O f   c o u r s e   y o u   d o   n o t   n e e d   t o   c r e a t e   t h e   P o d s   d i r e c t l y ;   n o r m a l l y   y o u   w o u l d   a d d   p r i o r i t y C l a s s N a m e   t o   t h e   P o d   t e m p l a t e   o f   a   c o l l e c t i o n   o b j e c t   l i k e   a   D e p l o y m e n t .   K e e p   r e a d i n g   f o r   m o r e   i n f o r m a t i o n   a b o u t   t h e s e   s t e p s .


Question: What is PriorityClass?

Answer: A   P r i o r i t y C l a s s   i s   a   n o n - n a m e s p a c e d   o b j e c t   t h a t   d e f i n e s   a   m a p p i n g   f r o m   a   p r i o r i t y   c l a s s   n a m e   t o   t h e   i n t e g e r   v a l u e   o f   t h e   p r i o r i t y .   T h e   n a m e   i s   s p e c i f i e d   i n   t h e   n a m e   f i e l d   o f   t h e   P r i o r i t y C l a s s   o b j e c t ' s   m e t a d a t a .   T h e   v a l u e   i s   s p e c i f i e d   i n   t h e   r e q u i r e d   v a l u e   f i e l d .   T h e   h i g h e r   t h e   v a l u e ,   t h e   h i g h e r   t h e   p r i o r i t y .   T h e   n a m e   o f   a   P r i o r i t y C l a s s   o b j e c t   m u s t   b e   a   v a l i d   D N S   s u b d o m a i n   n a m e ,   a n d   i t   c a n n o t   b e   p r e f i x e d   w i t h   s y s t e m - .   A   P r i o r i t y C l a s s   o b j e c t   c a n   h a v e   a n y   3 2 - b i t   i n t e g e r   v a l u e   s m a l l e r   t h a n   o r   e q u a l   t o   1   b i l l i o n .   T h i s   m e a n s   t h a t   t h e   r a n g e   o f   v a l u e s   f o r   a   P r i o r i t y C l a s s   o b j e c t   i s   f r o m   - 2 1 4 7 4 8 3 6 4 8   t o   1 0 0 0 0 0 0 0 0 0   i n c l u s i v e .   L a r g e r   n u m b e r s   a r e   r e s e r v e d   f o r   b u i l t - i n   P r i o r i t y C l a s s e s   t h a t   r e p r e s e n t   c r i t i c a l   s y s t e m   P o d s .   A   c l u s t e r   a d m i n   s h o u l d   c r e a t e   o n e   P r i o r i t y C l a s s   o b j e c t   f o r   e a c h   s u c h   m a p p i n g   t h a t   t h e y   w a n t .   P r i o r i t y C l a s s   a l s o   h a s   t w o   o p t i o n a l   f i e l d s :   g l o b a l D e f a u l t   a n d   d e s c r i p t i o n .   T h e   g l o b a l D e f a u l t   f i e l d   i n d i c a t e s   t h a t   t h e   v a l u e   o f   t h i s   P r i o r i t y C l a s s   s h o u l d   b e   u s e d   f o r   P o d s   w i t h o u t   a   p r i o r i t y C l a


Question: What is Notes about PodPriority and existing clusters?

Answer: I f   y o u   u p g r a d e   a n   e x i s t i n g   c l u s t e r   w i t h o u t   t h i s   f e a t u r e ,   t h e   p r i o r i t y   o f   y o u r   e x i s t i n g   P o d s   i s   e f f e c t i v e l y   z e r o . A d d i t i o n   o f   a   P r i o r i t y C l a s s   w i t h   g l o b a l D e f a u l t   s e t   t o   t r u e   d o e s   n o t   c h a n g e   t h e   p r i o r i t i e s   o f   e x i s t i n g   P o d s .   T h e   v a l u e   o f   s u c h   a   P r i o r i t y C l a s s   i s   u s e d   o n l y   f o r   P o d s   c r e a t e d   a f t e r   t h e   P r i o r i t y C l a s s   i s   a d d e d . I f   y o u   d e l e t e   a   P r i o r i t y C l a s s ,   e x i s t i n g   P o d s   t h a t   u s e   t h e   n a m e   o f   t h e   d e l e t e d   P r i o r i t y C l a s s   r e m a i n   u n c h a n g e d ,   b u t   y o u   c a n n o t   c r e a t e   m o r e   P o d s   t h a t   u s e   t h e   n a m e   o f   t h e   d e l e t e d   P r i o r i t y C l a s s .   I f   y o u   u p g r a d e   a n   e x i s t i n g   c l u s t e r   w i t h o u t   t h i s   f e a t u r e ,   t h e   p r i o r i t y   o f   y o u r   e x i s t i n g   P o d s   i s   e f f e c t i v e l y   z e r o .   A d d i t i o n   o f   a   P r i o r i t y C l a s s   w i t h   g l o b a l D e f a u l t   s e t   t o   t r u e   d o e s   n o t   c h a n g e   t h e   p r i o r i t i e s   o f   e x i s t i n g   P o d s .   T h e   v a l u e   o f   s u c h   a   P r i o r i t y C l a s s   i s   u s e d   o n l y   f o r   P o d s   c r e a t e d   a f t e r   t h e   P r i o r i t y C l a s s   i s   a d d e d .   I f   y o u   d e l e t e   a   P r i o r i t y C l a s s ,   e x i s t i n g   P o d s   t h a t   u s e   t h e   n a m e   o f   t h e   d e l e t e d   P r i o r i t y C l a s s   r e m a i n   u n c h a n g e d ,   b u t   y o u   c a n n o t   c r e a t e   m o r e   P o d s   t h a t   u s e   t h e   n a m e   o f   t h e   d e l e t e d


Question: What is Example PriorityClass?

Answer: a p i V e r s i o n :   s c h e d u l i n g . k 8 s . i o / v 1   k i n d :   P r i o r i t y C l a s s   m e t a d a t a :   n a m e :   h i g h - p r i o r i t y   v a l u e :   1 0 0 0 0 0 0   g l o b a l D e f a u l t :   f a l s e   d e s c r i p t i o n :   " T h i s   p r i o r i t y   c l a s s   s h o u l d   b e   u s e d   f o r   X Y Z   s e r v i c e   p o d s   o n l y . "


Question: What is Non-preempting PriorityClass?

Answer: P o d s   w i t h   p r e e m p t i o n P o l i c y :   N e v e r   w i l l   b e   p l a c e d   i n   t h e   s c h e d u l i n g   q u e u e   a h e a d   o f   l o w e r - p r i o r i t y   p o d s ,   b u t   t h e y   c a n n o t   p r e e m p t   o t h e r   p o d s .   A   n o n - p r e e m p t i n g   p o d   w a i t i n g   t o   b e   s c h e d u l e d   w i l l   s t a y   i n   t h e   s c h e d u l i n g   q u e u e ,   u n t i l   s u f f i c i e n t   r e s o u r c e s   a r e   f r e e ,   a n d   i t   c a n   b e   s c h e d u l e d .   N o n - p r e e m p t i n g   p o d s ,   l i k e   o t h e r   p o d s ,   a r e   s u b j e c t   t o   s c h e d u l e r   b a c k - o f f .   T h i s   m e a n s   t h a t   i f   t h e   s c h e d u l e r   t r i e s   t h e s e   p o d s   a n d   t h e y   c a n n o t   b e   s c h e d u l e d ,   t h e y   w i l l   b e   r e t r i e d   w i t h   l o w e r   f r e q u e n c y ,   a l l o w i n g   o t h e r   p o d s   w i t h   l o w e r   p r i o r i t y   t o   b e   s c h e d u l e d   b e f o r e   t h e m .   N o n - p r e e m p t i n g   p o d s   m a y   s t i l l   b e   p r e e m p t e d   b y   o t h e r ,   h i g h - p r i o r i t y   p o d s .   p r e e m p t i o n P o l i c y   d e f a u l t s   t o   P r e e m p t L o w e r P r i o r i t y ,   w h i c h   w i l l   a l l o w   p o d s   o f   t h a t   P r i o r i t y C l a s s   t o   p r e e m p t   l o w e r - p r i o r i t y   p o d s   ( a s   i s   e x i s t i n g   d e f a u l t   b e h a v i o r ) .   I f   p r e e m p t i o n P o l i c y   i s   s e t   t o   N e v e r ,   p o d s   i n   t h a t   P r i o r i t y C l a s s   w i l l   b e   n o n - p r e e m p t i n g .   A n   e x a m p l e   u s e   c a s e   i s   f o r   d a t a   s c i e n c e   w o r k l o a d s .   A   u s e r   m a y   s u b m i t   a   j o b   t h a t   t h e y   w a n t   t o   b e   p r i o r i t i z e d   a b o v e   o t h e r   w o r k l o a d s ,   b


Question: What is Example Non-preempting PriorityClass?

Answer: a p i V e r s i o n :   s c h e d u l i n g . k 8 s . i o / v 1   k i n d :   P r i o r i t y C l a s s   m e t a d a t a :   n a m e :   h i g h - p r i o r i t y - n o n p r e e m p t i n g   v a l u e :   1 0 0 0 0 0 0   p r e e m p t i o n P o l i c y :   N e v e r   g l o b a l D e f a u l t :   f a l s e   d e s c r i p t i o n :   " T h i s   p r i o r i t y   c l a s s   w i l l   n o t   c a u s e   o t h e r   p o d s   t o   b e   p r e e m p t e d . "


Question: What is Pod priority?

Answer: A f t e r   y o u   h a v e   o n e   o r   m o r e   P r i o r i t y C l a s s e s ,   y o u   c a n   c r e a t e   P o d s   t h a t   s p e c i f y   o n e   o f   t h o s e   P r i o r i t y C l a s s   n a m e s   i n   t h e i r   s p e c i f i c a t i o n s .   T h e   p r i o r i t y   a d m i s s i o n   c o n t r o l l e r   u s e s   t h e   p r i o r i t y C l a s s N a m e   f i e l d   a n d   p o p u l a t e s   t h e   i n t e g e r   v a l u e   o f   t h e   p r i o r i t y .   I f   t h e   p r i o r i t y   c l a s s   i s   n o t   f o u n d ,   t h e   P o d   i s   r e j e c t e d .   T h e   f o l l o w i n g   Y A M L   i s   a n   e x a m p l e   o f   a   P o d   c o n f i g u r a t i o n   t h a t   u s e s   t h e   P r i o r i t y C l a s s   c r e a t e d   i n   t h e   p r e c e d i n g   e x a m p l e .   T h e   p r i o r i t y   a d m i s s i o n   c o n t r o l l e r   c h e c k s   t h e   s p e c i f i c a t i o n   a n d   r e s o l v e s   t h e   p r i o r i t y   o f   t h e   P o d   t o   1 0 0 0 0 0 0 .   a p i V e r s i o n :   v 1   k i n d :   P o d   m e t a d a t a :   n a m e :   n g i n x   l a b e l s :   e n v :   t e s t   s p e c :   c o n t a i n e r s :   -   n a m e :   n g i n x   i m a g e :   n g i n x   i m a g e P u l l P o l i c y :   I f N o t P r e s e n t   p r i o r i t y C l a s s N a m e :   h i g h - p r i o r i t y


Question: What is Effect of Pod priority on scheduling order?

Answer: W h e n   P o d   p r i o r i t y   i s   e n a b l e d ,   t h e   s c h e d u l e r   o r d e r s   p e n d i n g   P o d s   b y   t h e i r   p r i o r i t y   a n d   a   p e n d i n g   P o d   i s   p l a c e d   a h e a d   o f   o t h e r   p e n d i n g   P o d s   w i t h   l o w e r   p r i o r i t y   i n   t h e   s c h e d u l i n g   q u e u e .   A s   a   r e s u l t ,   t h e   h i g h e r   p r i o r i t y   P o d   m a y   b e   s c h e d u l e d   s o o n e r   t h a n   P o d s   w i t h   l o w e r   p r i o r i t y   i f   i t s   s c h e d u l i n g   r e q u i r e m e n t s   a r e   m e t .   I f   s u c h   P o d   c a n n o t   b e   s c h e d u l e d ,   t h e   s c h e d u l e r   w i l l   c o n t i n u e   a n d   t r y   t o   s c h e d u l e   o t h e r   l o w e r   p r i o r i t y   P o d s .


Question: What is Preemption?

Answer: W h e n   P o d s   a r e   c r e a t e d ,   t h e y   g o   t o   a   q u e u e   a n d   w a i t   t o   b e   s c h e d u l e d .   T h e   s c h e d u l e r   p i c k s   a   P o d   f r o m   t h e   q u e u e   a n d   t r i e s   t o   s c h e d u l e   i t   o n   a   N o d e .   I f   n o   N o d e   i s   f o u n d   t h a t   s a t i s f i e s   a l l   t h e   s p e c i f i e d   r e q u i r e m e n t s   o f   t h e   P o d ,   p r e e m p t i o n   l o g i c   i s   t r i g g e r e d   f o r   t h e   p e n d i n g   P o d .   L e t ' s   c a l l   t h e   p e n d i n g   P o d   P .   P r e e m p t i o n   l o g i c   t r i e s   t o   f i n d   a   N o d e   w h e r e   r e m o v a l   o f   o n e   o r   m o r e   P o d s   w i t h   l o w e r   p r i o r i t y   t h a n   P   w o u l d   e n a b l e   P   t o   b e   s c h e d u l e d   o n   t h a t   N o d e .   I f   s u c h   a   N o d e   i s   f o u n d ,   o n e   o r   m o r e   l o w e r   p r i o r i t y   P o d s   g e t   e v i c t e d   f r o m   t h e   N o d e .   A f t e r   t h e   P o d s   a r e   g o n e ,   P   c a n   b e   s c h e d u l e d   o n   t h e   N o d e .