Question: What is Make a dry-run request?

Answer: D r y - r u n   i s   t r i g g e r e d   b y   s e t t i n g   t h e   d r y R u n   q u e r y   p a r a m e t e r .   T h i s   p a r a m e t e r   i s   a   s t r i n g ,   w o r k i n g   a s   a n   e n u m ,   a n d   t h e   o n l y   a c c e p t e d   v a l u e s   a r e :   W h e n   y o u   s e t   ? d r y R u n = A l l ,   a n y   r e l e v a n t   a d m i s s i o n   c o n t r o l l e r s   a r e   r u n ,   v a l i d a t i n g   a d m i s s i o n   c o n t r o l l e r s   c h e c k   t h e   r e q u e s t   p o s t - m u t a t i o n ,   m e r g e   i s   p e r f o r m e d   o n   P A T C H ,   f i e l d s   a r e   d e f a u l t e d ,   a n d   s c h e m a   v a l i d a t i o n   o c c u r s .   T h e   c h a n g e s   a r e   n o t   p e r s i s t e d   t o   t h e   u n d e r l y i n g   s t o r a g e ,   b u t   t h e   f i n a l   o b j e c t   w h i c h   w o u l d   h a v e   b e e n   p e r s i s t e d   i s   s t i l l   r e t u r n e d   t o   t h e   u s e r ,   a l o n g   w i t h   t h e   n o r m a l   s t a t u s   c o d e .   I f   t h e   n o n - d r y - r u n   v e r s i o n   o f   a   r e q u e s t   w o u l d   t r i g g e r   a n   a d m i s s i o n   c o n t r o l l e r   t h a t   h a s   s i d e   e f f e c t s ,   t h e   r e q u e s t   w i l l   b e   f a i l e d   r a t h e r   t h a n   r i s k   a n   u n w a n t e d   s i d e   e f f e c t .   A l l   b u i l t   i n   a d m i s s i o n   c o n t r o l   p l u g i n s   s u p p o r t   d r y - r u n .   A d d i t i o n a l l y ,   a d m i s s i o n   w e b h o o k s   c a n   d e c l a r e   i n   t h e i r   c o n f i g u r a t i o n   o b j e c t   t h a t   t h e y   d o   n o t   h a v e   s i d e   e f f e c t s ,   b y   s e t t i n g   t h e i r   s i d e E f f e c t s   f i e l d   t o   N o n e .


Question: What is Note:?

Answer: H e r e   i s   a n   e x a m p l e   d r y - r u n   r e q u e s t   t h a t   u s e s   ? d r y R u n = A l l :   P O S T   / a p i / v 1 / n a m e s p a c e s / t e s t / p o d s ? d r y R u n = A l l   C o n t e n t - T y p e :   a p p l i c a t i o n / j s o n   A c c e p t :   a p p l i c a t i o n / j s o n   T h e   r e s p o n s e   w o u l d   l o o k   t h e   s a m e   a s   f o r   n o n - d r y - r u n   r e q u e s t ,   b u t   t h e   v a l u e s   o f   s o m e   g e n e r a t e d   f i e l d s   m a y   d i f f e r .


Question: What is Generated values?

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


Question: What is Dry-run authorization?

Answer: A u t h o r i z a t i o n   f o r   d r y - r u n   a n d   n o n - d r y - r u n   r e q u e s t s   i s   i d e n t i c a l .   T h u s ,   t o   m a k e   a   d r y - r u n   r e q u e s t ,   y o u   m u s t   b e   a u t h o r i z e d   t o   m a k e   t h e   n o n - d r y - r u n   r e q u e s t .   F o r   e x a m p l e ,   t o   r u n   a   d r y - r u n   p a t c h   f o r   a   D e p l o y m e n t ,   y o u   m u s t   b e   a u t h o r i z e d   t o   p e r f o r m   t h a t   p a t c h .   H e r e   i s   a n   e x a m p l e   o f   a   r u l e   f o r   K u b e r n e t e s   R B A C   t h a t   a l l o w s   p a t c h i n g   D e p l o y m e n t s :   r u l e s :   -   a p i G r o u p s :   [ " a p p s " ]   r e s o u r c e s :   [ " d e p l o y m e n t s " ]   v e r b s :   [ " p a t c h " ]   S e e   A u t h o r i z a t i o n   O v e r v i e w .


Question: What is Updates to existing resources?

Answer: K u b e r n e t e s   p r o v i d e s   s e v e r a l   w a y s   t o   u p d a t e   e x i s t i n g   o b j e c t s .   Y o u   c a n   r e a d   c h o o s i n g   a n   u p d a t e   m e c h a n i s m   t o   l e a r n   a b o u t   w h i c h   a p p r o a c h   m i g h t   b e   b e s t   f o r   y o u r   u s e   c a s e .   Y o u   c a n   o v e r w r i t e   ( u p d a t e )   a n   e x i s t i n g   r e s o u r c e   -   f o r   e x a m p l e ,   a   C o n f i g M a p   -   u s i n g   a n   H T T P   P U T .   F o r   a   P U T   r e q u e s t ,   i t   i s   t h e   c l i e n t ' s   r e s p o n s i b i l i t y   t o   s p e c i f y   t h e   r e s o u r c e V e r s i o n   ( t a k i n g   t h i s   f r o m   t h e   o b j e c t   b e i n g   u p d a t e d ) .   K u b e r n e t e s   u s e s   t h a t   r e s o u r c e V e r s i o n   i n f o r m a t i o n   s o   t h a t   t h e   A P I   s e r v e r   c a n   d e t e c t   l o s t   u p d a t e s   a n d   r e j e c t   r e q u e s t s   m a d e   b y   a   c l i e n t   t h a t   i s   o u t   o f   d a t e   w i t h   t h e   c l u s t e r .   I n   t h e   e v e n t   t h a t   t h e   r e s o u r c e   h a s   c h a n g e d   ( t h e   r e s o u r c e V e r s i o n   t h e   c l i e n t   p r o v i d e d   i s   s t a l e ) ,   t h e   A P I   s e r v e r   r e t u r n s   a   4 0 9   C o n f l i c t   e r r o r   r e s p o n s e .   I n s t e a d   o f   s e n d i n g   a   P U T   r e q u e s t ,   t h e   c l i e n t   c a n   s e n d   a n   i n s t r u c t i o n   t o   t h e   A P I   s e r v e r   t o   p a t c h   a n   e x i s t i n g   r e s o u r c e .   A   p a t c h   i s   t y p i c a l l y   a p p r o p r i a t e   i f   t h e   c h a n g e   t h a t   t h e   c l i e n t   w a n t s   t o   m a k e   i s n ' t   c o n d i t i o n a l   o n   t h e   e x i s t i n g   d a t a .   C l i e n t s   t h a t   n e e d   e f f e c t i v e   d e t e c t i o n   o f   l o s t   u p d a t e s


Question: What is Note:?

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


Question: What is HTTP PUT to replace existing resource?

Answer: T h e   u p d a t e   ( H T T P   P U T )   o p e r a t i o n   i s   s i m p l e   t o   i m p l e m e n t   a n d   f l e x i b l e ,   b u t   h a s   d r a w b a c k s :   Y o u   n e e d   t o   h a n d l e   c o n f l i c t s   w h e r e   t h e   r e s o u r c e V e r s i o n   o f   t h e   o b j e c t   c h a n g e s   b e t w e e n   y o u r   c l i e n t   r e a d i n g   i t   a n d   t r y i n g   t o   w r i t e   i t   b a c k .   K u b e r n e t e s   a l w a y s   d e t e c t s   t h e   c o n f l i c t ,   b u t   y o u   a s   t h e   c l i e n t   a u t h o r   n e e d   t o   i m p l e m e n t   r e t r i e s . Y o u   m i g h t   a c c i d e n t a l l y   d r o p   f i e l d s   i f   y o u   d e c o d e   a n   o b j e c t   l o c a l l y   ( f o r   e x a m p l e ,   u s i n g   c l i e n t - g o ,   y o u   c o u l d   r e c e i v e   f i e l d s   t h a t   y o u r   c l i e n t   d o e s   n o t   k n o w   h o w   t o   h a n d l e   -   a n d   t h e n   d r o p   t h e m   a s   p a r t   o f   y o u r   u p d a t e . I f   t h e r e ' s   a   l o t   o f   c o n t e n t i o n   o n   t h e   o b j e c t   ( e v e n   o n   a   f i e l d ,   o r   s e t   o f   f i e l d s ,   t h a t   y o u ' r e   n o t   t r y i n g   t o   e d i t ) ,   y o u   m i g h t   h a v e   t r o u b l e   s e n d i n g   t h e   u p d a t e .   T h e   p r o b l e m   i s   w o r s e   f o r   l a r g e r   o b j e c t s   a n d   f o r   o b j e c t s   w i t h   m a n y   f i e l d s .


Question: What is HTTP PATCH using JSON Patch?

Answer: A   p a t c h   u p d a t e   i s   h e l p f u l ,   b e c a u s e :   A s   y o u ' r e   o n l y   s e n d i n g   d i f f e r e n c e s ,   y o u   h a v e   l e s s   d a t a   t o   s e n d   i n   t h e   P A T C H   r e q u e s t . Y o u   c a n   m a k e   c h a n g e s   t h a t   r e l y   o n   e x i s t i n g   v a l u e s ,   s u c h   a s   c o p y i n g   t h e   v a l u e   o f   a   p a r t i c u l a r   f i e l d   i n t o   a n   a n n o t a t i o n . U n l i k e   w i t h   a n   u p d a t e   ( H T T P   P U T ) ,   m a k i n g   y o u r   c h a n g e   c a n   h a p p e n   r i g h t   a w a y   e v e n   i f   t h e r e   a r e   f r e q u e n t   c h a n g e s   t o   u n r e l a t e d   f i e l d s ) :   y o u   u s u a l l y   w o u l d   n o t   n e e d   t o   r e t r y . Y o u   m i g h t   s t i l l   n e e d   t o   s p e c i f y   t h e   r e s o u r c e V e r s i o n   ( t o   m a t c h   a n   e x i s t i n g   o b j e c t )   i f   y o u   w a n t   t o   b e   e x t r a   c a r e f u l   t o   a v o i d   l o s t   u p d a t e s I t ' s   s t i l l   g o o d   p r a c t i c e   t o   w r i t e   i n   s o m e   r e t r y   l o g i c   i n   c a s e   o f   e r r o r s . Y o u   c a n   u s e   t e s t   c o n d i t i o n s   t o   c a r e f u l   c r a f t   s p e c i f i c   u p d a t e   c o n d i t i o n s .   F o r   e x a m p l e ,   y o u   c a n   i n c r e m e n t   a   c o u n t e r   w i t h o u t   r e a d i n g   i t   i f   t h e   e x i s t i n g   v a l u e   m a t c h e s   w h a t   y o u   e x p e c t .   Y o u   c a n   d o   t h i s   w i t h   n o   l o s t   u p d a t e   r i s k ,   e v e n   i f   t h e   o b j e c t   h a s   c h a n g e d   i n   o t h e r   w a y s   s i n c e   y o u   l a s t   w r o t e   t o   i t .   ( I f   t h e   t e s t   c o n d i t i o n   f a i l s ,   y o u   c a n   f a l l   b a c k   t o   r e a d i n g   t h e   c u r r e n t   v a l u e   a n d   t h e n   w r i t e


Question: What is HTTP PATCH using Server-Side Apply?

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


Question: What is Resource versions?

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


Question: What is resourceVersion fields in metadata?

Answer: C l i e n t s   f i n d   r e s o u r c e   v e r s i o n s   i n   r e s o u r c e s ,   i n c l u d i n g   t h e   r e s o u r c e s   f r o m   t h e   r e s p o n s e   s t r e a m   f o r   a   w a t c h ,   o r   w h e n   u s i n g   l i s t   t o   e n u m e r a t e   r e s o u r c e s .   v 1 . m e t a / O b j e c t M e t a   -   T h e   m e t a d a t a . r e s o u r c e V e r s i o n   o f   a   r e s o u r c e   i n s t a n c e   i d e n t i f i e s   t h e   r e s o u r c e   v e r s i o n   t h e   i n s t a n c e   w a s


Question: What is resourceVersion parameters in query strings?

Answer: T h e   g e t ,   l i s t ,   a n d   w a t c h   o p e r a t i o n s   s u p p o r t   t h e   r e s o u r c e V e r s i o n   p a r a m e t e r .   F r o m   v e r s i o n   v 1 . 1 9 ,   K u b e r n e t e s   A P I   s e r v e r s   a l s o   s u p p o r t   t h e   r e s o u r c e V e r s i o n M a t c h   p a r a m e t e r   o n   l i s t   r e q u e s t s .   T h e   A P I   s e r v e r   i n t e r p r e t s   t h e   r e s o u r c e V e r s i o n   p a r a m e t e r   d i f f e r e n t l y   d e p e n d i n g   o n   t h e   o p e r a t i o n   y o u   r e q u e s t ,   a n d   o n   t h e   v a l u e   o f   r e s o u r c e V e r s i o n .   I f   y o u   s e t   r e s o u r c e V e r s i o n M a t c h   t h e n   t h i s   a l s o   a f f e c t s   t h e   w a y   m a t c h i n g   h a p p e n s .


Question: What is Semantics for get and list?

Answer: F o r   g e t   a n d   l i s t ,   t h e   s e m a n t i c s   o f   r e s o u r c e V e r s i o n   a r e :   g e t :   l i s t :   F r o m   v e r s i o n   v 1 . 1 9 ,   K u b e r n e t e s   A P I   s e r v e r s   s u p p o r t   t h e   r e s o u r c e V e r s i o n M a t c h   p a r a m e t e r   o n   l i s t   r e q u e s t s .   I f   y o u   s e t   b o t h   r e s o u r c e V e r s i o n   a n d   r e s o u r c e V e r s i o n M a t c h ,   t h e   r e s o u r c e V e r s i o n M a t c h   p a r a m e t e r   d e t e r m i n e s   h o w   t h e   A P I   s e r v e r   i n t e r p r e t s   r e s o u r c e V e r s i o n .   Y o u   s h o u l d   a l w a y s   s e t   t h e   r e s o u r c e V e r s i o n M a t c h   p a r a m e t e r   w h e n   s e t t i n g   r e s o u r c e V e r s i o n   o n   a   l i s t   r e q u e s t .   H o w e v e r ,   b e   p r e p a r e d   t o   h a n d l e   t h e   c a s e   w h e r e   t h e   A P I   s e r v e r   t h a t   r e s p o n d s   i s   u n a w a r e   o f   r e s o u r c e V e r s i o n M a t c h   a n d   i g n o r e s   i t .   U n l e s s   y o u   h a v e   s t r o n g   c o n s i s t e n c y   r e q u i r e m e n t s ,   u s i n g   r e s o u r c e V e r s i o n M a t c h = N o t O l d e r T h a n   a n d   a   k n o w n   r e s o u r c e V e r s i o n   i s   p r e f e r a b l e   s i n c e   i t   c a n   a c h i e v e   b e t t e r   p e r f o r m a n c e   a n d   s c a l a b i l i t y   o f   y o u r   c l u s t e r   t h a n   l e a v i n g   r e s o u r c e V e r s i o n   a n d   r e s o u r c e V e r s i o n M a t c h   u n s e t ,   w h i c h   r e q u i r e s   q u o r u m   r e a d   t o   b e   s e r v e d .   S e t t i n g   t h e   r e s o u r c e V e r s i o n M a t c h   p a r a m e t e r   w i t h o u t   s e t t i n g   r e s o u r c e V e r s i o n   i s   n o t   v a l i d .   T h i s   t a b l e   e x p l a i n s   t h e   b e h a v i o r   o f   l i s t   r e q u e s t s   w i t


Question: What is Note:?

Answer: T h e   m e a n i n g   o f   t h e   g e t   a n d   l i s t   s e m a n t i c s   a r e :


Question: What is Note:?

Answer: W h e n   u s i n g   r e s o u r c e V e r s i o n M a t c h = N o t O l d e r T h a n   a n d   l i m i t   i s   s e t ,   c l i e n t s   m u s t   h a n d l e   H T T P   4 1 0   G o n e   r e s p o n s e s .   F o r   e x a m p l e ,   t h e   c l i e n t   m i g h t   r e t r y   w i t h   a   n e w e r   r e s o u r c e V e r s i o n   o r   f a l l   b a c k   t o   r e s o u r c e V e r s i o n = " " .   W h e n   u s i n g   r e s o u r c e V e r s i o n M a t c h = E x a c t   a n d   l i m i t   i s   u n s e t ,   c l i e n t s   m u s t   v e r i f y   t h a t   t h e   c o l l e c t i o n ' s   . m e t a d a t a . r e s o u r c e V e r s i o n   m a t c h e s   t h e   r e q u e s t e d   r e s o u r c e V e r s i o n ,   a n d   h a n d l e   t h e   c a s e   w h e r e   i t   d o e s   n o t .   F o r   e x a m p l e ,   t h e   c l i e n t   m i g h t   f a l l   b a c k   t o   a   r e q u e s t   w i t h   l i m i t   s e t .


Question: What is Semantics for watch?

Answer: F o r   w a t c h ,   t h e   s e m a n t i c s   o f   r e s o u r c e   v e r s i o n   a r e :   w a t c h :   T h e   m e a n i n g   o f   t h o s e   w a t c h   s e m a n t i c s   a r e :


Question: What is "410 Gone" responses?

Answer: S e r v e r s   a r e   n o t   r e q u i r e d   t o   s e r v e   a l l   o l d e r   r e s o u r c e   v e r s i o n s   a n d   m a y   r e t u r n   a   H T T P   4 1 0   ( G o n e )   s t a t u s   c o d e   i f   a   c l i e n t   r e q u e s t s   a   r e s o u r c e V e r s i o n   o l d e r   t h a n   t h e   s e r v e r   h a s   r e t a i n e d .   C l i e n t s   m u s t   b e   a b l e   t o   t o l e r a t e   4 1 0   ( G o n e )   r e s p o n s e s .   S e e   E f f i c i e n t   d e t e c t i o n   o f   c h a n g e s   f o r   d e t a i l s   o n   h o w   t o   h a n d l e   4 1 0   ( G o n e )   r e s p o n s e s   w h e n   w a t c h i n g   r e s o u r c e s .   I f   y o u   r e q u e s t   a   r e s o u r c e V e r s i o n   o u t s i d e   t h e   a p p l i c a b l e   l i m i t   t h e n ,   d e p e n d i n g   o n   w h e t h e r   a   r e q u e s t   i s   s e r v e d   f r o m   c a c h e   o r   n o t ,   t h e   A P I   s e r v e r   m a y   r e p l y   w i t h   a   4 1 0   G o n e   H T T P   r e s p o n s e .


Question: What is Unavailable resource versions?

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


Question: What is Secret?

Answer: SecretSecret holds secret data of a certain type.apiVersion: v1import "k8s.io/api/core/v1"SecretSecret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.apiVersion: v1kind: Secretmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatadata (map[string][]byte)Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4immutable (boolean)Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.stringData (map[string]string)stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.type (string)Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-typesSecretListSecretList is a list of Secret.apiVersion: v1kind: SecretListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]Secret), requiredItems is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secretOperationsget read the specified SecretHTTP RequestGET /api/v1/namespaces/{namespace}/secrets/{name}Parametersname (in path): string, requiredname of the Secretnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (Secret): OK401: Unauthorizedlist list or watch objects of kind SecretHTTP RequestGET /api/v1/namespaces/{namespace}/secretsParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (SecretList): OK401: Unauthorizedlist list or watch objects of kind SecretHTTP RequestGET /api/v1/secretsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerli


Question: How does Secret work?

Answer: SecretSecret holds secret data of a certain type.apiVersion: v1import "k8s.io/api/core/v1"SecretSecret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.apiVersion: v1kind: Secretmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatadata (map[string][]byte)Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4immutable (boolean)Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.stringData (map[string]string)stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.type (string)Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-typesSecretListSecretList is a list of Secret.apiVersion: v1kind: SecretListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]Secret), requiredItems is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secretOperationsget read the specified SecretHTTP RequestGET /api/v1/namespaces/{namespace}/secrets/{name}Parametersname (in path): string, requiredname of the Secretnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (Secret): OK401: Unauthorizedlist list or watch objects of kind SecretHTTP RequestGET /api/v1/namespaces/{namespace}/secretsParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (SecretList): OK401: Unauthorizedlist list or watch objects of kind SecretHTTP RequestGET /api/v1/secretsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerli


Question: When would you use Secret?

Answer: SecretSecret holds secret data of a certain type.apiVersion: v1import "k8s.io/api/core/v1"SecretSecret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.apiVersion: v1kind: Secretmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatadata (map[string][]byte)Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4immutable (boolean)Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.stringData (map[string]string)stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.type (string)Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-typesSecretListSecretList is a list of Secret.apiVersion: v1kind: SecretListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]Secret), requiredItems is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secretOperationsget read the specified SecretHTTP RequestGET /api/v1/namespaces/{namespace}/secrets/{name}Parametersname (in path): string, requiredname of the Secretnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (Secret): OK401: Unauthorizedlist list or watch objects of kind SecretHTTP RequestGET /api/v1/namespaces/{namespace}/secretsParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (SecretList): OK401: Unauthorizedlist list or watch objects of kind SecretHTTP RequestGET /api/v1/secretsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerli


Question: What are the benefits of Secret?

Answer: SecretSecret holds secret data of a certain type.apiVersion: v1import "k8s.io/api/core/v1"SecretSecret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.apiVersion: v1kind: Secretmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatadata (map[string][]byte)Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4immutable (boolean)Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.stringData (map[string]string)stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.type (string)Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-typesSecretListSecretList is a list of Secret.apiVersion: v1kind: SecretListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]Secret), requiredItems is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secretOperationsget read the specified SecretHTTP RequestGET /api/v1/namespaces/{namespace}/secrets/{name}Parametersname (in path): string, requiredname of the Secretnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (Secret): OK401: Unauthorizedlist list or watch objects of kind SecretHTTP RequestGET /api/v1/namespaces/{namespace}/secretsParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (SecretList): OK401: Unauthorizedlist list or watch objects of kind SecretHTTP RequestGET /api/v1/secretsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerli


Question: What is Secret?

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


Question: What is Secret?

Answer: S e c r e t   h o l d s   s e c r e t   d a t a   o f   a   c e r t a i n   t y p e .   T h e   t o t a l   b y t e s   o f   t h e   v a l u e s   i n   t h e   D a t a   f i e l d   m u s t   b e   l e s s   t h a n   M a x S e c r e t S i z e   b y t e s .   a p i V e r s i o n :   v 1 k i n d :   S e c r e t m e t a d a t a   ( O b j e c t M e t a ) S t a n d a r d   o b j e c t ' s   m e t a d a t a .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # m e t a d a t a d a t a   ( m a p [ s t r i n g ] [ ] b y t e ) D a t a   c o n t a i n s   t h e   s e c r e t   d a t a .   E a c h   k e y   m u s t   c o n s i s t   o f   a l p h a n u m e r i c   c h a r a c t e r s ,   ' - ' ,   ' _ '   o r   ' . ' .   T h e   s e r i a l i z e d   f o r m   o f   t h e   s e c r e t   d a t a   i s   a   b a s e 6 4   e n c o d e d   s t r i n g ,   r e p r e s e n t i n g   t h e   a r b i t r a r y   ( p o s s i b l y   n o n - s t r i n g )   d a t a   v a l u e   h e r e .   D e s c r i b e d   i n   h t t p s : / / t o o l s . i e t f . o r g / h t m l / r f c 4 6 4 8 # s e c t i o n - 4 i m m u t a b l e   ( b o o l e a n ) I m m u t a b l e ,   i f   s e t   t o   t r u e ,   e n s u r e s   t h a t   d a t a   s t o r e d   i n   t h e   S e c r e t   c a n n o t   b e   u p d a t e d   ( o n l y   o b j e c t   m e t a d a t a   c a n   b e   m o d i f i e d ) .   I f   n o t   s e t   t o   t r u e ,   t h e   f i e l d   c a n   b e   m o d i f i e d   a t   a n y   t i m e .   D e f a u l t e d   t o   n i l . s t r i n g D a t a   ( m a p [ s t r i n g ] s t r i n g ) s t r i n g D a t a   a l l o w s   s p e c i f y i n g   n o n - b i n a r y   s e c r e t   d a t a   i n   s t r i n g   f o r m .   I t   i s   p r o v i d e d   a s   a   w r i t e - o n l y   i n p u t   f i e l d   f o r   c o n v e n i e n c e .   A


Question: What is SecretList?

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


Question: What is HTTP Request?

Answer: G E T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / s e c r e t 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   S e c r e t 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   S e c r e t   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   ( S e c r e t ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: G E T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / s e c r e t 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   ( S e c r e t L i s t ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: G E T   / a p i / v 1 / s e c r e t 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   ( S e c r e t L i s t ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P O S T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / s e c r e t 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 :   S e c r e t ,   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 :   S e c r e t ,   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   ( S e c r e t ) :   O K   2 0 1   ( S e c r e t ) :   C r e a t e d   2 0 2   ( S e c r e t ) :   A c c e p t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P U T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / s e c r e t 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   S e c r e t 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 :   S e c r e t ,   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   S e c r e t   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 :   S e c r e t ,   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   ( S e c r e t ) :   O K   2 0 1   ( S e c r e t ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P A T C H   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / s e c r e t 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   S e c r e t 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   S e c r e t   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   ( S e c r e t ) :   O K   2 0 1   ( S e c r e t ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: D E L E T E   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / s e c r e t 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   S e c r e t 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   S e c r e t   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   D e l e t e O p t i o n s   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   g r a c e P e r i o d S e c o n d s   ( i n   q u e r y ) :   i n t e g e r   g r a c e P e r i o d S e c o n d s   i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   ( i n   q u e r y ) :   b o o l e a n   i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y   p r o p a g a t i o n P o l i c y   ( i n   q u e r y ) :   s t r i n g   p r o p a g a t i o n P o l i c y


Question: What is Response?

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


Question: What is HTTP Request?

Answer: D E L E T E   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / s e c r e t 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 Managing Kubernetes Objects Using Imperative Commands?

Answer: Managing Kubernetes Objects Using Imperative CommandsKubernetes objects can quickly be created, updated, and deleted directly using imperative commands built into the kubectl command-line tool. This document explains how those commands are organized and how to use them to manage live objects.Before you beginInstall kubectl.You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds:iximiuz LabsKillercodaKodeKloudPlay with KubernetesTo check the version, enter kubectl version.Trade-offsThe kubectl tool supports three kinds of object management:Imperative commandsImperative object configurationDeclarative object configurationSee Kubernetes Object Management for a discussion of the advantages and disadvantage of each kind of object management.How to create objectsThe kubectl tool supports verb-driven commands for creating some of the most common object types. The commands are named to be recognizable to users unfamiliar with the Kubernetes object types.run: Create a new Pod to run a Container.expose: Create a new Service object to load balance traffic across Pods.autoscale: Create a new Autoscaler object to automatically horizontally scale a controller, such as a Deployment.The kubectl tool also supports creation commands driven by object type. These commands support more object types and are more explicit about their intent, but require users to know the type of objects they intend to create.create <objecttype> [<subtype>] <instancename>Some objects types have subtypes that you can specify in the create command. For example, the Service object has several subtypes including ClusterIP, LoadBalancer, and NodePort. Here's an example that creates a Service with subtype NodePort:kubectl create service nodeport <myservicename> In the preceding example, the create service nodeport command is called a subcommand of the create service command.You can use the -h flag to find the arguments and flags supported by a subcommand:kubectl create service nodeport -h How to update objectsThe kubectl command supports verb-driven commands for some common update operations. These commands are named to enable users unfamiliar with Kubernetes objects to perform updates without knowing the specific fields that must be set:scale: Horizontally scale a controller to add or remove Pods by updating the replica count of the controller.annotate: Add or remove an annotation from an object.label: Add or remove a label from an object.The kubectl command also supports update commands driven by an aspect of the object. Setting this aspect may set different fields for different object types:set <field>: Set an aspect of an object.Note:In Kubernetes version 1.5, not every verb-dri


Question: How does Managing Kubernetes Objects Using Imperative Commands work?

Answer: Managing Kubernetes Objects Using Imperative CommandsKubernetes objects can quickly be created, updated, and deleted directly using imperative commands built into the kubectl command-line tool. This document explains how those commands are organized and how to use them to manage live objects.Before you beginInstall kubectl.You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds:iximiuz LabsKillercodaKodeKloudPlay with KubernetesTo check the version, enter kubectl version.Trade-offsThe kubectl tool supports three kinds of object management:Imperative commandsImperative object configurationDeclarative object configurationSee Kubernetes Object Management for a discussion of the advantages and disadvantage of each kind of object management.How to create objectsThe kubectl tool supports verb-driven commands for creating some of the most common object types. The commands are named to be recognizable to users unfamiliar with the Kubernetes object types.run: Create a new Pod to run a Container.expose: Create a new Service object to load balance traffic across Pods.autoscale: Create a new Autoscaler object to automatically horizontally scale a controller, such as a Deployment.The kubectl tool also supports creation commands driven by object type. These commands support more object types and are more explicit about their intent, but require users to know the type of objects they intend to create.create <objecttype> [<subtype>] <instancename>Some objects types have subtypes that you can specify in the create command. For example, the Service object has several subtypes including ClusterIP, LoadBalancer, and NodePort. Here's an example that creates a Service with subtype NodePort:kubectl create service nodeport <myservicename> In the preceding example, the create service nodeport command is called a subcommand of the create service command.You can use the -h flag to find the arguments and flags supported by a subcommand:kubectl create service nodeport -h How to update objectsThe kubectl command supports verb-driven commands for some common update operations. These commands are named to enable users unfamiliar with Kubernetes objects to perform updates without knowing the specific fields that must be set:scale: Horizontally scale a controller to add or remove Pods by updating the replica count of the controller.annotate: Add or remove an annotation from an object.label: Add or remove a label from an object.The kubectl command also supports update commands driven by an aspect of the object. Setting this aspect may set different fields for different object types:set <field>: Set an aspect of an object.Note:In Kubernetes version 1.5, not every verb-dri


Question: When would you use Managing Kubernetes Objects Using Imperative Commands?

Answer: Managing Kubernetes Objects Using Imperative CommandsKubernetes objects can quickly be created, updated, and deleted directly using imperative commands built into the kubectl command-line tool. This document explains how those commands are organized and how to use them to manage live objects.Before you beginInstall kubectl.You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds:iximiuz LabsKillercodaKodeKloudPlay with KubernetesTo check the version, enter kubectl version.Trade-offsThe kubectl tool supports three kinds of object management:Imperative commandsImperative object configurationDeclarative object configurationSee Kubernetes Object Management for a discussion of the advantages and disadvantage of each kind of object management.How to create objectsThe kubectl tool supports verb-driven commands for creating some of the most common object types. The commands are named to be recognizable to users unfamiliar with the Kubernetes object types.run: Create a new Pod to run a Container.expose: Create a new Service object to load balance traffic across Pods.autoscale: Create a new Autoscaler object to automatically horizontally scale a controller, such as a Deployment.The kubectl tool also supports creation commands driven by object type. These commands support more object types and are more explicit about their intent, but require users to know the type of objects they intend to create.create <objecttype> [<subtype>] <instancename>Some objects types have subtypes that you can specify in the create command. For example, the Service object has several subtypes including ClusterIP, LoadBalancer, and NodePort. Here's an example that creates a Service with subtype NodePort:kubectl create service nodeport <myservicename> In the preceding example, the create service nodeport command is called a subcommand of the create service command.You can use the -h flag to find the arguments and flags supported by a subcommand:kubectl create service nodeport -h How to update objectsThe kubectl command supports verb-driven commands for some common update operations. These commands are named to enable users unfamiliar with Kubernetes objects to perform updates without knowing the specific fields that must be set:scale: Horizontally scale a controller to add or remove Pods by updating the replica count of the controller.annotate: Add or remove an annotation from an object.label: Add or remove a label from an object.The kubectl command also supports update commands driven by an aspect of the object. Setting this aspect may set different fields for different object types:set <field>: Set an aspect of an object.Note:In Kubernetes version 1.5, not every verb-dri


Question: What are the benefits of Managing Kubernetes Objects Using Imperative Commands?

Answer: Managing Kubernetes Objects Using Imperative CommandsKubernetes objects can quickly be created, updated, and deleted directly using imperative commands built into the kubectl command-line tool. This document explains how those commands are organized and how to use them to manage live objects.Before you beginInstall kubectl.You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds:iximiuz LabsKillercodaKodeKloudPlay with KubernetesTo check the version, enter kubectl version.Trade-offsThe kubectl tool supports three kinds of object management:Imperative commandsImperative object configurationDeclarative object configurationSee Kubernetes Object Management for a discussion of the advantages and disadvantage of each kind of object management.How to create objectsThe kubectl tool supports verb-driven commands for creating some of the most common object types. The commands are named to be recognizable to users unfamiliar with the Kubernetes object types.run: Create a new Pod to run a Container.expose: Create a new Service object to load balance traffic across Pods.autoscale: Create a new Autoscaler object to automatically horizontally scale a controller, such as a Deployment.The kubectl tool also supports creation commands driven by object type. These commands support more object types and are more explicit about their intent, but require users to know the type of objects they intend to create.create <objecttype> [<subtype>] <instancename>Some objects types have subtypes that you can specify in the create command. For example, the Service object has several subtypes including ClusterIP, LoadBalancer, and NodePort. Here's an example that creates a Service with subtype NodePort:kubectl create service nodeport <myservicename> In the preceding example, the create service nodeport command is called a subcommand of the create service command.You can use the -h flag to find the arguments and flags supported by a subcommand:kubectl create service nodeport -h How to update objectsThe kubectl command supports verb-driven commands for some common update operations. These commands are named to enable users unfamiliar with Kubernetes objects to perform updates without knowing the specific fields that must be set:scale: Horizontally scale a controller to add or remove Pods by updating the replica count of the controller.annotate: Add or remove an annotation from an object.label: Add or remove a label from an object.The kubectl command also supports update commands driven by an aspect of the object. Setting this aspect may set different fields for different object types:set <field>: Set an aspect of an object.Note:In Kubernetes version 1.5, not every verb-dri


Question: What is Managing Kubernetes Objects Using Imperative Commands?

Answer: K u b e r n e t e s   o b j e c t s   c a n   q u i c k l y   b e   c r e a t e d ,   u p d a t e d ,   a n d   d e l e t e d   d i r e c t l y   u s i n g   i m p e r a t i v e   c o m m a n d s   b u i l t   i n t o   t h e   k u b e c t l   c o m m a n d - l i n e   t o o l .   T h i s   d o c u m e n t   e x p l a i n s   h o w   t h o s e   c o m m a n d s   a r e   o r g a n i z e d   a n d   h o w   t o   u s e   t h e m   t o   m a n a g e   l i v e   o b j e c t s .


Question: What is Before you begin?

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


Question: What is Trade-offs?

Answer: T h e   k u b e c t l   t o o l   s u p p o r t s   t h r e e   k i n d s   o f   o b j e c t   m a n a g e m e n t :   I m p e r a t i v e   c o m m a n d s I m p e r a t i v e   o b j e c t   c o n f i g u r a t i o n D e c l a r a t i v e   o b j e c t   c o n f i g u r a t i o n   S e e   K u b e r n e t e s   O b j e c t   M a n a g e m e n t   f o r   a   d i s c u s s i o n   o f   t h e   a d v a n t a g e s   a n d   d i s a d v a n t a g e   o f   e a c h   k i n d   o f   o b j e c t   m a n a g e m e n t .


Question: What is How to create objects?

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


Question: What is How to update objects?

Answer: T h e   k u b e c t l   c o m m a n d   s u p p o r t s   v e r b - d r i v e n   c o m m a n d s   f o r   s o m e   c o m m o n   u p d a t e   o p e r a t i o n s .   T h e s e   c o m m a n d s   a r e   n a m e d   t o   e n a b l e   u s e r s   u n f a m i l i a r   w i t h   K u b e r n e t e s   o b j e c t s   t o   p e r f o r m   u p d a t e s   w i t h o u t   k n o w i n g   t h e   s p e c i f i c   f i e l d s   t h a t   m u s t   b e   s e t :   s c a l e :   H o r i z o n t a l l y   s c a l e   a   c o n t r o l l e r   t o   a d d   o r   r e m o v e   P o d s   b y   u p d a t i n g   t h e   r e p l i c a   c o u n t   o f   t h e   c o n t r o l l e r . a n n o t a t e :   A d d   o r   r e m o v e   a n   a n n o t a t i o n   f r o m   a n   o b j e c t . l a b e l :   A d d   o r   r e m o v e   a   l a b e l   f r o m   a n   o b j e c t .   T h e   k u b e c t l   c o m m a n d   a l s o   s u p p o r t s   u p d a t e   c o m m a n d s   d r i v e n   b y   a n   a s p e c t   o f   t h e   o b j e c t .   S e t t i n g   t h i s   a s p e c t   m a y   s e t   d i f f e r e n t   f i e l d s   f o r   d i f f e r e n t   o b j e c t   t y p e s :   s e t   < f i e l d > :   S e t   a n   a s p e c t   o f   a n   o b j e c t .


Question: What is Note:?

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


Question: What is How to delete objects?

Answer: Y o u   c a n   u s e   t h e   d e l e t e   c o m m a n d   t o   d e l e t e   a n   o b j e c t   f r o m   a   c l u s t e r :   d e l e t e   < t y p e > / < n a m e >


Question: What is Note:?

Answer: k u b e c t l   d e l e t e   d e p l o y m e n t / n g i n x


Question: What is How to view an object?

Answer: T h e r e   a r e   s e v e r a l   c o m m a n d s   f o r   p r i n t i n g   i n f o r m a t i o n   a b o u t   a n   o b j e c t :   g e t :   P r i n t s   b a s i c   i n f o r m a t i o n   a b o u t   m a t c h i n g   o b j e c t s .   U s e   g e t   - h   t o   s e e   a   l i s t   o f   o p t i o n s . d e s c r i b e :   P r i n t s   a g g r e g a t e d   d e t a i l e d   i n f o r m a t i o n   a b o u t   m a t c h i n g   o b j e c t s . l o g s :   P r i n t s   t h e   s t d o u t   a n d   s t d e r r   f o r   a   c o n t a i n e r   r u n n i n g   i n   a   P o d .


Question: What is Using set commands to modify objects before creation?

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


Question: What is Using --edit to modify objects before creation?

Answer: Y o u   c a n   u s e   k u b e c t l   c r e a t e   - - e d i t   t o   m a k e   a r b i t r a r y   c h a n g e s   t o   a n   o b j e c t   b e f o r e   i t   i s   c r e a t e d .   H e r e ' s   a n   e x a m p l e :   k u b e c t l   c r e a t e   s e r v i c e   c l u s t e r i p   m y - s v c   - - c l u s t e r i p = " N o n e "   - o   y a m l   - - d r y - r u n = c l i e n t   >   / t m p / s r v . y a m l   k u b e c t l   c r e a t e   - - e d i t   - f   / t m p / s r v . y a m l   T h e   k u b e c t l   c r e a t e   s e r v i c e   c o m m a n d   c r e a t e s   t h e   c o n f i g u r a t i o n   f o r   t h e   S e r v i c e   a n d   s a v e s   i t   t o   / t m p / s r v . y a m l . T h e   k u b e c t l   c r e a t e   - - e d i t   c o m m a n d   o p e n s   t h e   c o n f i g u r a t i o n   f i l e   f o r   e d i t i n g   b e f o r e   i t   c r e a t e s   t h e   o b j e c t .


Question: What is What's next?

Answer: I m p e r a t i v e   M a n a g e m e n t   o f   K u b e r n e t e s   O b j e c t s   U s i n g   C o n f i g u r a t i o n   F i l e s D e c l a r a t i v e   M a n a g e m e n t   o f   K u b e r n e t e s   O b j e c t s   U s i n g   C o n f i g u r a t i o n   F i l e s K u b e c t l   C o m m a n d   R e f e r e n c e K u b e r n e t e s   A P I   R e f e r e n c e


Question: What is kubectl config view?

Answer: kubectl config viewSynopsisDisplay merged kubeconfig settings or a specified kubeconfig file.You can use --output jsonpath={...} to extract specific values using a jsonpath expression.kubectl config view [flags] Examples # Show merged kubeconfig settings kubectl config view # Show merged kubeconfig settings, raw certificate data, and exposed secrets kubectl config view --raw # Get the password for the e2e user kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}' Options--allow-missing-template-keys Default: trueIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.--flattenFlatten the resulting kubeconfig file into self-contained output (useful for creating portable kubeconfig files)-h, --helphelp for view--merge tristate[=true] Default: trueMerge the full hierarchy of kubeconfig files--minifyRemove all information not used by current-context from the output-o, --output string Default: "yaml"Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).--rawDisplay raw byte data and sensitive data--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--template stringTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringuse a particular kubeconfig file--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default:


Question: How does kubectl config view work?

Answer: kubectl config viewSynopsisDisplay merged kubeconfig settings or a specified kubeconfig file.You can use --output jsonpath={...} to extract specific values using a jsonpath expression.kubectl config view [flags] Examples # Show merged kubeconfig settings kubectl config view # Show merged kubeconfig settings, raw certificate data, and exposed secrets kubectl config view --raw # Get the password for the e2e user kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}' Options--allow-missing-template-keys Default: trueIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.--flattenFlatten the resulting kubeconfig file into self-contained output (useful for creating portable kubeconfig files)-h, --helphelp for view--merge tristate[=true] Default: trueMerge the full hierarchy of kubeconfig files--minifyRemove all information not used by current-context from the output-o, --output string Default: "yaml"Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).--rawDisplay raw byte data and sensitive data--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--template stringTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringuse a particular kubeconfig file--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default:


Question: When would you use kubectl config view?

Answer: kubectl config viewSynopsisDisplay merged kubeconfig settings or a specified kubeconfig file.You can use --output jsonpath={...} to extract specific values using a jsonpath expression.kubectl config view [flags] Examples # Show merged kubeconfig settings kubectl config view # Show merged kubeconfig settings, raw certificate data, and exposed secrets kubectl config view --raw # Get the password for the e2e user kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}' Options--allow-missing-template-keys Default: trueIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.--flattenFlatten the resulting kubeconfig file into self-contained output (useful for creating portable kubeconfig files)-h, --helphelp for view--merge tristate[=true] Default: trueMerge the full hierarchy of kubeconfig files--minifyRemove all information not used by current-context from the output-o, --output string Default: "yaml"Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).--rawDisplay raw byte data and sensitive data--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--template stringTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringuse a particular kubeconfig file--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default:


Question: What are the benefits of kubectl config view?

Answer: kubectl config viewSynopsisDisplay merged kubeconfig settings or a specified kubeconfig file.You can use --output jsonpath={...} to extract specific values using a jsonpath expression.kubectl config view [flags] Examples # Show merged kubeconfig settings kubectl config view # Show merged kubeconfig settings, raw certificate data, and exposed secrets kubectl config view --raw # Get the password for the e2e user kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}' Options--allow-missing-template-keys Default: trueIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.--flattenFlatten the resulting kubeconfig file into self-contained output (useful for creating portable kubeconfig files)-h, --helphelp for view--merge tristate[=true] Default: trueMerge the full hierarchy of kubeconfig files--minifyRemove all information not used by current-context from the output-o, --output string Default: "yaml"Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).--rawDisplay raw byte data and sensitive data--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--template stringTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringuse a particular kubeconfig file--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default:


Question: What is Synopsis?

Answer: D i s p l a y   m e r g e d   k u b e c o n f i g   s e t t i n g s   o r   a   s p e c i f i e d   k u b e c o n f i g   f i l e .   Y o u   c a n   u s e   - - o u t p u t   j s o n p a t h = { . . . }   t o   e x t r a c t   s p e c i f i c   v a l u e s   u s i n g   a   j s o n p a t h   e x p r e s s i o n .   k u b e c t l   c o n f i g   v i e w   [ f l a g s ]


Question: What is Examples?

Answer: #   S h o w   m e r g e d   k u b e c o n f i g   s e t t i n g s   k u b e c t l   c o n f i g   v i e w   #   S h o w   m e r g e d   k u b e c o n f i g   s e t t i n g s ,   r a w   c e r t i f i c a t e   d a t a ,   a n d   e x p o s e d   s e c r e t s   k u b e c t l   c o n f i g   v i e w   - - r a w   #   G e t   t h e   p a s s w o r d   f o r   t h e   e 2 e   u s e r   k u b e c t l   c o n f i g   v i e w   - o   j s o n p a t h = ' { . u s e r s [ ? ( @ . n a m e   = =   " e 2 e " ) ] . u s e r . p a s s w o r d } '


Question: What is Options?

Answer: I f   t r u e ,   i g n o r e   a n y   e r r o r s   i n   t e m p l a t e s   w h e n   a   f i e l d   o r   m a p   k e y   i s   m i s s i n g   i n   t h e   t e m p l a t e .   O n l y   a p p l i e s   t o   g o l a n g   a n d   j s o n p a t h   o u t p u t   f o r m a t s .   F l a t t e n   t h e   r e s u l t i n g   k u b e c o n f i g   f i l e   i n t o   s e l f - c o n t a i n e d   o u t p u t   ( u s e f u l   f o r   c r e a t i n g   p o r t a b l e   k u b e c o n f i g   f i l e s )   h e l p   f o r   v i e w   M e r g e   t h e   f u l l   h i e r a r c h y   o f   k u b e c o n f i g   f i l e s   R e m o v e   a l l   i n f o r m a t i o n   n o t   u s e d   b y   c u r r e n t - c o n t e x t   f r o m   t h e   o u t p u t   O u t p u t   f o r m a t .   O n e   o f :   ( j s o n ,   y a m l ,   n a m e ,   g o - t e m p l a t e ,   g o - t e m p l a t e - f i l e ,   t e m p l a t e ,   t e m p l a t e f i l e ,   j s o n p a t h ,   j s o n p a t h - a s - j s o n ,   j s o n p a t h - f i l e ) .   D i s p l a y   r a w   b y t e   d a t a   a n d   s e n s i t i v e   d a t a   I f   t r u e ,   k e e p   t h e   m a n a g e d F i e l d s   w h e n   p r i n t i n g   o b j e c t s   i n   J S O N   o r   Y A M L   f o r m a t .   T e m p l a t e   s t r i n g   o r   p a t h   t o   t e m p l a t e   f i l e   t o   u s e   w h e n   - o = g o - t e m p l a t e ,   - o = g o - t e m p l a t e - f i l e .   T h e   t e m p l a t e   f o r m a t   i s   g o l a n g   t e m p l a t e s   [ h t t p : / / g o l a n g . o r g / p k g / t e x t / t e m p l a t e / # p k g - o v e r v i e w ] .


Question: What is Parent Options Inherited?

Answer: U s e r n a m e   t o   i m p e r s o n a t e   f o r   t h e   o p e r a t i o n .   U s e r   c o u l d   b e   a   r e g u l a r   u s e r   o r   a   s e r v i c e   a c c o u n t   i n   a   n a m e s p a c e .   G r o u p   t o   i m p e r s o n a t e   f o r   t h e   o p e r a t i o n ,   t h i s   f l a g   c a n   b e   r e p e a t e d   t o   s p e c i f y   m u l t i p l e   g r o u p s .   U I D   t o   i m p e r s o n a t e   f o r   t h e   o p e r a t i o n .   D e f a u l t   c a c h e   d i r e c t o r y   P a t h   t o   a   c e r t   f i l e   f o r   t h e   c e r t i f i c a t e   a u t h o r i t y   P a t h   t o   a   c l i e n t   c e r t i f i c a t e   f i l e   f o r   T L S   P a t h   t o   a   c l i e n t   k e y   f i l e   f o r   T L S   T h e   n a m e   o f   t h e   k u b e c o n f i g   c l u s t e r   t o   u s e   T h e   n a m e   o f   t h e   k u b e c o n f i g   c o n t e x t   t o   u s e   I f   t r u e ,   o p t - o u t   o f   r e s p o n s e   c o m p r e s s i o n   f o r   a l l   r e q u e s t s   t o   t h e   s e r v e r   I f   t r u e ,   t h e   s e r v e r ' s   c e r t i f i c a t e   w i l l   n o t   b e   c h e c k e d   f o r   v a l i d i t y .   T h i s   w i l l   m a k e   y o u r   H T T P S   c o n n e c t i o n s   i n s e c u r e   u s e   a   p a r t i c u l a r   k u b e c o n f i g   f i l e   P a t h   t o   t h e   k u b e r c   f i l e   t o   u s e   f o r   p r e f e r e n c e s .   T h i s   c a n   b e   d i s a b l e d   b y   e x p o r t i n g   K U B E C T L _ K U B E R C = f a l s e   f e a t u r e   g a t e   o r   t u r n i n g   o f f   t h e   f e a t u r e   K U B E R C = o f f .   R e q u i r e   s e r v e r   v e r s i o n   t o   m a t c h   c l i e n t   v e r s i o n   I f   p r e s e n t ,   t h e   n a m e s p a c e   s c o p e   f o r   t h i s   C L I   r e q u e s t   P a s s w o r d   f o r   b a s i c   a u t h e n t i c a t i o n   t o   t h e   A P I   s e r v e


Question: What is See Also?

Answer: k u b e c t l   c o n f i g   -   M o d i f y   k u b e c o n f i g   f i l 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 Developing Cloud Controller Manager?

Answer: Developing Cloud Controller ManagerFEATURE STATE: Kubernetes v1.11 [beta]The cloud-controller-manager is a Kubernetes control plane component that embeds cloud-specific control logic. The cloud controller manager lets you link your cluster into your cloud provider's API, and separates out the components that interact with that cloud platform from components that only interact with your cluster.By decoupling the interoperability logic between Kubernetes and the underlying cloud infrastructure, the cloud-controller-manager component enables cloud providers to release features at a different pace compared to the main Kubernetes project.BackgroundSince cloud providers develop and release at a different pace compared to the Kubernetes project, abstracting the provider-specific code to the cloud-controller-manager binary allows cloud vendors to evolve independently from the core Kubernetes code.The Kubernetes project provides skeleton cloud-controller-manager code with Go interfaces to allow you (or your cloud provider) to plug in your own implementations. This means that a cloud provider can implement a cloud-controller-manager by importing packages from Kubernetes core; each cloudprovider will register their own code by calling cloudprovider.RegisterCloudProvider to update a global variable of available cloud providers.DevelopingOut of treeTo build an out-of-tree cloud-controller-manager for your cloud:Create a go package with an implementation that satisfies cloudprovider.Interface.Use main.go in cloud-controller-manager from Kubernetes core as a template for your main.go. As mentioned above, the only difference should be the cloud package that will be imported.Import your cloud package in main.go, ensure your package has an init block to run cloudprovider.RegisterCloudProvider.Many cloud providers publish their controller manager code as open source. If you are creating a new cloud-controller-manager from scratch, you could take an existing out-of-tree cloud controller manager as your starting point.In treeFor in-tree cloud providers, you can run the in-tree cloud controller manager as a DaemonSet in your cluster. See Cloud Controller Manager Administration for more details.


Question: How does Developing Cloud Controller Manager work?

Answer: Developing Cloud Controller ManagerFEATURE STATE: Kubernetes v1.11 [beta]The cloud-controller-manager is a Kubernetes control plane component that embeds cloud-specific control logic. The cloud controller manager lets you link your cluster into your cloud provider's API, and separates out the components that interact with that cloud platform from components that only interact with your cluster.By decoupling the interoperability logic between Kubernetes and the underlying cloud infrastructure, the cloud-controller-manager component enables cloud providers to release features at a different pace compared to the main Kubernetes project.BackgroundSince cloud providers develop and release at a different pace compared to the Kubernetes project, abstracting the provider-specific code to the cloud-controller-manager binary allows cloud vendors to evolve independently from the core Kubernetes code.The Kubernetes project provides skeleton cloud-controller-manager code with Go interfaces to allow you (or your cloud provider) to plug in your own implementations. This means that a cloud provider can implement a cloud-controller-manager by importing packages from Kubernetes core; each cloudprovider will register their own code by calling cloudprovider.RegisterCloudProvider to update a global variable of available cloud providers.DevelopingOut of treeTo build an out-of-tree cloud-controller-manager for your cloud:Create a go package with an implementation that satisfies cloudprovider.Interface.Use main.go in cloud-controller-manager from Kubernetes core as a template for your main.go. As mentioned above, the only difference should be the cloud package that will be imported.Import your cloud package in main.go, ensure your package has an init block to run cloudprovider.RegisterCloudProvider.Many cloud providers publish their controller manager code as open source. If you are creating a new cloud-controller-manager from scratch, you could take an existing out-of-tree cloud controller manager as your starting point.In treeFor in-tree cloud providers, you can run the in-tree cloud controller manager as a DaemonSet in your cluster. See Cloud Controller Manager Administration for more details.