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 StorageClass?

Answer: StorageClassStorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.apiVersion: storage.k8s.io/v1import "k8s.io/api/storage/v1"StorageClassStorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.apiVersion: storage.k8s.io/v1kind: StorageClassmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataprovisioner (string), requiredprovisioner indicates the type of the provisioner.allowVolumeExpansion (boolean)allowVolumeExpansion shows whether the storage class allow volume expand.allowedTopologies ([]TopologySelectorTerm)Atomic: will be replaced during a mergeallowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.allowedTopologies.matchLabelExpressions ([]TopologySelectorLabelRequirement)Atomic: will be replaced during a mergeA list of topology selector requirements by labels.A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.allowedTopologies.matchLabelExpressions.key (string), requiredThe label key that the selector applies to.allowedTopologies.matchLabelExpressions.values ([]string), requiredAtomic: will be replaced during a mergeAn array of string values. One value must match the label to be selected. Each entry in Values is ORed.mountOptions ([]string)Atomic: will be replaced during a mergemountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.parameters (map[string]string)parameters holds the parameters for the provisioner that should create volumes of this storage class.reclaimPolicy (string)reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.volumeBindingMode (string)volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.StorageClassListStorageClassList is a collection of storage classes.apiVersion: storage.k8s.io/v1kind: StorageClassListmetadata (ListMe


Question: How does StorageClass work?

Answer: StorageClassStorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.apiVersion: storage.k8s.io/v1import "k8s.io/api/storage/v1"StorageClassStorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.apiVersion: storage.k8s.io/v1kind: StorageClassmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataprovisioner (string), requiredprovisioner indicates the type of the provisioner.allowVolumeExpansion (boolean)allowVolumeExpansion shows whether the storage class allow volume expand.allowedTopologies ([]TopologySelectorTerm)Atomic: will be replaced during a mergeallowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.allowedTopologies.matchLabelExpressions ([]TopologySelectorLabelRequirement)Atomic: will be replaced during a mergeA list of topology selector requirements by labels.A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.allowedTopologies.matchLabelExpressions.key (string), requiredThe label key that the selector applies to.allowedTopologies.matchLabelExpressions.values ([]string), requiredAtomic: will be replaced during a mergeAn array of string values. One value must match the label to be selected. Each entry in Values is ORed.mountOptions ([]string)Atomic: will be replaced during a mergemountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.parameters (map[string]string)parameters holds the parameters for the provisioner that should create volumes of this storage class.reclaimPolicy (string)reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.volumeBindingMode (string)volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.StorageClassListStorageClassList is a collection of storage classes.apiVersion: storage.k8s.io/v1kind: StorageClassListmetadata (ListMe


Question: When would you use StorageClass?

Answer: StorageClassStorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.apiVersion: storage.k8s.io/v1import "k8s.io/api/storage/v1"StorageClassStorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.apiVersion: storage.k8s.io/v1kind: StorageClassmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataprovisioner (string), requiredprovisioner indicates the type of the provisioner.allowVolumeExpansion (boolean)allowVolumeExpansion shows whether the storage class allow volume expand.allowedTopologies ([]TopologySelectorTerm)Atomic: will be replaced during a mergeallowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.allowedTopologies.matchLabelExpressions ([]TopologySelectorLabelRequirement)Atomic: will be replaced during a mergeA list of topology selector requirements by labels.A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.allowedTopologies.matchLabelExpressions.key (string), requiredThe label key that the selector applies to.allowedTopologies.matchLabelExpressions.values ([]string), requiredAtomic: will be replaced during a mergeAn array of string values. One value must match the label to be selected. Each entry in Values is ORed.mountOptions ([]string)Atomic: will be replaced during a mergemountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.parameters (map[string]string)parameters holds the parameters for the provisioner that should create volumes of this storage class.reclaimPolicy (string)reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.volumeBindingMode (string)volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.StorageClassListStorageClassList is a collection of storage classes.apiVersion: storage.k8s.io/v1kind: StorageClassListmetadata (ListMe


Question: What are the benefits of StorageClass?

Answer: StorageClassStorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.apiVersion: storage.k8s.io/v1import "k8s.io/api/storage/v1"StorageClassStorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.apiVersion: storage.k8s.io/v1kind: StorageClassmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataprovisioner (string), requiredprovisioner indicates the type of the provisioner.allowVolumeExpansion (boolean)allowVolumeExpansion shows whether the storage class allow volume expand.allowedTopologies ([]TopologySelectorTerm)Atomic: will be replaced during a mergeallowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.allowedTopologies.matchLabelExpressions ([]TopologySelectorLabelRequirement)Atomic: will be replaced during a mergeA list of topology selector requirements by labels.A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.allowedTopologies.matchLabelExpressions.key (string), requiredThe label key that the selector applies to.allowedTopologies.matchLabelExpressions.values ([]string), requiredAtomic: will be replaced during a mergeAn array of string values. One value must match the label to be selected. Each entry in Values is ORed.mountOptions ([]string)Atomic: will be replaced during a mergemountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.parameters (map[string]string)parameters holds the parameters for the provisioner that should create volumes of this storage class.reclaimPolicy (string)reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.volumeBindingMode (string)volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.StorageClassListStorageClassList is a collection of storage classes.apiVersion: storage.k8s.io/v1kind: StorageClassListmetadata (ListMe


Question: What is StorageClass?

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


Question: What is StorageClass?

Answer: S t o r a g e C l a s s   d e s c r i b e s   t h e   p a r a m e t e r s   f o r   a   c l a s s   o f   s t o r a g e   f o r   w h i c h   P e r s i s t e n t V o l u m e s   c a n   b e   d y n a m i c a l l y   p r o v i s i o n e d .   S t o r a g e C l a s s e s   a r e   n o n - n a m e s p a c e d ;   t h e   n a m e   o f   t h e   s t o r a g e   c l a s s   a c c o r d i n g   t o   e t c d   i s   i n   O b j e c t M e t a . N a m e .   a p i V e r s i o n :   s t o r a g e . k 8 s . i o / v 1 k i n d :   S t o r a g e C l a s s 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 p r o v i s i o n e r   ( s t r i n g ) ,   r e q u i r e d p r o v i s i o n e r   i n d i c a t e s   t h e   t y p e   o f   t h e   p r o v i s i o n e r . a l l o w V o l u m e E x p a n s i o n   ( b o o l e a n ) a l l o w V o l u m e E x p a n s i o n   s h o w s   w h e t h e r   t h e   s t o r a g e   c l a s s   a l l o w   v o l u m e   e x p a n d . a l l o w e d T o p o l o g i e s   ( [ ] T o p o l o g y S e l e c t o r T e r m ) A t o m i c :   w i l l   b e   r e p l a c e d   d u r i n g   a   m e r g e a l l o w e d T o p o l o g i e s   r e s t r i c t   t h e   n o d e   t o p o l o g i e s   w h e r e   v o l u m e s   c a n   b e   d y n a m i c a l l y   p r o v i s i o n e d .   E a c h   v o l u m e   p l u g i n   d e f i n e s   i t s   o w n   s u p p o r t e d   t o p o l o g y   s p e c i f i c a t i o n s .   A n   e m p t y   T o p o l o g y S e l e c t o r T e r m   l i s t   m e a n s   t h e r e   i s   n o   t o p o l o g y   r e s t r i c t i o n .   T h i s   f i e l d   i s   o n l y   h o n o r e d   b y   s e r v e r s   t h a t   e n a b l e   t h e   V o l u m e S c h e d u l i n g   f


Question: What is StorageClassList?

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


Question: What is HTTP Request?

Answer: G E T   / a p i s / s t o r a g e . k 8 s . i o / v 1 / s t o r a g e c l a s s e s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   S t o r a g e C l a s s 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 t o r a g e C l a s s   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 t o r a g e C l a s s ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: G E T   / a p i s / s t o r a g e . k 8 s . i o / v 1 / s t o r a g e c l a s s e s


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

Answer: P O S T   / a p i s / s t o r a g e . k 8 s . i o / v 1 / s t o r a g e c l a s s e s


Question: What is Parameters?

Answer: b o d y :   S t o r a g e C l a s s ,   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   b o d y :   S t o r a g e C l a s s ,   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 t o r a g e C l a s s ) :   O K   2 0 1   ( S t o r a g e C l a s s ) :   C r e a t e d   2 0 2   ( S t o r a g e C l a s 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: P U T   / a p i s / s t o r a g e . k 8 s . i o / v 1 / s t o r a g e c l a s s e s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   S t o r a g e C l a s s b o d y :   S t o r a g e C l a s s ,   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 t o r a g e C l a s s   b o d y :   S t o r a g e C l a s s ,   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 t o r a g e C l a s s ) :   O K   2 0 1   ( S t o r a g e C l a s s ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P A T C H   / a p i s / s t o r a g e . k 8 s . i o / v 1 / s t o r a g e c l a s s e s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   S t o r a g e C l a s s 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 t o r a g e C l a s s   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 t o r a g e C l a s s ) :   O K   2 0 1   ( S t o r a g e C l a s s ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: D E L E T E   / a p i s / s t o r a g e . k 8 s . i o / v 1 / s t o r a g e c l a s s e s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   S t o r a g e C l a s s 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 t o r a g e C l a s s   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 o r a g e C l a s s ) :   O K   2 0 2   ( S t o r a g e C l a s s ) :   A c c e p t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: D E L E T E   / a p i s / s t o r a g e . k 8 s . i o / v 1 / s t o r a g e c l a s s e s


Question: What is Parameters?

Answer: 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   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   (


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 FlowSchema?

Answer: FlowSchemaFlowSchema defines the schema of a group of flows.apiVersion: flowcontrol.apiserver.k8s.io/v1import "k8s.io/api/flowcontrol/v1"FlowSchemaFlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".apiVersion: flowcontrol.apiserver.k8s.io/v1kind: FlowSchemametadata (ObjectMeta)metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (FlowSchemaSpec)spec is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusstatus (FlowSchemaStatus)status is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusFlowSchemaSpecFlowSchemaSpec describes how the FlowSchema's specification looks like.distinguisherMethod (FlowDistinguisherMethod)distinguisherMethod defines how to compute the flow distinguisher for requests that match this schema. nil specifies that the distinguisher is disabled and thus will always be the empty string.FlowDistinguisherMethod specifies the method of a flow distinguisher.distinguisherMethod.type (string), requiredtype is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required.matchingPrecedence (int32)matchingPrecedence is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.priorityLevelConfiguration (PriorityLevelConfigurationReference), requiredpriorityLevelConfiguration should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.priorityLevelConfiguration.name (string), requiredname is the name of the priority level configuration being referenced Required.rules ([]PolicyRulesWithSubjects)Atomic: will be replaced during a mergerules describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one


Question: How does FlowSchema work?

Answer: FlowSchemaFlowSchema defines the schema of a group of flows.apiVersion: flowcontrol.apiserver.k8s.io/v1import "k8s.io/api/flowcontrol/v1"FlowSchemaFlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".apiVersion: flowcontrol.apiserver.k8s.io/v1kind: FlowSchemametadata (ObjectMeta)metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (FlowSchemaSpec)spec is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusstatus (FlowSchemaStatus)status is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusFlowSchemaSpecFlowSchemaSpec describes how the FlowSchema's specification looks like.distinguisherMethod (FlowDistinguisherMethod)distinguisherMethod defines how to compute the flow distinguisher for requests that match this schema. nil specifies that the distinguisher is disabled and thus will always be the empty string.FlowDistinguisherMethod specifies the method of a flow distinguisher.distinguisherMethod.type (string), requiredtype is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required.matchingPrecedence (int32)matchingPrecedence is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.priorityLevelConfiguration (PriorityLevelConfigurationReference), requiredpriorityLevelConfiguration should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.priorityLevelConfiguration.name (string), requiredname is the name of the priority level configuration being referenced Required.rules ([]PolicyRulesWithSubjects)Atomic: will be replaced during a mergerules describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one


Question: When would you use FlowSchema?

Answer: FlowSchemaFlowSchema defines the schema of a group of flows.apiVersion: flowcontrol.apiserver.k8s.io/v1import "k8s.io/api/flowcontrol/v1"FlowSchemaFlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".apiVersion: flowcontrol.apiserver.k8s.io/v1kind: FlowSchemametadata (ObjectMeta)metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (FlowSchemaSpec)spec is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusstatus (FlowSchemaStatus)status is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusFlowSchemaSpecFlowSchemaSpec describes how the FlowSchema's specification looks like.distinguisherMethod (FlowDistinguisherMethod)distinguisherMethod defines how to compute the flow distinguisher for requests that match this schema. nil specifies that the distinguisher is disabled and thus will always be the empty string.FlowDistinguisherMethod specifies the method of a flow distinguisher.distinguisherMethod.type (string), requiredtype is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required.matchingPrecedence (int32)matchingPrecedence is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.priorityLevelConfiguration (PriorityLevelConfigurationReference), requiredpriorityLevelConfiguration should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.priorityLevelConfiguration.name (string), requiredname is the name of the priority level configuration being referenced Required.rules ([]PolicyRulesWithSubjects)Atomic: will be replaced during a mergerules describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one


Question: What are the benefits of FlowSchema?

Answer: FlowSchemaFlowSchema defines the schema of a group of flows.apiVersion: flowcontrol.apiserver.k8s.io/v1import "k8s.io/api/flowcontrol/v1"FlowSchemaFlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".apiVersion: flowcontrol.apiserver.k8s.io/v1kind: FlowSchemametadata (ObjectMeta)metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (FlowSchemaSpec)spec is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusstatus (FlowSchemaStatus)status is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusFlowSchemaSpecFlowSchemaSpec describes how the FlowSchema's specification looks like.distinguisherMethod (FlowDistinguisherMethod)distinguisherMethod defines how to compute the flow distinguisher for requests that match this schema. nil specifies that the distinguisher is disabled and thus will always be the empty string.FlowDistinguisherMethod specifies the method of a flow distinguisher.distinguisherMethod.type (string), requiredtype is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required.matchingPrecedence (int32)matchingPrecedence is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.priorityLevelConfiguration (PriorityLevelConfigurationReference), requiredpriorityLevelConfiguration should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.priorityLevelConfiguration.name (string), requiredname is the name of the priority level configuration being referenced Required.rules ([]PolicyRulesWithSubjects)Atomic: will be replaced during a mergerules describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one


Question: What is FlowSchema?

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


Question: What is FlowSchema?

Answer: F l o w S c h e m a   d e f i n e s   t h e   s c h e m a   o f   a   g r o u p   o f   f l o w s .   N o t e   t h a t   a   f l o w   i s   m a d e   u p   o f   a   s e t   o f   i n b o u n d   A P I   r e q u e s t s   w i t h   s i m i l a r   a t t r i b u t e s   a n d   i s   i d e n t i f i e d   b y   a   p a i r   o f   s t r i n g s :   t h e   n a m e   o f   t h e   F l o w S c h e m a   a n d   a   " f l o w   d i s t i n g u i s h e r " .   a p i V e r s i o n :   f l o w c o n t r o l . a p i s e r v e r . k 8 s . i o / v 1 k i n d :   F l o w S c h e m a m e t a d a t a   ( O b j e c t M e t a ) m e t a d a t a   i s   t h e   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 s p e c   ( F l o w S c h e m a S p e c ) s p e c   i s   t h e   s p e c i f i c a t i o n   o f   t h e   d e s i r e d   b e h a v i o r   o f   a   F l o w S c h e m 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 # s p e c - a n d - s t a t u s s t a t u s   ( F l o w S c h e m a S t a t u s ) s t a t u s   i s   t h e   c u r r e n t   s t a t u s   o f   a   F l o w S c h e m 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 # s p e c - a n d - s t a t u s   a p i V e r s i o n :   f l o w c o n t r o l . a p i s e r v e r . k 8 s . i o / v 1   k i n d :   F l o w S c h e m a   m e t a d a t a   ( O b j e c t M e t a )   m e t a d a t a   i s   t h e   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


Question: What is FlowSchemaSpec?

Answer: F l o w S c h e m a S p e c   d e s c r i b e s   h o w   t h e   F l o w S c h e m a ' s   s p e c i f i c a t i o n   l o o k s   l i k e .   d i s t i n g u i s h e r M e t h o d   ( F l o w D i s t i n g u i s h e r M e t h o d ) d i s t i n g u i s h e r M e t h o d   d e f i n e s   h o w   t o   c o m p u t e   t h e   f l o w   d i s t i n g u i s h e r   f o r   r e q u e s t s   t h a t   m a t c h   t h i s   s c h e m a .   n i l   s p e c i f i e s   t h a t   t h e   d i s t i n g u i s h e r   i s   d i s a b l e d   a n d   t h u s   w i l l   a l w a y s   b e   t h e   e m p t y   s t r i n g . F l o w D i s t i n g u i s h e r M e t h o d   s p e c i f i e s   t h e   m e t h o d   o f   a   f l o w   d i s t i n g u i s h e r . d i s t i n g u i s h e r M e t h o d . t y p e   ( s t r i n g ) ,   r e q u i r e d t y p e   i s   t h e   t y p e   o f   f l o w   d i s t i n g u i s h e r   m e t h o d   T h e   s u p p o r t e d   t y p e s   a r e   " B y U s e r "   a n d   " B y N a m e s p a c e " .   R e q u i r e d . m a t c h i n g P r e c e d e n c e   ( i n t 3 2 ) m a t c h i n g P r e c e d e n c e   i s   u s e d   t o   c h o o s e   a m o n g   t h e   F l o w S c h e m a s   t h a t   m a t c h   a   g i v e n   r e q u e s t .   T h e   c h o s e n   F l o w S c h e m a   i s   a m o n g   t h o s e   w i t h   t h e   n u m e r i c a l l y   l o w e s t   ( w h i c h   w e   t a k e   t o   b e   l o g i c a l l y   h i g h e s t )   M a t c h i n g P r e c e d e n c e .   E a c h   M a t c h i n g P r e c e d e n c e   v a l u e   m u s t   b e   r a n g e d   i n   [ 1 , 1 0 0 0 0 ] .   N o t e   t h a t   i f   t h e   p r e c e d e n c e   i s   n o t   s p e c i f i e d ,   i t   w i l l   b e   s e t   t o   1 0 0 0   a s   d e f a u l t . p r i o r i t y L e v e l C o n f i g u r a t i o n   ( P r i o r i t y L e v e l C o n f i g u r a t i o n R e f e r e n c e ) ,   r e q u i r e d p r i o r i t y L e v e l C o n f i g u


Question: What is FlowSchemaStatus?

Answer: F l o w S c h e m a S t a t u s   r e p r e s e n t s   t h e   c u r r e n t   s t a t e   o f   a   F l o w S c h e m a .   c o n d i t i o n s   ( [ ] F l o w S c h e m a C o n d i t i o n ) P a t c h   s t r a t e g y :   m e r g e   o n   k e y   t y p e M a p :   u n i q u e   v a l u e s   o n   k e y   t y p e   w i l l   b e   k e p t   d u r i n g   a   m e r g e c o n d i t i o n s   i s   a   l i s t   o f   t h e   c u r r e n t   s t a t e s   o f   F l o w S c h e m a . F l o w S c h e m a C o n d i t i o n   d e s c r i b e s   c o n d i t i o n s   f o r   a   F l o w S c h e m a . c o n d i t i o n s . l a s t T r a n s i t i o n T i m e   ( T i m e ) l a s t T r a n s i t i o n T i m e   i s   t h e   l a s t   t i m e   t h e   c o n d i t i o n   t r a n s i t i o n e d   f r o m   o n e   s t a t u s   t o   a n o t h e r . T i m e   i s   a   w r a p p e r   a r o u n d   t i m e . T i m e   w h i c h   s u p p o r t s   c o r r e c t   m a r s h a l i n g   t o   Y A M L   a n d   J S O N .   W r a p p e r s   a r e   p r o v i d e d   f o r   m a n y   o f   t h e   f a c t o r y   m e t h o d s   t h a t   t h e   t i m e   p a c k a g e   o f f e r s . c o n d i t i o n s . m e s s a g e   ( s t r i n g ) m e s s a g e   i s   a   h u m a n - r e a d a b l e   m e s s a g e   i n d i c a t i n g   d e t a i l s   a b o u t   l a s t   t r a n s i t i o n . c o n d i t i o n s . r e a s o n   ( s t r i n g ) r e a s o n   i s   a   u n i q u e ,   o n e - w o r d ,   C a m e l C a s e   r e a s o n   f o r   t h e   c o n d i t i o n ' s   l a s t   t r a n s i t i o n . c o n d i t i o n s . s t a t u s   ( s t r i n g ) s t a t u s   i s   t h e   s t a t u s   o f   t h e   c o n d i t i o n .   C a n   b e   T r u e ,   F a l s e ,   U n k n o w n .   R e q u i r e d . c o n d i t i o n s . t y p e   ( s t r i n g ) t y p e   i s   t h e   t y p e   o f   t h e   c o n d i t i o n .   R e q u i r e d .   c o n d i t i o n s   ( [ ] F l


Question: What is FlowSchemaList?

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


Question: What is HTTP Request?

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


Question: What is HTTP Request?

Answer: G E T   / a p i s / f l o w c o n t r o l . a p i s e r v e r . k 8 s . i o / v 1 / f l o w s c h e m a s / { n a m e } / s t a t u s


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   F l o w S c h e m a 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   F l o w S c h e m a   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   ( F l o w S c h e m a ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

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


Question: What is HTTP Request?

Answer: P O S T   / a p i s / f l o w c o n t r o l . a p i s e r v e r . k 8 s . i o / v 1 / f l o w s c h e m a s


Question: What is Parameters?

Answer: b o d y :   F l o w S c h e m a ,   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   b o d y :   F l o w S c h e m a ,   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   ( F l o w S c h e m a ) :   O K   2 0 1   ( F l o w S c h e m a ) :   C r e a t e d   2 0 2   ( F l o w S c h e m a ) :   A c c e p t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P U T   / a p i s / f l o w c o n t r o l . a p i s e r v e r . k 8 s . i o / v 1 / f l o w s c h e m a 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   F l o w S c h e m a b o d y :   F l o w S c h e m a ,   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   F l o w S c h e m a   b o d y :   F l o w S c h e m a ,   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   ( F l o w S c h e m a ) :   O K   2 0 1   ( F l o w S c h e m a ) :   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 U T   / a p i s / f l o w c o n t r o l . a p i s e r v e r . k 8 s . i o / v 1 / f l o w s c h e m a s / { n a m e } / s t a t u s


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   F l o w S c h e m a b o d y :   F l o w S c h e m a ,   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   F l o w S c h e m a   b o d y :   F l o w S c h e m a ,   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   ( F l o w S c h e m a ) :   O K   2 0 1   ( F l o w S c h e m a ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

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


Question: What is HTTP Request?

Answer: P A T C H   / a p i s / f l o w c o n t r o l . a p i s e r v e r . k 8 s . i o / v 1 / f l o w s c h e m a s / { n a m e } / s t a t u s


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   F l o w S c h e m a 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   F l o w S c h e m a   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   ( F l o w S c h e m a ) :   O K   2 0 1   ( F l o w S c h e m a ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

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


Question: What is Response?

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


Question: What is HTTP Request?

Answer: D E L E T E   / a p i s / f l o w c o n t r o l . a p i s e r v e r . k 8 s . i o / v 1 / f l o w s c h e m a s


Question: What is Parameters?

Answer: 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   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   (


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 Configure DNS for a Cluster?

Answer: Configure DNS for a ClusterKubernetes offers a DNS cluster addon, which most of the supported environments enable by default. In Kubernetes version 1.11 and later, CoreDNS is recommended and is installed by default with kubeadm.For more information on how to configure CoreDNS for a Kubernetes cluster, see the Customizing DNS Service. An example demonstrating how to use Kubernetes DNS with kube-dns, see the Kubernetes DNS sample plugin.


Question: How does Configure DNS for a Cluster work?

Answer: Configure DNS for a ClusterKubernetes offers a DNS cluster addon, which most of the supported environments enable by default. In Kubernetes version 1.11 and later, CoreDNS is recommended and is installed by default with kubeadm.For more information on how to configure CoreDNS for a Kubernetes cluster, see the Customizing DNS Service. An example demonstrating how to use Kubernetes DNS with kube-dns, see the Kubernetes DNS sample plugin.


Question: When would you use Configure DNS for a Cluster?

Answer: Configure DNS for a ClusterKubernetes offers a DNS cluster addon, which most of the supported environments enable by default. In Kubernetes version 1.11 and later, CoreDNS is recommended and is installed by default with kubeadm.For more information on how to configure CoreDNS for a Kubernetes cluster, see the Customizing DNS Service. An example demonstrating how to use Kubernetes DNS with kube-dns, see the Kubernetes DNS sample plugin.


Question: What are the benefits of Configure DNS for a Cluster?

Answer: Configure DNS for a ClusterKubernetes offers a DNS cluster addon, which most of the supported environments enable by default. In Kubernetes version 1.11 and later, CoreDNS is recommended and is installed by default with kubeadm.For more information on how to configure CoreDNS for a Kubernetes cluster, see the Customizing DNS Service. An example demonstrating how to use Kubernetes DNS with kube-dns, see the Kubernetes DNS sample plugin.


Question: What is Configure DNS for a Cluster?

Answer: K u b e r n e t e s   o f f e r s   a   D N S   c l u s t e r   a d d o n ,   w h i c h   m o s t   o f   t h e   s u p p o r t e d   e n v i r o n m e n t s   e n a b l e   b y   d e f a u l t .   I n   K u b e r n e t e s   v e r s i o n   1 . 1 1   a n d   l a t e r ,   C o r e D N S   i s   r e c o m m e n d e d   a n d   i s   i n s t a l l e d   b y   d e f a u l t   w i t h   k u b e a d m .   F o r   m o r e   i n f o r m a t i o n   o n   h o w   t o   c o n f i g u r e   C o r e D N S   f o r   a   K u b e r n e t e s   c l u s t e r ,   s e e   t h e   C u s t o m i z i n g   D N S   S e r v i c e .   A n   e x a m p l e   d e m o n s t r a t i n g   h o w   t o   u s e   K u b e r n e t e s   D N S   w i t h   k u b e - d n s ,   s e e   t h e   K u b e r n e t e s   D N S   s a m p l e   p l u g i n .


Question: What is DaemonSet?

Answer: DaemonSetA DaemonSet defines Pods that provide node-local facilities. These might be fundamental to the operation of your cluster, such as a networking helper tool, or be part of an add-on.A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.Some typical uses of a DaemonSet are:running a cluster storage daemon on every noderunning a logs collection daemon on every noderunning a node monitoring daemon on every nodeIn a simple case, one DaemonSet, covering all nodes, would be used for each type of daemon. A more complex setup might use multiple DaemonSets for a single type of daemon, but with different flags and/or different memory and cpu requests for different hardware types.Writing a DaemonSet SpecCreate a DaemonSetYou can describe a DaemonSet in a YAML file. For example, the daemonset.yaml file below describes a DaemonSet that runs the fluentd-elasticsearch Docker image:controllers/daemonset.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: fluentd-elasticsearch namespace: kube-system labels: k8s-app: fluentd-logging spec: selector: matchLabels: name: fluentd-elasticsearch template: metadata: labels: name: fluentd-elasticsearch spec: tolerations: # these tolerations are to have the daemonset runnable on control plane nodes # remove them if your control plane nodes should not run pods - key: node-role.kubernetes.io/control-plane operator: Exists effect: NoSchedule - key: node-role.kubernetes.io/master operator: Exists effect: NoSchedule containers: - name: fluentd-elasticsearch image: quay.io/fluentd_elasticsearch/fluentd:v5.0.1 resources: limits: memory: 200Mi requests: cpu: 100m memory: 200Mi volumeMounts: - name: varlog mountPath: /var/log # it may be desirable to set a high priority class to ensure that a DaemonSet Pod # preempts running Pods # priorityClassName: important terminationGracePeriodSeconds: 30 volumes: - name: varlog hostPath: path: /var/log Create a DaemonSet based on the YAML file:kubectl apply -f https://k8s.io/examples/controllers/daemonset.yaml Required FieldsAs with all other Kubernetes config, a DaemonSet needs apiVersion, kind, and metadata fields. For general information about working with config files, see running stateless applications and object management using kubectl.The name of a DaemonSet object must be a valid DNS subdomain name.A DaemonSet also needs a .spec section.Pod TemplateThe .spec.template is one of the required fields in .spec.The .spec.template is a pod template. It has exactly the same schema as a Pod, except it is nested and does not have an apiVersion or kind.In addition to required fields for a Pod, a Pod template in a DaemonSet has to specify appropriate labels (see pod selector).A Pod Template in a DaemonSet must have a RestartPolicy equal to Always, or be unspecified, which defaults to Alway


Question: How does DaemonSet work?

Answer: DaemonSetA DaemonSet defines Pods that provide node-local facilities. These might be fundamental to the operation of your cluster, such as a networking helper tool, or be part of an add-on.A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.Some typical uses of a DaemonSet are:running a cluster storage daemon on every noderunning a logs collection daemon on every noderunning a node monitoring daemon on every nodeIn a simple case, one DaemonSet, covering all nodes, would be used for each type of daemon. A more complex setup might use multiple DaemonSets for a single type of daemon, but with different flags and/or different memory and cpu requests for different hardware types.Writing a DaemonSet SpecCreate a DaemonSetYou can describe a DaemonSet in a YAML file. For example, the daemonset.yaml file below describes a DaemonSet that runs the fluentd-elasticsearch Docker image:controllers/daemonset.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: fluentd-elasticsearch namespace: kube-system labels: k8s-app: fluentd-logging spec: selector: matchLabels: name: fluentd-elasticsearch template: metadata: labels: name: fluentd-elasticsearch spec: tolerations: # these tolerations are to have the daemonset runnable on control plane nodes # remove them if your control plane nodes should not run pods - key: node-role.kubernetes.io/control-plane operator: Exists effect: NoSchedule - key: node-role.kubernetes.io/master operator: Exists effect: NoSchedule containers: - name: fluentd-elasticsearch image: quay.io/fluentd_elasticsearch/fluentd:v5.0.1 resources: limits: memory: 200Mi requests: cpu: 100m memory: 200Mi volumeMounts: - name: varlog mountPath: /var/log # it may be desirable to set a high priority class to ensure that a DaemonSet Pod # preempts running Pods # priorityClassName: important terminationGracePeriodSeconds: 30 volumes: - name: varlog hostPath: path: /var/log Create a DaemonSet based on the YAML file:kubectl apply -f https://k8s.io/examples/controllers/daemonset.yaml Required FieldsAs with all other Kubernetes config, a DaemonSet needs apiVersion, kind, and metadata fields. For general information about working with config files, see running stateless applications and object management using kubectl.The name of a DaemonSet object must be a valid DNS subdomain name.A DaemonSet also needs a .spec section.Pod TemplateThe .spec.template is one of the required fields in .spec.The .spec.template is a pod template. It has exactly the same schema as a Pod, except it is nested and does not have an apiVersion or kind.In addition to required fields for a Pod, a Pod template in a DaemonSet has to specify appropriate labels (see pod selector).A Pod Template in a DaemonSet must have a RestartPolicy equal to Always, or be unspecified, which defaults to Alway


Question: When would you use DaemonSet?

Answer: DaemonSetA DaemonSet defines Pods that provide node-local facilities. These might be fundamental to the operation of your cluster, such as a networking helper tool, or be part of an add-on.A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.Some typical uses of a DaemonSet are:running a cluster storage daemon on every noderunning a logs collection daemon on every noderunning a node monitoring daemon on every nodeIn a simple case, one DaemonSet, covering all nodes, would be used for each type of daemon. A more complex setup might use multiple DaemonSets for a single type of daemon, but with different flags and/or different memory and cpu requests for different hardware types.Writing a DaemonSet SpecCreate a DaemonSetYou can describe a DaemonSet in a YAML file. For example, the daemonset.yaml file below describes a DaemonSet that runs the fluentd-elasticsearch Docker image:controllers/daemonset.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: fluentd-elasticsearch namespace: kube-system labels: k8s-app: fluentd-logging spec: selector: matchLabels: name: fluentd-elasticsearch template: metadata: labels: name: fluentd-elasticsearch spec: tolerations: # these tolerations are to have the daemonset runnable on control plane nodes # remove them if your control plane nodes should not run pods - key: node-role.kubernetes.io/control-plane operator: Exists effect: NoSchedule - key: node-role.kubernetes.io/master operator: Exists effect: NoSchedule containers: - name: fluentd-elasticsearch image: quay.io/fluentd_elasticsearch/fluentd:v5.0.1 resources: limits: memory: 200Mi requests: cpu: 100m memory: 200Mi volumeMounts: - name: varlog mountPath: /var/log # it may be desirable to set a high priority class to ensure that a DaemonSet Pod # preempts running Pods # priorityClassName: important terminationGracePeriodSeconds: 30 volumes: - name: varlog hostPath: path: /var/log Create a DaemonSet based on the YAML file:kubectl apply -f https://k8s.io/examples/controllers/daemonset.yaml Required FieldsAs with all other Kubernetes config, a DaemonSet needs apiVersion, kind, and metadata fields. For general information about working with config files, see running stateless applications and object management using kubectl.The name of a DaemonSet object must be a valid DNS subdomain name.A DaemonSet also needs a .spec section.Pod TemplateThe .spec.template is one of the required fields in .spec.The .spec.template is a pod template. It has exactly the same schema as a Pod, except it is nested and does not have an apiVersion or kind.In addition to required fields for a Pod, a Pod template in a DaemonSet has to specify appropriate labels (see pod selector).A Pod Template in a DaemonSet must have a RestartPolicy equal to Always, or be unspecified, which defaults to Alway


Question: What are the benefits of DaemonSet?

Answer: DaemonSetA DaemonSet defines Pods that provide node-local facilities. These might be fundamental to the operation of your cluster, such as a networking helper tool, or be part of an add-on.A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.Some typical uses of a DaemonSet are:running a cluster storage daemon on every noderunning a logs collection daemon on every noderunning a node monitoring daemon on every nodeIn a simple case, one DaemonSet, covering all nodes, would be used for each type of daemon. A more complex setup might use multiple DaemonSets for a single type of daemon, but with different flags and/or different memory and cpu requests for different hardware types.Writing a DaemonSet SpecCreate a DaemonSetYou can describe a DaemonSet in a YAML file. For example, the daemonset.yaml file below describes a DaemonSet that runs the fluentd-elasticsearch Docker image:controllers/daemonset.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: fluentd-elasticsearch namespace: kube-system labels: k8s-app: fluentd-logging spec: selector: matchLabels: name: fluentd-elasticsearch template: metadata: labels: name: fluentd-elasticsearch spec: tolerations: # these tolerations are to have the daemonset runnable on control plane nodes # remove them if your control plane nodes should not run pods - key: node-role.kubernetes.io/control-plane operator: Exists effect: NoSchedule - key: node-role.kubernetes.io/master operator: Exists effect: NoSchedule containers: - name: fluentd-elasticsearch image: quay.io/fluentd_elasticsearch/fluentd:v5.0.1 resources: limits: memory: 200Mi requests: cpu: 100m memory: 200Mi volumeMounts: - name: varlog mountPath: /var/log # it may be desirable to set a high priority class to ensure that a DaemonSet Pod # preempts running Pods # priorityClassName: important terminationGracePeriodSeconds: 30 volumes: - name: varlog hostPath: path: /var/log Create a DaemonSet based on the YAML file:kubectl apply -f https://k8s.io/examples/controllers/daemonset.yaml Required FieldsAs with all other Kubernetes config, a DaemonSet needs apiVersion, kind, and metadata fields. For general information about working with config files, see running stateless applications and object management using kubectl.The name of a DaemonSet object must be a valid DNS subdomain name.A DaemonSet also needs a .spec section.Pod TemplateThe .spec.template is one of the required fields in .spec.The .spec.template is a pod template. It has exactly the same schema as a Pod, except it is nested and does not have an apiVersion or kind.In addition to required fields for a Pod, a Pod template in a DaemonSet has to specify appropriate labels (see pod selector).A Pod Template in a DaemonSet must have a RestartPolicy equal to Always, or be unspecified, which defaults to Alway


Question: What is DaemonSet?

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


Question: What is Create a DaemonSet?

Answer: Y o u   c a n   d e s c r i b e   a   D a e m o n S e t   i n   a   Y A M L   f i l e .   F o r   e x a m p l e ,   t h e   d a e m o n s e t . y a m l   f i l e   b e l o w   d e s c r i b e s   a   D a e m o n S e t   t h a t   r u n s   t h e   f l u e n t d - e l a s t i c s e a r c h   D o c k e r   i m a g e :   a p i V e r s i o n :   a p p s / v 1   k i n d :   D a e m o n S e t   m e t a d a t a :   n a m e :   f l u e n t d - e l a s t i c s e a r c h   n a m e s p a c e :   k u b e - s y s t e m   l a b e l s :   k 8 s - a p p :   f l u e n t d - l o g g i n g   s p e c :   s e l e c t o r :   m a t c h L a b e l s :   n a m e :   f l u e n t d - e l a s t i c s e a r c h   t e m p l a t e :   m e t a d a t a :   l a b e l s :   n a m e :   f l u e n t d - e l a s t i c s e a r c h   s p e c :   t o l e r a t i o n s :   #   t h e s e   t o l e r a t i o n s   a r e   t o   h a v e   t h e   d a e m o n s e t   r u n n a b l e   o n   c o n t r o l   p l a n e   n o d e s   #   r e m o v e   t h e m   i f   y o u r   c o n t r o l   p l a n e   n o d e s   s h o u l d   n o t   r u n   p o d s   -   k e y :   n o d e - r o l e . k u b e r n e t e s . i o / c o n t r o l - p l a n e   o p e r a t o r :   E x i s t s   e f f e c t :   N o S c h e d u l e   -   k e y :   n o d e - r o l e . k u b e r n e t e s . i o / m a s t e r   o p e r a t o r :   E x i s t s   e f f e c t :   N o S c h e d u l e   c o n t a i n e r s :   -   n a m e :   f l u e n t d - e l a s t i c s e a r c h   i m a g e :   q u a y . i o / f l u e n t d _ e l a s t i c s e a r c h / f l u e n t d : v 5 . 0 . 1   r e s o u r c e s :   l i m i t s :   m e m o r y :   2 0 0 M i   r e q u e s t s :   c p u :   1 0 0 m   m e m o r y :   2 0 0 M i   v o l u m e M o u n t s :   -   n a m e :   v a r l o g   m o u n t P a t h :   / v a r / l o g   #   i t   m a y   b e   d e s i r a b l e   t o   s e t   a   h i g h   p r i o r i t y   c l a s s   t o   e n s u r e   t h a t   a   D a e m o


Question: What is Required Fields?

Answer: A s   w i t h   a l l   o t h e r   K u b e r n e t e s   c o n f i g ,   a   D a e m o n S e t   n e e d s   a p i V e r s i o n ,   k i n d ,   a n d   m e t a d a t a   f i e l d s .   F o r   g e n e r a l   i n f o r m a t i o n   a b o u t   w o r k i n g   w i t h   c o n f i g   f i l e s ,   s e e   r u n n i n g   s t a t e l e s s   a p p l i c a t i o n s   a n d   o b j e c t   m a n a g e m e n t   u s i n g   k u b e c t l .   T h e   n a m e   o f   a   D a e m o n S e t   o b j e c t   m u s t   b e   a   v a l i d   D N S   s u b d o m a i n   n a m e .   A   D a e m o n S e t   a l s o   n e e d s   a   . s p e c   s e c t i o n .


Question: What is Pod Template?

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


Question: What is Pod Selector?

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


Question: What is Running Pods on select Nodes?

Answer: I f   y o u   s p e c i f y   a   . s p e c . t e m p l a t e . s p e c . n o d e S e l e c t o r ,   t h e n   t h e   D a e m o n S e t   c o n t r o l l e r   w i l l   c r e a t e   P o d s   o n   n o d e s   w h i c h   m a t c h   t h a t   n o d e   s e l e c t o r .   L i k e w i s e   i f   y o u   s p e c i f y   a   . s p e c . t e m p l a t e . s p e c . a f f i n i t y ,   t h e n   D a e m o n S e t   c o n t r o l l e r   w i l l   c r e a t e   P o d s   o n   n o d e s   w h i c h   m a t c h   t h a t   n o d e   a f f i n i t y .   I f   y o u   d o   n o t   s p e c i f y   e i t h e r ,   t h e n   t h e   D a e m o n S e t   c o n t r o l l e r   w i l l   c r e a t e   P o d s   o n   a l l   n o d e s .


Question: What is How Daemon Pods are scheduled?

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


Question: What is Note:?

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


Question: What is Taints and tolerations?

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


Question: What is Communicating with Daemon Pods?

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


Question: What is Updating a DaemonSet?

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


Question: What is Init scripts?

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


Question: What is Bare Pods?

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


Question: What is Static Pods?

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


Question: What is Deployments?

Answer: D a e m o n S e t s   a r e   s i m i l a r   t o   D e p l o y m e n t s   i n   t h a t   t h e y   b o t h   c r e a t e   P o d s ,   a n d   t h o s e   P o d s   h a v e   p r o c e s s e s   w h i c h   a r e   n o t   e x p e c t e d   t o   t e r m i n a t e   ( e . g .   w e b   s e r v e r s ,   s t o r a g e   s e r v e r s ) .   U s e   a   D e p l o y m e n t   f o r   s t a t e l e s s   s e r v i c e s ,   l i k e   f r o n t e n d s ,   w h e r e   s c a l i n g   u p   a n d   d o w n   t h e   n u m b e r   o f   r e p l i c a s   a n d   r o l l i n g   o u t   u p d a t e s   a r e   m o r e   i m p o r t a n t   t h a n   c o n t r o l l i n g   e x a c t l y   w h i c h   h o s t   t h e   P o d   r u n s   o n .   U s e   a   D a e m o n S e t   w h e n   i t   i s   i m p o r t a n t   t h a t   a   c o p y   o f   a   P o d   a l w a y s   r u n   o n   a l l   o r   c e r t a i n   h o s t s ,   i f   t h e   D a e m o n S e t   p r o v i d e s   n o d e - l e v e l   f u n c t i o n a l i t y   t h a t   a l l o w s   o t h e r   P o d s   t o   r u n   c o r r e c t l y   o n   t h a t   p a r t i c u l a r   n o d e .   F o r   e x a m p l e ,   n e t w o r k   p l u g i n s   o f t e n   i n c l u d e   a   c o m p o n e n t   t h a t   r u n s   a s   a   D a e m o n S e t .   T h e   D a e m o n S e t   c o m p o n e n t   m a k e s   s u r e   t h a t   t h e   n o d e   w h e r e   i t ' s   r u n n i n g   h a s   w o r k i n g   c l u s t e r   n e t w o r k i n g .