Question: What is Download and set up the kubelet?

Answer: D o w n l o a d   t h e   l a t e s t   s t a b l e   r e l e a s e   o f   t h e   k u b e l e t .   c u r l   - L O   " h t t p s : / / d l . k 8 s . i o / r e l e a s e / $ ( c u r l   - L   - s   h t t p s : / / d l . k 8 s . i o / r e l e a s e / s t a b l e . t x t ) / b i n / l i n u x / a m d 6 4 / k u b e l e t "   c u r l   - L O   " h t t p s : / / d l . k 8 s . i o / r e l e a s e / $ ( c u r l   - L   - s   h t t p s : / / d l . k 8 s . i o / r e l e a s e / s t a b l e . t x t ) / b i n / l i n u x / a m d 6 4 / k u b e l e t "   c u r l   - L O   " h t t p s : / / d l . k 8 s . i o / r e l e a s e / $ ( c u r l   - L   - s   h t t p s : / / d l . k 8 s . i o / r e l e a s e / s t a b l e . t x t ) / b i n / l i n u x / a r m 6 4 / k u b e l e t "   c u r l   - L O   " h t t p s : / / d l . k 8 s . i o / r e l e a s e / $ ( c u r l   - L   - s   h t t p s : / / d l . k 8 s . i o / r e l e a s e / s t a b l e . t x t ) / b i n / l i n u x / a r m 6 4 / k u b e l e t "   C o n f i g u r e :   s u d o   m k d i r   - p   / e t c / k u b e r n e t e s / m a n i f e s t s   s u d o   t e e   / e t c / k u b e r n e t e s / k u b e l e t . y a m l   < < E O F   a p i V e r s i o n :   k u b e l e t . c o n f i g . k 8 s . i o / v 1 b e t a 1   k i n d :   K u b e l e t C o n f i g u r a t i o n   a u t h e n t i c a t i o n :   w e b h o o k :   e n a b l e d :   f a l s e   #   D o   N O T   u s e   i n   p r o d u c t i o n   c l u s t e r s !   a u t h o r i z a t i o n :   m o d e :   A l w a y s A l l o w   #   D o   N O T   u s e   i n   p r o d u c t i o n   c l u s t e r s !   e n a b l e S e r v e r :   f a l s e   l o g g i n g :   f o r m a t :   t e x t   a d d r e s s :   1 2 7 . 0 . 0 . 1   #   R e s t r i c t   a c c e s s   t o   l o c a l h o s t   r e a d O n l y P o r t :   1 0 2 5 5   #   D o   N O T   u s e   i n   p r o d u c t i o n   c l u s t e r s !   s t a t i c P o d P a t h :   / e t c / k u b e r n e t e s / m a n i f e s t s


Question: What is Note:?

Answer: B e c a u s e   y o u   a r e   n o t   s e t t i n g   u p   a   p r o d u c t i o n   c l u s t e r ,   y o u   a r e   u s i n g   p l a i n   H T T P   ( r e a d O n l y P o r t :   1 0 2 5 5 )   f o r   u n a u t h e n t i c a t e d   q u e r i e s   t o   t h e   k u b e l e t ' s   A P I .   T h e   a u t h e n t i c a t i o n   w e b h o o k   i s   d i s a b l e d   a n d   a u t h o r i z a t i o n   m o d e   i s   s e t   t o   A l w a y s A l l o w   f o r   t h e   p u r p o s e   o f   t h i s   t u t o r i a l .   Y o u   c a n   l e a r n   m o r e   a b o u t   a u t h o r i z a t i o n   m o d e s   a n d   w e b h o o k   a u t h e n t i c a t i o n   t o   p r o p e r l y   c o n f i g u r e   k u b e l e t   i n   s t a n d a l o n e   m o d e   i n   y o u r   e n v i r o n m e n t .   S e e   P o r t s   a n d   P r o t o c o l s   t o   u n d e r s t a n d   w h i c h   p o r t s   K u b e r n e t e s   c o m p o n e n t s   u s e .   I n s t a l l :   c h m o d   + x   k u b e l e t   s u d o   c p   k u b e l e t   / u s r / b i n /   C r e a t e   a   s y s t e m d   s e r v i c e   u n i t   f i l e :   s u d o   t e e   / e t c / s y s t e m d / s y s t e m / k u b e l e t . s e r v i c e   < < E O F   [ U n i t ]   D e s c r i p t i o n = K u b e l e t   [ S e r v i c e ]   E x e c S t a r t = / u s r / b i n / k u b e l e t   \   - - c o n f i g = / e t c / k u b e r n e t e s / k u b e l e t . y a m l   R e s t a r t = a l w a y s   [ I n s t a l l ]   W a n t e d B y = m u l t i - u s e r . t a r g e t   E O F   T h e   c o m m a n d   l i n e   a r g u m e n t   - - k u b e c o n f i g   h a s   b e e n   i n t e n t i o n a l l y   o m i t t e d   i n   t h e   s e r v i c e   c o n f i g u r a t i o n   f i l e .   T h i s   a r g u m e n t   s e t s   t h e   p a t h   t o   a   k u b e c o n f i g   f i l e   t h a t   s p e c i f i e s   h o w   t o   c o n n e c t   t o   t h e   A P I   s e r v e r ,   e n a b l i n g   A P


Question: What is Run a Pod in the kubelet?

Answer: I n   s t a n d a l o n e   m o d e ,   y o u   c a n   r u n   P o d s   u s i n g   P o d   m a n i f e s t s .   T h e   m a n i f e s t s   c a n   e i t h e r   b e   o n   t h e   l o c a l   f i l e s y s t e m ,   o r   f e t c h e d   v i a   H T T P   f r o m   a   c o n f i g u r a t i o n   s o u r c e .   C r e a t e   a   m a n i f e s t   f o r   a   P o d :   c a t   < < E O F   >   s t a t i c - w e b . y a m l   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 :   s t a t i c - w e b   s p e c :   c o n t a i n e r s :   -   n a m e :   w e b   i m a g e :   n g i n x   p o r t s :   -   n a m e :   w e b   c o n t a i n e r P o r t :   8 0   p r o t o c o l :   T C P   E O F   C o p y   t h e   s t a t i c - w e b . y a m l   m a n i f e s t   f i l e   t o   t h e   / e t c / k u b e r n e t e s / m a n i f e s t s   d i r e c t o r y .   s u d o   c p   s t a t i c - w e b . y a m l   / e t c / k u b e r n e t e s / m a n i f e s t s /


Question: What is Find out information about the kubelet and the Pod?

Answer: T h e   P o d   n e t w o r k i n g   p l u g i n   c r e a t e s   a   n e t w o r k   b r i d g e   ( c n i 0 )   a n d   a   p a i r   o f   v e t h   i n t e r f a c e s   f o r   e a c h   P o d   ( o n e   o f   t h e   p a i r   i s   i n s i d e   t h e   n e w l y   m a d e   P o d ,   a n d   t h e   o t h e r   i s   a t   t h e   h o s t   l e v e l ) .   Q u e r y   t h e   k u b e l e t ' s   A P I   e n d p o i n t   a t   h t t p : / / l o c a l h o s t : 1 0 2 5 5 / p o d s :   c u r l   h t t p : / / l o c a l h o s t : 1 0 2 5 5 / p o d s   |   j q   ' . '   T o   o b t a i n   t h e   I P   a d d r e s s   o f   t h e   s t a t i c - w e b   P o d :   c u r l   h t t p : / / l o c a l h o s t : 1 0 2 5 5 / p o d s   |   j q   ' . i t e m s [ ] . s t a t u s . p o d I P '   T h e   o u t p u t   i s   s i m i l a r   t o :   " 1 0 . 8 5 . 0 . 4 "   C o n n e c t   t o   t h e   n g i n x   s e r v e r   P o d   o n   h t t p : / / < I P > : < P o r t >   ( p o r t   8 0   i s   t h e   d e f a u l t ) ,   i n   t h i s   c a s e :   c u r l   h t t p : / / 1 0 . 8 5 . 0 . 4   T h e   o u t p u t   i s   s i m i l a r   t o :   < ! D O C T Y P E   h t m l >   < h t m l >   < h e a d >   < t i t l e > W e l c o m e   t o   n g i n x ! < / t i t l e >   . . .


Question: What is Where to look for more details?

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


Question: What is kubelet?

Answer: s u d o   s y s t e m c t l   d i s a b l e   - - n o w   k u b e l e t . s e r v i c e   s u d o   s y s t e m c t l   d a e m o n - r e l o a d   s u d o   r m   / e t c / s y s t e m d / s y s t e m / k u b e l e t . s e r v i c e   s u d o   r m   / u s r / b i n / k u b e l e t   s u d o   r m   - r f   / e t c / k u b e r n e t e s   s u d o   r m   - r f   / v a r / l i b / k u b e l e t   s u d o   r m   - r f   / v a r / l o g / c o n t a i n e r s   s u d o   r m   - r f   / v a r / l o g / p o d s


Question: What is Container Runtime?

Answer: s u d o   s y s t e m c t l   d i s a b l e   - - n o w   c r i o . s e r v i c e   s u d o   s y s t e m c t l   d a e m o n - r e l o a d   s u d o   r m   - r f   / u s r / l o c a l / b i n   s u d o   r m   - r f   / u s r / l o c a l / l i b   s u d o   r m   - r f   / u s r / l o c a l / s h a r e   s u d o   r m   - r f   / u s r / l i b e x e c / c r i o   s u d o   r m   - r f   / e t c / c r i o   s u d o   r m   - r f   / e t c / c o n t a i n e r s


Question: What is Network Plugins?

Answer: s u d o   r m   - r f   / o p t / c n i   s u d o   r m   - r f   / e t c / c n i   s u d o   r m   - r f   / v a r / l i b / c n i


Question: What is Conclusion?

Answer: T h i s   p a g e   c o v e r e d   t h e   b a s i c   a s p e c t s   o f   d e p l o y i n g   a   k u b e l e t   i n   s t a n d a l o n e   m o d e .   Y o u   a r e   n o w   r e a d y   t o   d e p l o y   P o d s   a n d   t e s t   a d d i t i o n a l   f u n c t i o n a l i t y .   N o t i c e   t h a t   i n   s t a n d a l o n e   m o d e   t h e   k u b e l e t   d o e s   n o t   s u p p o r t   f e t c h i n g   P o d   c o n f i g u r a t i o n s   f r o m   t h e   c o n t r o l   p l a n e   ( b e c a u s e   t h e r e   i s   n o   c o n t r o l   p l a n e   c o n n e c t i o n ) .   Y o u   a l s o   c a n n o t   u s e   a   C o n f i g M a p   o r   a   S e c r e t   t o   c o n f i g u r e   t h e   c o n t a i n e r s   i n   a   s t a t i c   P o d .


Question: What is What's next?

Answer: F o l l o w   H e l l o ,   m i n i k u b e   t o   l e a r n   a b o u t   r u n n i n g   K u b e r n e t e s   w i t h   a   c o n t r o l   p l a n e .   T h e   m i n i k u b e   t o o l   h e l p s   y o u   s e t   u p   a   p r a c t i c e   c l u s t e r   o n   y o u r   o w n   c o m p u t e r . L e a r n   m o r e   a b o u t   N e t w o r k   P l u g i n s L e a r n   m o r e   a b o u t   C o n t a i n e r   R u n t i m e s L e a r n   m o r e   a b o u t   k u b e l e t L e a r n   m o r e   a b o u t   s t a t i c   P o d s   I t e m s   o n   t h i s   p a g e   r e f e r   t o   t h i r d   p a r t y   p r o d u c t s   o r   p r o j e c t s   t h a t   p r o v i d e   f u n c t i o n a l i t y   r e q u i r e d   b y   K u b e r n e t e s .   T h e   K u b e r n e t e s   p r o j e c t   a u t h o r s   a r e n ' t   r e s p o n s i b l e   f o r   t h o s e   t h i r d - p a r t y   p r o d u c t s   o r   p r o j e c t s .   S e e   t h e   C N C F   w e b s i t e   g u i d e l i n e s   f o r   m o r e   d e t a i l s .   Y o u   s h o u l d   r e a d   t h e   c o n t e n t   g u i d e   b e f o r e   p r o p o s i n g   a   c h a n g e   t h a t   a d d s   a n   e x t r a   t h i r d - p a r t y   l i n k .


Question: What is Policy Resources?

Answer: Policy ResourcesFlowSchemaFlowSchema defines the schema of a group of flows.LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.ResourceQuotaResourceQuota sets aggregate quota restrictions enforced per namespace.NetworkPolicyNetworkPolicy describes what network traffic is allowed for a set of Pods.PodDisruptionBudgetPodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods.PriorityLevelConfigurationPriorityLevelConfiguration represents the configuration of a priority level.ValidatingAdmissionPolicyValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.ValidatingAdmissionPolicyBindingValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources.MutatingAdmissionPolicy v1beta1MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.MutatingAdmissionPolicyBinding v1alpha1MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources.This page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.


Question: How does Policy Resources work?

Answer: Policy ResourcesFlowSchemaFlowSchema defines the schema of a group of flows.LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.ResourceQuotaResourceQuota sets aggregate quota restrictions enforced per namespace.NetworkPolicyNetworkPolicy describes what network traffic is allowed for a set of Pods.PodDisruptionBudgetPodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods.PriorityLevelConfigurationPriorityLevelConfiguration represents the configuration of a priority level.ValidatingAdmissionPolicyValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.ValidatingAdmissionPolicyBindingValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources.MutatingAdmissionPolicy v1beta1MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.MutatingAdmissionPolicyBinding v1alpha1MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources.This page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.


Question: When would you use Policy Resources?

Answer: Policy ResourcesFlowSchemaFlowSchema defines the schema of a group of flows.LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.ResourceQuotaResourceQuota sets aggregate quota restrictions enforced per namespace.NetworkPolicyNetworkPolicy describes what network traffic is allowed for a set of Pods.PodDisruptionBudgetPodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods.PriorityLevelConfigurationPriorityLevelConfiguration represents the configuration of a priority level.ValidatingAdmissionPolicyValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.ValidatingAdmissionPolicyBindingValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources.MutatingAdmissionPolicy v1beta1MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.MutatingAdmissionPolicyBinding v1alpha1MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources.This page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.


Question: What are the benefits of Policy Resources?

Answer: Policy ResourcesFlowSchemaFlowSchema defines the schema of a group of flows.LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.ResourceQuotaResourceQuota sets aggregate quota restrictions enforced per namespace.NetworkPolicyNetworkPolicy describes what network traffic is allowed for a set of Pods.PodDisruptionBudgetPodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods.PriorityLevelConfigurationPriorityLevelConfiguration represents the configuration of a priority level.ValidatingAdmissionPolicyValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.ValidatingAdmissionPolicyBindingValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources.MutatingAdmissionPolicy v1beta1MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.MutatingAdmissionPolicyBinding v1alpha1MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources.This page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.


Question: What is FlowSchema?

Answer: F l o w S c h e m a   d e f i n e s   t h e   s c h e m a   o f   a   g r o u p   o f   f l o w s .


Question: What is LimitRange?

Answer: L i m i t R a n g e   s e t s   r e s o u r c e   u s a g e   l i m i t s   f o r   e a c h   k i n d   o f   r e s o u r c e   i n   a   N a m e s p a c e .


Question: What is ResourceQuota?

Answer: R e s o u r c e Q u o t a   s e t s   a g g r e g a t e   q u o t a   r e s t r i c t i o n s   e n f o r c e d   p e r   n a m e s p a c e .


Question: What is NetworkPolicy?

Answer: N e t w o r k P o l i c y   d e s c r i b e s   w h a t   n e t w o r k   t r a f f i c   i s   a l l o w e d   f o r   a   s e t   o f   P o d s .


Question: What is PodDisruptionBudget?

Answer: P o d D i s r u p t i o n B u d g e t   i s   a n   o b j e c t   t o   d e f i n e   t h e   m a x   d i s r u p t i o n   t h a t   c a n   b e   c a u s e d   t o   a   c o l l e c t i o n   o f   p o d s .


Question: What is PriorityLevelConfiguration?

Answer: P r i o r i t y L e v e l C o n f i g u r a t i o n   r e p r e s e n t s   t h e   c o n f i g u r a t i o n   o f   a   p r i o r i t y   l e v e l .


Question: What is ValidatingAdmissionPolicy?

Answer: V a l i d a t i n g A d m i s s i o n P o l i c y   d e s c r i b e s   t h e   d e f i n i t i o n   o f   a n   a d m i s s i o n   v a l i d a t i o n   p o l i c y   t h a t   a c c e p t s   o r   r e j e c t s   a n   o b j e c t   w i t h o u t   c h a n g i n g   i t .


Question: What is ValidatingAdmissionPolicyBinding?

Answer: V a l i d a t i n g A d m i s s i o n P o l i c y B i n d i n g   b i n d s   t h e   V a l i d a t i n g A d m i s s i o n P o l i c y   w i t h   p a r a m e r i z e d   r e s o u r c e s .


Question: What is MutatingAdmissionPolicy v1beta1?

Answer: M u t a t i n g A d m i s s i o n P o l i c y   d e s c r i b e s   t h e   d e f i n i t i o n   o f   a n   a d m i s s i o n   m u t a t i o n   p o l i c y   t h a t   m u t a t e s   t h e   o b j e c t   c o m i n g   i n t o   a d m i s s i o n   c h a i n .


Question: What is MutatingAdmissionPolicyBinding v1alpha1?

Answer: M u t a t i n g A d m i s s i o n P o l i c y B i n d i n g   b i n d s   t h e   M u t a t i n g A d m i s s i o n P o l i c y   w i t h   p a r a m e t r i z e d   r e s o u r c e s .   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 LeaseCandidate v1beta1?

Answer: LeaseCandidate v1beta1LeaseCandidate defines a candidate for a Lease object.apiVersion: coordination.k8s.io/v1beta1import "k8s.io/api/coordination/v1beta1"LeaseCandidateLeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.apiVersion: coordination.k8s.io/v1beta1kind: LeaseCandidatemetadata (ObjectMeta)More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (LeaseCandidateSpec)spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusLeaseCandidateSpecLeaseCandidateSpec is a specification of a Lease.binaryVersion (string), requiredBinaryVersion is the binary version. It must be in a semver format without leading v. This field is required.leaseName (string), requiredLeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.strategy (string), requiredStrategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.emulationVersion (string)EmulationVersion is the emulation version. It must be in a semver format without leading v. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"pingTime (MicroTime)PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.MicroTime is version of Time with microsecond level precision.renewTime (MicroTime)RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.MicroTime is version of Time with microsecond level precision.LeaseCandidateListLeaseCandidateList is a list of Lease objects.apiVersion: coordination.k8s.io/v1beta1kind: LeaseCandidateListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]LeaseCandidate), requireditems is a list of schema objects.Operationsget read the specifi


Question: How does LeaseCandidate v1beta1 work?

Answer: LeaseCandidate v1beta1LeaseCandidate defines a candidate for a Lease object.apiVersion: coordination.k8s.io/v1beta1import "k8s.io/api/coordination/v1beta1"LeaseCandidateLeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.apiVersion: coordination.k8s.io/v1beta1kind: LeaseCandidatemetadata (ObjectMeta)More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (LeaseCandidateSpec)spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusLeaseCandidateSpecLeaseCandidateSpec is a specification of a Lease.binaryVersion (string), requiredBinaryVersion is the binary version. It must be in a semver format without leading v. This field is required.leaseName (string), requiredLeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.strategy (string), requiredStrategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.emulationVersion (string)EmulationVersion is the emulation version. It must be in a semver format without leading v. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"pingTime (MicroTime)PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.MicroTime is version of Time with microsecond level precision.renewTime (MicroTime)RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.MicroTime is version of Time with microsecond level precision.LeaseCandidateListLeaseCandidateList is a list of Lease objects.apiVersion: coordination.k8s.io/v1beta1kind: LeaseCandidateListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]LeaseCandidate), requireditems is a list of schema objects.Operationsget read the specifi


Question: When would you use LeaseCandidate v1beta1?

Answer: LeaseCandidate v1beta1LeaseCandidate defines a candidate for a Lease object.apiVersion: coordination.k8s.io/v1beta1import "k8s.io/api/coordination/v1beta1"LeaseCandidateLeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.apiVersion: coordination.k8s.io/v1beta1kind: LeaseCandidatemetadata (ObjectMeta)More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (LeaseCandidateSpec)spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusLeaseCandidateSpecLeaseCandidateSpec is a specification of a Lease.binaryVersion (string), requiredBinaryVersion is the binary version. It must be in a semver format without leading v. This field is required.leaseName (string), requiredLeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.strategy (string), requiredStrategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.emulationVersion (string)EmulationVersion is the emulation version. It must be in a semver format without leading v. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"pingTime (MicroTime)PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.MicroTime is version of Time with microsecond level precision.renewTime (MicroTime)RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.MicroTime is version of Time with microsecond level precision.LeaseCandidateListLeaseCandidateList is a list of Lease objects.apiVersion: coordination.k8s.io/v1beta1kind: LeaseCandidateListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]LeaseCandidate), requireditems is a list of schema objects.Operationsget read the specifi


Question: What are the benefits of LeaseCandidate v1beta1?

Answer: LeaseCandidate v1beta1LeaseCandidate defines a candidate for a Lease object.apiVersion: coordination.k8s.io/v1beta1import "k8s.io/api/coordination/v1beta1"LeaseCandidateLeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.apiVersion: coordination.k8s.io/v1beta1kind: LeaseCandidatemetadata (ObjectMeta)More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (LeaseCandidateSpec)spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusLeaseCandidateSpecLeaseCandidateSpec is a specification of a Lease.binaryVersion (string), requiredBinaryVersion is the binary version. It must be in a semver format without leading v. This field is required.leaseName (string), requiredLeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.strategy (string), requiredStrategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.emulationVersion (string)EmulationVersion is the emulation version. It must be in a semver format without leading v. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"pingTime (MicroTime)PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.MicroTime is version of Time with microsecond level precision.renewTime (MicroTime)RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.MicroTime is version of Time with microsecond level precision.LeaseCandidateListLeaseCandidateList is a list of Lease objects.apiVersion: coordination.k8s.io/v1beta1kind: LeaseCandidateListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]LeaseCandidate), requireditems is a list of schema objects.Operationsget read the specifi


Question: What is LeaseCandidate v1beta1?

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


Question: What is LeaseCandidate?

Answer: L e a s e C a n d i d a t e   d e f i n e s   a   c a n d i d a t e   f o r   a   L e a s e   o b j e c t .   C a n d i d a t e s   a r e   c r e a t e d   s u c h   t h a t   c o o r d i n a t e d   l e a d e r   e l e c t i o n   w i l l   p i c k   t h e   b e s t   l e a d e r   f r o m   t h e   l i s t   o f   c a n d i d a t e s .   a p i V e r s i o n :   c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 k i n d :   L e a s e C a n d i d a t e m e t a d a t a   ( O b j e c 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 s p e c   ( L e a s e C a n d i d a t e S p e c ) s p e c   c o n t a i n s   t h e   s p e c i f i c a t i o n   o f   t h e   L e a s e .   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 # s p e c - a n d - s t a t u s   a p i V e r s i o n :   c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1   k i n d :   L e a s e C a n d i d a t e   m e t a d a t a   ( O b j e c 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   s p e c   ( L e a s e C a n d i d a t e S p e c )   s p e c   c o n t a i n s   t h e   s p e c i f i c a t i o n   o f   t h e   L e a s e .   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 # s p e c - a n d - s t a t u s


Question: What is LeaseCandidateSpec?

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


Question: What is LeaseCandidateList?

Answer: L e a s e C a n d i d a t e L i s t   i s   a   l i s t   o f   L e a s e   o b j e c t s .   a p i V e r s i o n :   c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 k i n d :   L e a s e C a n d i d a t e L i s t m e t a d a t a   ( L i s t M e t a ) S t a n d a r d   l i s t   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 i t e m s   ( [ ] L e a s e C a n d i d a t e ) ,   r e q u i r e d i t e m s   i s   a   l i s t   o f   s c h e m a   o b j e c t s .   a p i V e r s i o n :   c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1   k i n d :   L e a s e C a n d i d a t e L i s t   m e t a d a t a   ( L i s t M e t a )   S t a n d a r d   l i s t   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   i t e m s   ( [ ] L e a s e C a n d i d a t e ) ,   r e q u i r e d   i t e m s   i s   a   l i s t   o f   s c h e m a   o b j e c t s .


Question: What is HTTP Request?

Answer: G E T   / a p i s / c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 / n a m e s p a c e s / { n a m e s p a c e } / l e a s e c a n d i d a t e 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   L e a s e C a n d i d a t e 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   L e a s e C a n d i d a t e   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   ( L e a s e C a n d i d a t e ) :   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 s / c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 / n a m e s p a c e s / { n a m e s p a c e } / l e a s e c a n d i d a t e 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   ( L e a s e C a n d i d a t e 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 s / c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 / l e a s e c a n d i d a t e 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   ( L e a s e C a n d i d a t e 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 s / c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 / n a m e s p a c e s / { n a m e s p a c e } / l e a s e c a n d i d a t e 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 :   L e a s e C a n d i d a t e ,   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 :   L e a s e C a n d i d a t e ,   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   ( L e a s e C a n d i d a t e ) :   O K   2 0 1   ( L e a s e C a n d i d a t e ) :   C r e a t e d   2 0 2   ( L e a s e C a n d i d a t e ) :   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 s / c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 / n a m e s p a c e s / { n a m e s p a c e } / l e a s e c a n d i d a t e 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   L e a s e C a n d i d a t e 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 :   L e a s e C a n d i d a t e ,   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   L e a s e C a n d i d a t e   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 :   L e a s e C a n d i d a t e ,   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   ( L e a s e C a n d i d a t e ) :   O K   2 0 1   ( L e a s e C a n d i d a t e ) :   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 s / c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 / n a m e s p a c e s / { n a m e s p a c e } / l e a s e c a n d i d a t e 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   L e a s e C a n d i d a t e 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   L e a s e C a n d i d a t e   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   ( L e a s e C a n d i d a t e ) :   O K   2 0 1   ( L e a s e C a n d i d a t e ) :   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 s / c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 / n a m e s p a c e s / { n a m e s p a c e } / l e a s e c a n d i d a t e 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   L e a s e C a n d i d a t e 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   L e a s e C a n d i d a t e   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 s / c o o r d i n a t i o n . k 8 s . i o / v 1 b e t a 1 / n a m e s p a c e s / { n a m e s p a c e } / l e a s e c a n d i d a t e 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 Contributing to the Upstream Kubernetes Code?

Answer: Contributing to the Upstream Kubernetes CodeThis page shows how to contribute to the upstream kubernetes/kubernetes project. You can fix bugs found in the Kubernetes API documentation or the content of the Kubernetes components such as kubeadm, kube-apiserver, and kube-controller-manager.If you instead want to regenerate the reference documentation for the Kubernetes API or the kube-* components from the upstream code, see the following instructions:Generating Reference Documentation for the Kubernetes APIGenerating Reference Documentation for the Kubernetes Components and ToolsBefore you beginYou need to have these tools installed:GitGolang version 1.13+Dockeretcdmakegcc compiler/linkerYour GOPATH environment variable must be set, and the location of etcd must be in your PATH environment variable.You need to know how to create a pull request to a GitHub repository. Typically, this involves creating a fork of the repository. For more information, see Creating a Pull Request and GitHub Standard Fork & Pull Request Workflow.The big pictureThe reference documentation for the Kubernetes API and the kube-* components such as kube-apiserver, kube-controller-manager are automatically generated from the source code in the upstream Kubernetes.When you see bugs in the generated documentation, you may want to consider creating a patch to fix it in the upstream project.Clone the Kubernetes repositoryIf you don't already have the kubernetes/kubernetes repository, get it now:mkdir $GOPATH/src cd $GOPATH/src go get github.com/kubernetes/kubernetes Determine the base directory of your clone of the kubernetes/kubernetes repository. For example, if you followed the preceding step to get the repository, your base directory is $GOPATH/src/github.com/kubernetes/kubernetes. The remaining steps refer to your base directory as <k8s-base>.Determine the base directory of your clone of the kubernetes-sigs/reference-docs repository. For example, if you followed the preceding step to get the repository, your base directory is $GOPATH/src/github.com/kubernetes-sigs/reference-docs. The remaining steps refer to your base directory as <rdocs-base>.Edit the Kubernetes source codeThe Kubernetes API reference documentation is automatically generated from an OpenAPI spec, which is generated from the Kubernetes source code. If you want to change the API reference documentation, the first step is to change one or more comments in the Kubernetes source code.The documentation for the kube-* components is also generated from the upstream source code. You must change the code related to the component you want to fix in order to fix the generated documentation.Make changes to the upstream source codeNote:The following steps are an example, not a general procedure. Details will be different in your situation.Here's an example of editing a comment in the Kubernetes source code.In your local kubernetes/kubernetes repository, check out the default branch, and make sure it is up to date:cd <k8s


Question: How does Contributing to the Upstream Kubernetes Code work?

Answer: Contributing to the Upstream Kubernetes CodeThis page shows how to contribute to the upstream kubernetes/kubernetes project. You can fix bugs found in the Kubernetes API documentation or the content of the Kubernetes components such as kubeadm, kube-apiserver, and kube-controller-manager.If you instead want to regenerate the reference documentation for the Kubernetes API or the kube-* components from the upstream code, see the following instructions:Generating Reference Documentation for the Kubernetes APIGenerating Reference Documentation for the Kubernetes Components and ToolsBefore you beginYou need to have these tools installed:GitGolang version 1.13+Dockeretcdmakegcc compiler/linkerYour GOPATH environment variable must be set, and the location of etcd must be in your PATH environment variable.You need to know how to create a pull request to a GitHub repository. Typically, this involves creating a fork of the repository. For more information, see Creating a Pull Request and GitHub Standard Fork & Pull Request Workflow.The big pictureThe reference documentation for the Kubernetes API and the kube-* components such as kube-apiserver, kube-controller-manager are automatically generated from the source code in the upstream Kubernetes.When you see bugs in the generated documentation, you may want to consider creating a patch to fix it in the upstream project.Clone the Kubernetes repositoryIf you don't already have the kubernetes/kubernetes repository, get it now:mkdir $GOPATH/src cd $GOPATH/src go get github.com/kubernetes/kubernetes Determine the base directory of your clone of the kubernetes/kubernetes repository. For example, if you followed the preceding step to get the repository, your base directory is $GOPATH/src/github.com/kubernetes/kubernetes. The remaining steps refer to your base directory as <k8s-base>.Determine the base directory of your clone of the kubernetes-sigs/reference-docs repository. For example, if you followed the preceding step to get the repository, your base directory is $GOPATH/src/github.com/kubernetes-sigs/reference-docs. The remaining steps refer to your base directory as <rdocs-base>.Edit the Kubernetes source codeThe Kubernetes API reference documentation is automatically generated from an OpenAPI spec, which is generated from the Kubernetes source code. If you want to change the API reference documentation, the first step is to change one or more comments in the Kubernetes source code.The documentation for the kube-* components is also generated from the upstream source code. You must change the code related to the component you want to fix in order to fix the generated documentation.Make changes to the upstream source codeNote:The following steps are an example, not a general procedure. Details will be different in your situation.Here's an example of editing a comment in the Kubernetes source code.In your local kubernetes/kubernetes repository, check out the default branch, and make sure it is up to date:cd <k8s


Question: When would you use Contributing to the Upstream Kubernetes Code?

Answer: Contributing to the Upstream Kubernetes CodeThis page shows how to contribute to the upstream kubernetes/kubernetes project. You can fix bugs found in the Kubernetes API documentation or the content of the Kubernetes components such as kubeadm, kube-apiserver, and kube-controller-manager.If you instead want to regenerate the reference documentation for the Kubernetes API or the kube-* components from the upstream code, see the following instructions:Generating Reference Documentation for the Kubernetes APIGenerating Reference Documentation for the Kubernetes Components and ToolsBefore you beginYou need to have these tools installed:GitGolang version 1.13+Dockeretcdmakegcc compiler/linkerYour GOPATH environment variable must be set, and the location of etcd must be in your PATH environment variable.You need to know how to create a pull request to a GitHub repository. Typically, this involves creating a fork of the repository. For more information, see Creating a Pull Request and GitHub Standard Fork & Pull Request Workflow.The big pictureThe reference documentation for the Kubernetes API and the kube-* components such as kube-apiserver, kube-controller-manager are automatically generated from the source code in the upstream Kubernetes.When you see bugs in the generated documentation, you may want to consider creating a patch to fix it in the upstream project.Clone the Kubernetes repositoryIf you don't already have the kubernetes/kubernetes repository, get it now:mkdir $GOPATH/src cd $GOPATH/src go get github.com/kubernetes/kubernetes Determine the base directory of your clone of the kubernetes/kubernetes repository. For example, if you followed the preceding step to get the repository, your base directory is $GOPATH/src/github.com/kubernetes/kubernetes. The remaining steps refer to your base directory as <k8s-base>.Determine the base directory of your clone of the kubernetes-sigs/reference-docs repository. For example, if you followed the preceding step to get the repository, your base directory is $GOPATH/src/github.com/kubernetes-sigs/reference-docs. The remaining steps refer to your base directory as <rdocs-base>.Edit the Kubernetes source codeThe Kubernetes API reference documentation is automatically generated from an OpenAPI spec, which is generated from the Kubernetes source code. If you want to change the API reference documentation, the first step is to change one or more comments in the Kubernetes source code.The documentation for the kube-* components is also generated from the upstream source code. You must change the code related to the component you want to fix in order to fix the generated documentation.Make changes to the upstream source codeNote:The following steps are an example, not a general procedure. Details will be different in your situation.Here's an example of editing a comment in the Kubernetes source code.In your local kubernetes/kubernetes repository, check out the default branch, and make sure it is up to date:cd <k8s


Question: What are the benefits of Contributing to the Upstream Kubernetes Code?

Answer: Contributing to the Upstream Kubernetes CodeThis page shows how to contribute to the upstream kubernetes/kubernetes project. You can fix bugs found in the Kubernetes API documentation or the content of the Kubernetes components such as kubeadm, kube-apiserver, and kube-controller-manager.If you instead want to regenerate the reference documentation for the Kubernetes API or the kube-* components from the upstream code, see the following instructions:Generating Reference Documentation for the Kubernetes APIGenerating Reference Documentation for the Kubernetes Components and ToolsBefore you beginYou need to have these tools installed:GitGolang version 1.13+Dockeretcdmakegcc compiler/linkerYour GOPATH environment variable must be set, and the location of etcd must be in your PATH environment variable.You need to know how to create a pull request to a GitHub repository. Typically, this involves creating a fork of the repository. For more information, see Creating a Pull Request and GitHub Standard Fork & Pull Request Workflow.The big pictureThe reference documentation for the Kubernetes API and the kube-* components such as kube-apiserver, kube-controller-manager are automatically generated from the source code in the upstream Kubernetes.When you see bugs in the generated documentation, you may want to consider creating a patch to fix it in the upstream project.Clone the Kubernetes repositoryIf you don't already have the kubernetes/kubernetes repository, get it now:mkdir $GOPATH/src cd $GOPATH/src go get github.com/kubernetes/kubernetes Determine the base directory of your clone of the kubernetes/kubernetes repository. For example, if you followed the preceding step to get the repository, your base directory is $GOPATH/src/github.com/kubernetes/kubernetes. The remaining steps refer to your base directory as <k8s-base>.Determine the base directory of your clone of the kubernetes-sigs/reference-docs repository. For example, if you followed the preceding step to get the repository, your base directory is $GOPATH/src/github.com/kubernetes-sigs/reference-docs. The remaining steps refer to your base directory as <rdocs-base>.Edit the Kubernetes source codeThe Kubernetes API reference documentation is automatically generated from an OpenAPI spec, which is generated from the Kubernetes source code. If you want to change the API reference documentation, the first step is to change one or more comments in the Kubernetes source code.The documentation for the kube-* components is also generated from the upstream source code. You must change the code related to the component you want to fix in order to fix the generated documentation.Make changes to the upstream source codeNote:The following steps are an example, not a general procedure. Details will be different in your situation.Here's an example of editing a comment in the Kubernetes source code.In your local kubernetes/kubernetes repository, check out the default branch, and make sure it is up to date:cd <k8s


Question: What is Contributing to the Upstream Kubernetes Code?

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


Question: What is Before you begin?

Answer: Y o u   n e e d   t o   h a v e   t h e s e   t o o l s   i n s t a l l e d : G i t G o l a n g   v e r s i o n   1 . 1 3 + D o c k e r e t c d m a k e g c c   c o m p i l e r / l i n k e r Y o u r   G O P A T H   e n v i r o n m e n t   v a r i a b l e   m u s t   b e   s e t ,   a n d   t h e   l o c a t i o n   o f   e t c d   m u s t   b e   i n   y o u r   P A T H   e n v i r o n m e n t   v a r i a b l e . Y o u   n e e d   t o   k n o w   h o w   t o   c r e a t e   a   p u l l   r e q u e s t   t o   a   G i t H u b   r e p o s i t o r y .   T y p i c a l l y ,   t h i s   i n v o l v e s   c r e a t i n g   a   f o r k   o f   t h e   r e p o s i t o r y .   F o r   m o r e   i n f o r m a t i o n ,   s e e   C r e a t i n g   a   P u l l   R e q u e s t   a n d   G i t H u b   S t a n d a r d   F o r k   &   P u l l   R e q u e s t   W o r k f l o w .   Y o u   n e e d   t o   h a v e   t h e s e   t o o l s   i n s t a l l e d :   G i t G o l a n g   v e r s i o n   1 . 1 3 + D o c k e r e t c d m a k e g c c   c o m p i l e r / l i n k e r   Y o u r   G O P A T H   e n v i r o n m e n t   v a r i a b l e   m u s t   b e   s e t ,   a n d   t h e   l o c a t i o n   o f   e t c d   m u s t   b e   i n   y o u r   P A T H   e n v i r o n m e n t   v a r i a b l e .   Y o u   n e e d   t o   k n o w   h o w   t o   c r e a t e   a   p u l l   r e q u e s t   t o   a   G i t H u b   r e p o s i t o r y .   T y p i c a l l y ,   t h i s   i n v o l v e s   c r e a t i n g   a   f o r k   o f   t h e   r e p o s i t o r y .   F o r   m o r e   i n f o r m a t i o n ,   s e e   C r e a t i n g   a   P u l l   R e q u e s t   a n d   G i t H u b   S t a n d a r d   F o r k   &   P u l l   R e q u e s t   W o r k f l o w .


Question: What is The big picture?

Answer: T h e   r e f e r e n c e   d o c u m e n t a t i o n   f o r   t h e   K u b e r n e t e s   A P I   a n d   t h e   k u b e - *   c o m p o n e n t s   s u c h   a s   k u b e - a p i s e r v e r ,   k u b e - c o n t r o l l e r - m a n a g e r   a r e   a u t o m a t i c a l l y   g e n e r a t e d   f r o m   t h e   s o u r c e   c o d e   i n   t h e   u p s t r e a m   K u b e r n e t e s .   W h e n   y o u   s e e   b u g s   i n   t h e   g e n e r a t e d   d o c u m e n t a t i o n ,   y o u   m a y   w a n t   t o   c o n s i d e r   c r e a t i n g   a   p a t c h   t o   f i x   i t   i n   t h e   u p s t r e a m   p r o j e c t .


Question: What is Clone the Kubernetes repository?

Answer: I f   y o u   d o n ' t   a l r e a d y   h a v e   t h e   k u b e r n e t e s / k u b e r n e t e s   r e p o s i t o r y ,   g e t   i t   n o w :   m k d i r   $ G O P A T H / s r c   c d   $ G O P A T H / s r c   g o   g e t   g i t h u b . c o m / k u b e r n e t e s / k u b e r n e t e s   D e t e r m i n e   t h e   b a s e   d i r e c t o r y   o f   y o u r   c l o n e   o f   t h e   k u b e r n e t e s / k u b e r n e t e s   r e p o s i t o r y .   F o r   e x a m p l e ,   i f   y o u   f o l l o w e d   t h e   p r e c e d i n g   s t e p   t o   g e t   t h e   r e p o s i t o r y ,   y o u r   b a s e   d i r e c t o r y   i s   $ G O P A T H / s r c / g i t h u b . c o m / k u b e r n e t e s / k u b e r n e t e s .   T h e   r e m a i n i n g   s t e p s   r e f e r   t o   y o u r   b a s e   d i r e c t o r y   a s   < k 8 s - b a s e > .   D e t e r m i n e   t h e   b a s e   d i r e c t o r y   o f   y o u r   c l o n e   o f   t h e   k u b e r n e t e s - s i g s / r e f e r e n c e - d o c s   r e p o s i t o r y .   F o r   e x a m p l e ,   i f   y o u   f o l l o w e d   t h e   p r e c e d i n g   s t e p   t o   g e t   t h e   r e p o s i t o r y ,   y o u r   b a s e   d i r e c t o r y   i s   $ G O P A T H / s r c / g i t h u b . c o m / k u b e r n e t e s - s i g s / r e f e r e n c e - d o c s .   T h e   r e m a i n i n g   s t e p s   r e f e r   t o   y o u r   b a s e   d i r e c t o r y   a s   < r d o c s - b a s e > .


Question: What is Edit the Kubernetes source code?

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


Question: What is Note:?

Answer: H e r e ' s   a n   e x a m p l e   o f   e d i t i n g   a   c o m m e n t   i n   t h e   K u b e r n e t e s   s o u r c e   c o d e .   I n   y o u r   l o c a l   k u b e r n e t e s / k u b e r n e t e s   r e p o s i t o r y ,   c h e c k   o u t   t h e   d e f a u l t   b r a n c h ,   a n d   m a k e   s u r e   i t   i s   u p   t o   d a t e :   c d   < k 8 s - b a s e >   g i t   c h e c k o u t   m a s t e r   g i t   p u l l   h t t p s : / / g i t h u b . c o m / k u b e r n e t e s / k u b e r n e t e s   m a s t e r   S u p p o s e   t h i s   s o u r c e   f i l e   i n   t h a t   d e f a u l t   b r a n c h   h a s   t h e   t y p o   " a t m o s t " :   k u b e r n e t e s / k u b e r n e t e s / s t a g i n g / s r c / k 8 s . i o / a p i / a p p s / v 1 / t y p e s . g o   I n   y o u r   l o c a l   e n v i r o n m e n t ,   o p e n   t y p e s . g o ,   a n d   c h a n g e   " a t m o s t "   t o   " a t   m o s t " .   V e r i f y   t h a t   y o u   h a v e   c h a n g e d   t h e   f i l e :   g i t   s t a t u s   T h e   o u t p u t   s h o w s   t h a t   y o u   a r e   o n   t h e   m a s t e r   b r a n c h ,   a n d   t h a t   t h e   t y p e s . g o   s o u r c e   f i l e   h a s   b e e n   m o d i f i e d :   O n   b r a n c h   m a s t e r   . . .   m o d i f i e d :   s t a g i n g / s r c / k 8 s . i o / a p i / a p p s / v 1 / t y p e s . g o


Question: What is Commit your edited file?

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


Question: What is Generate the OpenAPI spec and related files?

Answer: G o   t o   < k 8 s - b a s e >   a n d   r u n   t h e s e   s c r i p t s :   . / h a c k / u p d a t e - c o d e g e n . s h   . / h a c k / u p d a t e - o p e n a p i - s p e c . s h   R u n   g i t   s t a t u s   t o   s e e   w h a t   w a s   g e n e r a t e d .   O n   b r a n c h   m a s t e r   . . .   m o d i f i e d :   a p i / o p e n a p i - s p e c / s w a g g e r . j s o n   m o d i f i e d :   a p i / o p e n a p i - s p e c / v 3 / a p i s _ _ a p p s _ _ v 1 _ o p e n a p i . j s o n   m o d i f i e d :   p k g / g e n e r a t e d / o p e n a p i / z z _ g e n e r a t e d . o p e n a p i . g o   m o d i f i e d :   s t a g i n g / s r c / k 8 s . i o / a p i / a p p s / v 1 / g e n e r a t e d . p r o t o   m o d i f i e d :   s t a g i n g / s r c / k 8 s . i o / a p i / a p p s / v 1 / t y p e s _ s w a g g e r _ d o c _ g e n e r a t e d . g o   V i e w   t h e   c o n t e n t s   o f   a p i / o p e n a p i - s p e c / s w a g g e r . j s o n   t o   m a k e   s u r e   t h e   t y p o   i s   f i x e d .   F o r   e x a m p l e ,   y o u   c o u l d   r u n   g i t   d i f f   - a   a p i / o p e n a p i - s p e c / s w a g g e r . j s o n .   T h i s   i s   i m p o r t a n t ,   b e c a u s e   s w a g g e r . j s o n   i s   t h e   i n p u t   t o   t h e   s e c o n d   s t a g e   o f   t h e   d o c   g e n e r a t i o n   p r o c e s s .   R u n   g i t   a d d   a n d   g i t   c o m m i t   t o   c o m m i t   y o u r   c h a n g e s .   N o w   y o u   h a v e   t w o   c o m m i t s :   o n e   t h a t   c o n t a i n s   t h e   e d i t e d   t y p e s . g o   f i l e ,   a n d   o n e   t h a t   c o n t a i n s   t h e   g e n e r a t e d   O p e n A P I   s p e c   a n d   r e l a t e d   f i l e s .   K e e p   t h e s e   t w o   c o m m i t s   s e p a r a t e .   T h a t   i s ,   d o   n o t   s q u a s h   y o u r   c o m m i t s .   S u b m i t   y o u r   c h a n g e s   a s   a   p u l l   r e q u e s t   t o   t h


Question: What is Cherry pick your commit into a release branch?

Answer: I n   t h e   p r e c e d i n g   s e c t i o n ,   y o u   e d i t e d   a   f i l e   i n   t h e   m a s t e r   b r a n c h   a n d   t h e n   r a n   s c r i p t s   t o   g e n e r a t e   a n   O p e n A P I   s p e c   a n d   r e l a t e d   f i l e s .   T h e n   y o u   s u b m i t t e d   y o u r   c h a n g e s   i n   a   p u l l   r e q u e s t   t o   t h e   m a s t e r   b r a n c h   o f   t h e   k u b e r n e t e s / k u b e r n e t e s   r e p o s i t o r y .   N o w   s u p p o s e   y o u   w a n t   t o   b a c k p o r t   y o u r   c h a n g e   i n t o   a   r e l e a s e   b r a n c h .   F o r   e x a m p l e ,   s u p p o s e   t h e   m a s t e r   b r a n c h   i s   b e i n g   u s e d   t o   d e v e l o p   K u b e r n e t e s   v e r s i o n   1 . 3 4 ,   a n d   y o u   w a n t   t o   b a c k p o r t   y o u r   c h a n g e   i n t o   t h e   r e l e a s e - 1 . 3 3   b r a n c h .   R e c a l l   t h a t   y o u r   p u l l   r e q u e s t   h a s   t w o   c o m m i t s :   o n e   f o r   e d i t i n g   t y p e s . g o   a n d   o n e   f o r   t h e   f i l e s   g e n e r a t e d   b y   s c r i p t s .   T h e   n e x t   s t e p   i s   t o   p r o p o s e   a   c h e r r y   p i c k   o f   y o u r   f i r s t   c o m m i t   i n t o   t h e   r e l e a s e - 1 . 3 3   b r a n c h .   T h e   i d e a   i s   t o   c h e r r y   p i c k   t h e   c o m m i t   t h a t   e d i t e d   t y p e s . g o ,   b u t   n o t   t h e   c o m m i t   t h a t   h a s   t h e   r e s u l t s   o f   r u n n i n g   t h e   s c r i p t s .   F o r   i n s t r u c t i o n s ,   s e e   P r o p o s e   a   C h e r r y   P i c k .


Question: What is Note:?

Answer: W h e n   y o u   h a v e   a   p u l l   r e q u e s t   i n   p l a c e   f o r   c h e r r y   p i c k i n g   y o u r   o n e   c o m m i t   i n t o   t h e   r e l e a s e - 1 . 3 3   b r a n c h ,   t h e   n e x t   s t e p   i s   t o   r u n   t h e s e   s c r i p t s   i n   t h e   r e l e a s e - 1 . 3 3   b r a n c h   o f   y o u r   l o c a l   e n v i r o n m e n t .   . / h a c k / u p d a t e - c o d e g e n . s h   . / h a c k / u p d a t e - o p e n a p i - s p e c . s h   N o w   a d d   a   c o m m i t   t o   y o u r   c h e r r y - p i c k   p u l l   r e q u e s t   t h a t   h a s   t h e   r e c e n t l y   g e n e r a t e d   O p e n A P I   s p e c   a n d   r e l a t e d   f i l e s .   M o n i t o r   y o u r   p u l l   r e q u e s t   u n t i l   i t   g e t s   m e r g e d   i n t o   t h e   r e l e a s e - 1 . 3 3   b r a n c h .   A t   t h i s   p o i n t ,   b o t h   t h e   m a s t e r   b r a n c h   a n d   t h e   r e l e a s e - 1 . 3 3   b r a n c h   h a v e   y o u r   u p d a t e d   t y p e s . g o   f i l e   a n d   a   s e t   o f   g e n e r a t e d   f i l e s   t h a t   r e f l e c t   t h e   c h a n g e   y o u   m a d e   t o   t y p e s . g o .   N o t e   t h a t   t h e   g e n e r a t e d   O p e n A P I   s p e c   a n d   o t h e r   g e n e r a t e d   f i l e s   i n   t h e   r e l e a s e - 1 . 3 3   b r a n c h   a r e   n o t   n e c e s s a r i l y   t h e   s a m e   a s   t h e   g e n e r a t e d   f i l e s   i n   t h e   m a s t e r   b r a n c h .   T h e   g e n e r a t e d   f i l e s   i n   t h e   r e l e a s e - 1 . 3 3   b r a n c h   c o n t a i n   A P I   e l e m e n t s   o n l y   f r o m   K u b e r n e t e s   1 . 3 3 .   T h e   g e n e r a t e d   f i l e s   i n   t h e   m a s t e r   b r a n c h   m i g h t   c o n t a i n   A P I   e l e m e n t s   t h a t   a r e   n o t   i n   1 . 3 3 ,   b u t   a r e   u n d e r   d e v e l o p m e n t   f o r   1 . 3 4 .


Question: What is Generate the published reference docs?

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


Question: What is What's next?

Answer: G e n e r a t i n g   R e f e r e n c e   D o c u m e n t a t i o n   f o r   t h e   K u b e r n e t e s   A P I G e n e r a t i n g   R e f e r e n c e   D o c s   f o r   K u b e r n e t e s   C o m p o n e n t s   a n d   T o o l s G e n e r a t i n g   R e f e r e n c e   D o c u m e n t a t i o n   f o r   k u b e c t l   C o m m a n d s


Question: What is kube-apiserver?

Answer: kube-apiserverSynopsisThe Kubernetes API server validates and configures data for the api objects which include pods, services, replicationcontrollers, and others. The API Server services REST operations and provides the frontend to the cluster's shared state through which all other components interact.kube-apiserver [flags] Options--admission-control-config-file stringFile with admission control configuration.--advertise-address stringThe IP address on which to advertise the apiserver to members of the cluster. This address must be reachable by the rest of the cluster. If blank, the --bind-address will be used. If --bind-address is unspecified, the host's default interface will be used.--aggregator-reject-forwarding-redirect Default: trueAggregator reject forwarding redirect response back to client.--allow-metric-labels stringToString Default: []The map from metric-label to value allow-list of this label. The key's format is <MetricName>,<LabelName>. The value's format is <allowed_value>,<allowed_value>...e.g. metric1,label1='v1,v2,v3', metric1,label2='v1,v2,v3' metric2,label1='v1,v2,v3'.--allow-metric-labels-manifest stringThe path to the manifest file that contains the allow-list mapping. The format of the file is the same as the flag --allow-metric-labels. Note that the flag --allow-metric-labels will override the manifest file.--allow-privilegedIf true, allow privileged containers. [default=false]--anonymous-auth Default: trueEnables anonymous requests to the secure port of the API server. Requests that are not rejected by another authentication method are treated as anonymous requests. Anonymous requests have a username of system:anonymous, and a group name of system:unauthenticated.--api-audiences stringsIdentifiers of the API. The service account token authenticator will validate that tokens used against the API are bound to at least one of these audiences. If the --service-account-issuer flag is configured and this flag is not, this field defaults to a single element list containing the issuer URL.--audit-log-batch-buffer-size int Default: 10000The size of the buffer to store events before batching and writing. Only used in batch mode.--audit-log-batch-max-size int Default: 1The maximum size of a batch. Only used in batch mode.--audit-log-batch-max-wait durationThe amount of time to wait before force writing the batch that hadn't reached the max size. Only used in batch mode.--audit-log-batch-throttle-burst intMaximum number of requests sent at the same moment if ThrottleQPS was not utilized before. Only used in batch mode.--audit-log-batch-throttle-enableWhether batching throttling is enabled. Only used in batch mode.--audit-log-batch-throttle-qps floatMaximum average number of batches per second. Only used in batch mode.--audit-log-compressIf set, the rotated log files will be compressed using gzip.--audit-log-format string Default: "json"Format of saved audits. "legacy" indicates 1-line text format for each event. "json" indicates str


Question: How does kube-apiserver work?

Answer: kube-apiserverSynopsisThe Kubernetes API server validates and configures data for the api objects which include pods, services, replicationcontrollers, and others. The API Server services REST operations and provides the frontend to the cluster's shared state through which all other components interact.kube-apiserver [flags] Options--admission-control-config-file stringFile with admission control configuration.--advertise-address stringThe IP address on which to advertise the apiserver to members of the cluster. This address must be reachable by the rest of the cluster. If blank, the --bind-address will be used. If --bind-address is unspecified, the host's default interface will be used.--aggregator-reject-forwarding-redirect Default: trueAggregator reject forwarding redirect response back to client.--allow-metric-labels stringToString Default: []The map from metric-label to value allow-list of this label. The key's format is <MetricName>,<LabelName>. The value's format is <allowed_value>,<allowed_value>...e.g. metric1,label1='v1,v2,v3', metric1,label2='v1,v2,v3' metric2,label1='v1,v2,v3'.--allow-metric-labels-manifest stringThe path to the manifest file that contains the allow-list mapping. The format of the file is the same as the flag --allow-metric-labels. Note that the flag --allow-metric-labels will override the manifest file.--allow-privilegedIf true, allow privileged containers. [default=false]--anonymous-auth Default: trueEnables anonymous requests to the secure port of the API server. Requests that are not rejected by another authentication method are treated as anonymous requests. Anonymous requests have a username of system:anonymous, and a group name of system:unauthenticated.--api-audiences stringsIdentifiers of the API. The service account token authenticator will validate that tokens used against the API are bound to at least one of these audiences. If the --service-account-issuer flag is configured and this flag is not, this field defaults to a single element list containing the issuer URL.--audit-log-batch-buffer-size int Default: 10000The size of the buffer to store events before batching and writing. Only used in batch mode.--audit-log-batch-max-size int Default: 1The maximum size of a batch. Only used in batch mode.--audit-log-batch-max-wait durationThe amount of time to wait before force writing the batch that hadn't reached the max size. Only used in batch mode.--audit-log-batch-throttle-burst intMaximum number of requests sent at the same moment if ThrottleQPS was not utilized before. Only used in batch mode.--audit-log-batch-throttle-enableWhether batching throttling is enabled. Only used in batch mode.--audit-log-batch-throttle-qps floatMaximum average number of batches per second. Only used in batch mode.--audit-log-compressIf set, the rotated log files will be compressed using gzip.--audit-log-format string Default: "json"Format of saved audits. "legacy" indicates 1-line text format for each event. "json" indicates str


Question: When would you use kube-apiserver?

Answer: kube-apiserverSynopsisThe Kubernetes API server validates and configures data for the api objects which include pods, services, replicationcontrollers, and others. The API Server services REST operations and provides the frontend to the cluster's shared state through which all other components interact.kube-apiserver [flags] Options--admission-control-config-file stringFile with admission control configuration.--advertise-address stringThe IP address on which to advertise the apiserver to members of the cluster. This address must be reachable by the rest of the cluster. If blank, the --bind-address will be used. If --bind-address is unspecified, the host's default interface will be used.--aggregator-reject-forwarding-redirect Default: trueAggregator reject forwarding redirect response back to client.--allow-metric-labels stringToString Default: []The map from metric-label to value allow-list of this label. The key's format is <MetricName>,<LabelName>. The value's format is <allowed_value>,<allowed_value>...e.g. metric1,label1='v1,v2,v3', metric1,label2='v1,v2,v3' metric2,label1='v1,v2,v3'.--allow-metric-labels-manifest stringThe path to the manifest file that contains the allow-list mapping. The format of the file is the same as the flag --allow-metric-labels. Note that the flag --allow-metric-labels will override the manifest file.--allow-privilegedIf true, allow privileged containers. [default=false]--anonymous-auth Default: trueEnables anonymous requests to the secure port of the API server. Requests that are not rejected by another authentication method are treated as anonymous requests. Anonymous requests have a username of system:anonymous, and a group name of system:unauthenticated.--api-audiences stringsIdentifiers of the API. The service account token authenticator will validate that tokens used against the API are bound to at least one of these audiences. If the --service-account-issuer flag is configured and this flag is not, this field defaults to a single element list containing the issuer URL.--audit-log-batch-buffer-size int Default: 10000The size of the buffer to store events before batching and writing. Only used in batch mode.--audit-log-batch-max-size int Default: 1The maximum size of a batch. Only used in batch mode.--audit-log-batch-max-wait durationThe amount of time to wait before force writing the batch that hadn't reached the max size. Only used in batch mode.--audit-log-batch-throttle-burst intMaximum number of requests sent at the same moment if ThrottleQPS was not utilized before. Only used in batch mode.--audit-log-batch-throttle-enableWhether batching throttling is enabled. Only used in batch mode.--audit-log-batch-throttle-qps floatMaximum average number of batches per second. Only used in batch mode.--audit-log-compressIf set, the rotated log files will be compressed using gzip.--audit-log-format string Default: "json"Format of saved audits. "legacy" indicates 1-line text format for each event. "json" indicates str


Question: What are the benefits of kube-apiserver?

Answer: kube-apiserverSynopsisThe Kubernetes API server validates and configures data for the api objects which include pods, services, replicationcontrollers, and others. The API Server services REST operations and provides the frontend to the cluster's shared state through which all other components interact.kube-apiserver [flags] Options--admission-control-config-file stringFile with admission control configuration.--advertise-address stringThe IP address on which to advertise the apiserver to members of the cluster. This address must be reachable by the rest of the cluster. If blank, the --bind-address will be used. If --bind-address is unspecified, the host's default interface will be used.--aggregator-reject-forwarding-redirect Default: trueAggregator reject forwarding redirect response back to client.--allow-metric-labels stringToString Default: []The map from metric-label to value allow-list of this label. The key's format is <MetricName>,<LabelName>. The value's format is <allowed_value>,<allowed_value>...e.g. metric1,label1='v1,v2,v3', metric1,label2='v1,v2,v3' metric2,label1='v1,v2,v3'.--allow-metric-labels-manifest stringThe path to the manifest file that contains the allow-list mapping. The format of the file is the same as the flag --allow-metric-labels. Note that the flag --allow-metric-labels will override the manifest file.--allow-privilegedIf true, allow privileged containers. [default=false]--anonymous-auth Default: trueEnables anonymous requests to the secure port of the API server. Requests that are not rejected by another authentication method are treated as anonymous requests. Anonymous requests have a username of system:anonymous, and a group name of system:unauthenticated.--api-audiences stringsIdentifiers of the API. The service account token authenticator will validate that tokens used against the API are bound to at least one of these audiences. If the --service-account-issuer flag is configured and this flag is not, this field defaults to a single element list containing the issuer URL.--audit-log-batch-buffer-size int Default: 10000The size of the buffer to store events before batching and writing. Only used in batch mode.--audit-log-batch-max-size int Default: 1The maximum size of a batch. Only used in batch mode.--audit-log-batch-max-wait durationThe amount of time to wait before force writing the batch that hadn't reached the max size. Only used in batch mode.--audit-log-batch-throttle-burst intMaximum number of requests sent at the same moment if ThrottleQPS was not utilized before. Only used in batch mode.--audit-log-batch-throttle-enableWhether batching throttling is enabled. Only used in batch mode.--audit-log-batch-throttle-qps floatMaximum average number of batches per second. Only used in batch mode.--audit-log-compressIf set, the rotated log files will be compressed using gzip.--audit-log-format string Default: "json"Format of saved audits. "legacy" indicates 1-line text format for each event. "json" indicates str


Question: What is Synopsis?

Answer: T h e   K u b e r n e t e s   A P I   s e r v e r   v a l i d a t e s   a n d   c o n f i g u r e s   d a t a   f o r   t h e   a p i   o b j e c t s   w h i c h   i n c l u d e   p o d s ,   s e r v i c e s ,   r e p l i c a t i o n c o n t r o l l e r s ,   a n d   o t h e r s .   T h e   A P I   S e r v e r   s e r v i c e s   R E S T   o p e r a t i o n s   a n d   p r o v i d e s   t h e   f r o n t e n d   t o   t h e   c l u s t e r ' s   s h a r e d   s t a t e   t h r o u g h   w h i c h   a l l   o t h e r   c o m p o n e n t s   i n t e r a c t .   k u b e - a p i s e r v e r   [ f l a g s ]


Question: What is Options?

Answer: F i l e   w i t h   a d m i s s i o n   c o n t r o l   c o n f i g u r a t i o n .   T h e   I P   a d d r e s s   o n   w h i c h   t o   a d v e r t i s e   t h e   a p i s e r v e r   t o   m e m b e r s   o f   t h e   c l u s t e r .   T h i s   a d d r e s s   m u s t   b e   r e a c h a b l e   b y   t h e   r e s t   o f   t h e   c l u s t e r .   I f   b l a n k ,   t h e   - - b i n d - a d d r e s s   w i l l   b e   u s e d .   I f   - - b i n d - a d d r e s s   i s   u n s p e c i f i e d ,   t h e   h o s t ' s   d e f a u l t   i n t e r f a c e   w i l l   b e   u s e d .   A g g r e g a t o r   r e j e c t   f o r w a r d i n g   r e d i r e c t   r e s p o n s e   b a c k   t o   c l i e n t .   T h e   m a p   f r o m   m e t r i c - l a b e l   t o   v a l u e   a l l o w - l i s t   o f   t h i s   l a b e l .   T h e   k e y ' s   f o r m a t   i s   < M e t r i c N a m e > , < L a b e l N a m e > .   T h e   v a l u e ' s   f o r m a t   i s   < a l l o w e d _ v a l u e > , < a l l o w e d _ v a l u e > . . . e . g .   m e t r i c 1 , l a b e l 1 = ' v 1 , v 2 , v 3 ' ,   m e t r i c 1 , l a b e l 2 = ' v 1 , v 2 , v 3 '   m e t r i c 2 , l a b e l 1 = ' v 1 , v 2 , v 3 ' .   T h e   p a t h   t o   t h e   m a n i f e s t   f i l e   t h a t   c o n t a i n s   t h e   a l l o w - l i s t   m a p p i n g .   T h e   f o r m a t   o f   t h e   f i l e   i s   t h e   s a m e   a s   t h e   f l a g   - - a l l o w - m e t r i c - l a b e l s .   N o t e   t h a t   t h e   f l a g   - - a l l o w - m e t r i c - l a b e l s   w i l l   o v e r r i d e   t h e   m a n i f e s t   f i l e .   I f   t r u e ,   a l l o w   p r i v i l e g e d   c o n t a i n e r s .   [ d e f a u l t = f a l s e ]   E n a b l e s   a n o n y m o u s   r e q u e s t s   t o   t h e   s e c u r e   p o r t   o f   t h e   A P I   s e r v e r .   R e q u e s t s   t h a t   a r e   n o t   r e j e c t e d   b y   a n o t h e r   a u t h e n t i c a t i o n   m


Question: What is Scale a StatefulSet?

Answer: Scale a StatefulSetThis task shows how to scale a StatefulSet. Scaling a StatefulSet refers to increasing or decreasing the number of replicas.Before you beginStatefulSets are only available in Kubernetes version 1.5 or later. To check your version of Kubernetes, run kubectl version.Not all stateful applications scale nicely. If you are unsure about whether to scale your StatefulSets, see StatefulSet concepts or StatefulSet tutorial for further information.You should perform scaling only when you are confident that your stateful application cluster is completely healthy.Scaling StatefulSetsUse kubectl to scale StatefulSetsFirst, find the StatefulSet you want to scale.kubectl get statefulsets <stateful-set-name> Change the number of replicas of your StatefulSet:kubectl scale statefulsets <stateful-set-name> --replicas=<new-replicas> Make in-place updates on your StatefulSetsAlternatively, you can do in-place updates on your StatefulSets.If your StatefulSet was initially created with kubectl apply, update .spec.replicas of the StatefulSet manifests, and then do a kubectl apply:kubectl apply -f <stateful-set-file-updated> Otherwise, edit that field with kubectl edit:kubectl edit statefulsets <stateful-set-name> Or use kubectl patch:kubectl patch statefulsets <stateful-set-name> -p '{"spec":{"replicas":<new-replicas>}}' TroubleshootingScaling down does not work rightYou cannot scale down a StatefulSet when any of the stateful Pods it manages is unhealthy. Scaling down only takes place after those stateful Pods become running and ready.If spec.replicas > 1, Kubernetes cannot determine the reason for an unhealthy Pod. It might be the result of a permanent fault or of a transient fault. A transient fault can be caused by a restart required by upgrading or maintenance.If the Pod is unhealthy due to a permanent fault, scaling without correcting the fault may lead to a state where the StatefulSet membership drops below a certain minimum number of replicas that are needed to function correctly. This may cause your StatefulSet to become unavailable.If the Pod is unhealthy due to a transient fault and the Pod might become available again, the transient error may interfere with your scale-up or scale-down operation. Some distributed databases have issues when nodes join and leave at the same time. It is better to reason about scaling operations at the application level in these cases, and perform scaling only when you are sure that your stateful application cluster is completely healthy.What's nextLearn more about deleting a StatefulSet.


Question: How does Scale a StatefulSet work?

Answer: Scale a StatefulSetThis task shows how to scale a StatefulSet. Scaling a StatefulSet refers to increasing or decreasing the number of replicas.Before you beginStatefulSets are only available in Kubernetes version 1.5 or later. To check your version of Kubernetes, run kubectl version.Not all stateful applications scale nicely. If you are unsure about whether to scale your StatefulSets, see StatefulSet concepts or StatefulSet tutorial for further information.You should perform scaling only when you are confident that your stateful application cluster is completely healthy.Scaling StatefulSetsUse kubectl to scale StatefulSetsFirst, find the StatefulSet you want to scale.kubectl get statefulsets <stateful-set-name> Change the number of replicas of your StatefulSet:kubectl scale statefulsets <stateful-set-name> --replicas=<new-replicas> Make in-place updates on your StatefulSetsAlternatively, you can do in-place updates on your StatefulSets.If your StatefulSet was initially created with kubectl apply, update .spec.replicas of the StatefulSet manifests, and then do a kubectl apply:kubectl apply -f <stateful-set-file-updated> Otherwise, edit that field with kubectl edit:kubectl edit statefulsets <stateful-set-name> Or use kubectl patch:kubectl patch statefulsets <stateful-set-name> -p '{"spec":{"replicas":<new-replicas>}}' TroubleshootingScaling down does not work rightYou cannot scale down a StatefulSet when any of the stateful Pods it manages is unhealthy. Scaling down only takes place after those stateful Pods become running and ready.If spec.replicas > 1, Kubernetes cannot determine the reason for an unhealthy Pod. It might be the result of a permanent fault or of a transient fault. A transient fault can be caused by a restart required by upgrading or maintenance.If the Pod is unhealthy due to a permanent fault, scaling without correcting the fault may lead to a state where the StatefulSet membership drops below a certain minimum number of replicas that are needed to function correctly. This may cause your StatefulSet to become unavailable.If the Pod is unhealthy due to a transient fault and the Pod might become available again, the transient error may interfere with your scale-up or scale-down operation. Some distributed databases have issues when nodes join and leave at the same time. It is better to reason about scaling operations at the application level in these cases, and perform scaling only when you are sure that your stateful application cluster is completely healthy.What's nextLearn more about deleting a StatefulSet.