Question: What is Kubelet Systemd Watchdog?

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


Question: What is Configuration?

Answer: U s i n g   t h e   s y s t e m d   w a t c h d o g   r e q u i r e s   c o n f i g u r i n g   t h e   W a t c h d o g S e c   p a r a m e t e r   i n   t h e   [ S e r v i c e ]   s e c t i o n   o f   t h e   k u b e l e t   s e r v i c e   u n i t   f i l e :   [ S e r v i c e ]   W a t c h d o g S e c = 3 0 s   S e t t i n g   W a t c h d o g S e c = 3 0 s   i n d i c a t e s   a   s e r v i c e   w a t c h d o g   t i m e o u t   o f   3 0   s e c o n d s .   W i t h i n   t h e   k u b e l e t ,   t h e   s d _ n o t i f y ( )   f u n c t i o n   i s   i n v o k e d ,   a t   i n t e r v a l s   o f   \ (   W a t c h d o g S e c   \ d i v   2 \ ) .   t o   s e n d   W A T C H D O G = 1   ( a   k e e p - a l i v e   m e s s a g e ) .   I f   t h e   w a t c h d o g   i s   n o t   f e d   w i t h i n   t h e   t i m e o u t   p e r i o d ,   t h e   k u b e l e t   w i l l   b e   k i l l e d .   S e t t i n g   R e s t a r t   t o   " a l w a y s " ,   " o n - f a i l u r e " ,   " o n - w a t c h d o g " ,   o r   " o n - a b n o r m a l "   w i l l   e n s u r e   t h a t   t h e   s e r v i c e   i s   a u t o m a t i c a l l y   r e s t a r t e d .   S o m e   d e t a i l s   a b o u t   t h e   s y s t e m d   c o n f i g u r a t i o n :   I f   y o u   s e t   t h e   s y s t e m d   v a l u e   f o r   W a t c h d o g S e c   t o   0 ,   o r   o m i t   s e t t i n g   i t ,   t h e   s y s t e m d   w a t c h d o g   i s   n o t   e n a b l e d   f o r   t h i s   u n i t . T h e   k u b e l e t   s u p p o r t s   a   m i n i m u m   w a t c h d o g   p e r i o d   o f   1 . 0   s e c o n d s ;   t h i s   i s   t o   p r e v e n t   t h e   k u b e l e t   f r o m   b e i n g   k i l l e d   u n e x p e c t e d l y .   Y o u   c a n   s e t   t h e   v a l u e   o f   W a t c h d o g S e c   i n   a   s y s t e m d   u n i t   d e f i n i t i o n   t o   a   p e r i o d   s h o r t e r   t h a n   1   s e c o n d ,   b u t   K u b e r n e t e s   d


Question: What is Example Configuration?

Answer: [ U n i t ]   D e s c r i p t i o n = k u b e l e t :   T h e   K u b e r n e t e s   N o d e   A g e n t   D o c u m e n t a t i o n = h t t p s : / / k u b e r n e t e s . i o / d o c s / h o m e /   W a n t s = n e t w o r k - o n l i n e . t a r g e t   A f t e r = n e t w o r k - o n l i n e . t a r g e t   [ S e r v i c e ]   E x e c S t a r t = / u s r / b i n / k u b e l e t   #   C o n f i g u r e s   t h e   w a t c h d o g   t i m e o u t   W a t c h d o g S e c = 3 0 s   R e s t a r t = o n - f a i l u r e   S t a r t L i m i t I n t e r v a l = 0   R e s t a r t S e c = 1 0   [ I n s t a l l ]   W a n t e d B y = m u l t i - u s e r . t a r g e t


Question: What is What's next?

Answer: F o r   m o r e   d e t a i l s   a b o u t   s y s t e m d   c o n f i g u r a t i o n ,   r e f e r   t o   t h e   s y s t e m d   d o c u m e n t a t i o n


Question: What is kubectl create serviceaccount?

Answer: kubectl create serviceaccountSynopsisCreate a service account with the specified name.kubectl create serviceaccount NAME [--dry-run=server|client|none] Examples # Create a new service account named my-service-account kubectl create serviceaccount my-service-account Options--allow-missing-template-keys Default: trueIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.--dry-run string[="unchanged"] Default: "none"Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.--field-manager string Default: "kubectl-create"Name of the manager used to track field ownership.-h, --helphelp for serviceaccount-o, --output stringOutput format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).--save-configIf true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--template stringTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].--validate string[="strict"] Default: "strict"Must be one of: strict (or true), warn, ignore (or false). "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields.Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certifi


Question: How does kubectl create serviceaccount work?

Answer: kubectl create serviceaccountSynopsisCreate a service account with the specified name.kubectl create serviceaccount NAME [--dry-run=server|client|none] Examples # Create a new service account named my-service-account kubectl create serviceaccount my-service-account Options--allow-missing-template-keys Default: trueIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.--dry-run string[="unchanged"] Default: "none"Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.--field-manager string Default: "kubectl-create"Name of the manager used to track field ownership.-h, --helphelp for serviceaccount-o, --output stringOutput format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).--save-configIf true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--template stringTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].--validate string[="strict"] Default: "strict"Must be one of: strict (or true), warn, ignore (or false). "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields.Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certifi


Question: When would you use kubectl create serviceaccount?

Answer: kubectl create serviceaccountSynopsisCreate a service account with the specified name.kubectl create serviceaccount NAME [--dry-run=server|client|none] Examples # Create a new service account named my-service-account kubectl create serviceaccount my-service-account Options--allow-missing-template-keys Default: trueIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.--dry-run string[="unchanged"] Default: "none"Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.--field-manager string Default: "kubectl-create"Name of the manager used to track field ownership.-h, --helphelp for serviceaccount-o, --output stringOutput format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).--save-configIf true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--template stringTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].--validate string[="strict"] Default: "strict"Must be one of: strict (or true), warn, ignore (or false). "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields.Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certifi


Question: What are the benefits of kubectl create serviceaccount?

Answer: kubectl create serviceaccountSynopsisCreate a service account with the specified name.kubectl create serviceaccount NAME [--dry-run=server|client|none] Examples # Create a new service account named my-service-account kubectl create serviceaccount my-service-account Options--allow-missing-template-keys Default: trueIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.--dry-run string[="unchanged"] Default: "none"Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.--field-manager string Default: "kubectl-create"Name of the manager used to track field ownership.-h, --helphelp for serviceaccount-o, --output stringOutput format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).--save-configIf true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--template stringTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].--validate string[="strict"] Default: "strict"Must be one of: strict (or true), warn, ignore (or false). "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields.Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certifi


Question: What is Synopsis?

Answer: C r e a t e   a   s e r v i c e   a c c o u n t   w i t h   t h e   s p e c i f i e d   n a m e .   k u b e c t l   c r e a t e   s e r v i c e a c c o u n t   N A M E   [ - - d r y - r u n = s e r v e r | c l i e n t | n o n e ]


Question: What is Examples?

Answer: #   C r e a t e   a   n e w   s e r v i c e   a c c o u n t   n a m e d   m y - s e r v i c e - a c c o u n t   k u b e c t l   c r e a t e   s e r v i c e a c c o u n t   m y - s e r v i c e - a c c o u n t


Question: What is Options?

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


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   P a t h   t o   t h e   k u b e c o n f i g   f i l e   t o   u s e   f o r   C L I   r e q u e s t s .   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


Question: What is See Also?

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


Question: What is Contributing to Kubernetes blogs?

Answer: Contributing to Kubernetes blogsThere are two official Kubernetes blogs, and the CNCF has its own blog where you can cover Kubernetes too. For the main Kubernetes blog, we (the Kubernetes project) like to publish articles with different perspectives and special focuses, that have a link to Kubernetes.With only a few special case exceptions, we only publish content that hasn't been submitted or published anywhere else.Read the blog guidelines for more about that aspect.Official Kubernetes blogsMain blogThe main Kubernetes blog is used by the project to communicate new features, community reports, and any news that might be relevant to the Kubernetes community. This includes end users and developers. Most of the blog's content is about things happening in the core project, but Kubernetes as a project encourages you to submit about things happening elsewhere in the ecosystem too!Anyone can write a blog post and submit it for publication. With only a few special case exceptions, we only publish content that hasn't been submitted or published anywhere else.Contributor blogThe Kubernetes contributor blog is aimed at an audience of people who work on Kubernetes more than people who work with Kubernetes. The Kubernetes project deliberately publishes some articles to both blogs.Anyone can write a blog post and submit it for review.Article updates and maintenanceThe Kubernetes project does not maintain older articles for its blogs. This means that any published article more than one year old will normally not be eligible for issues or pull requests that ask for changes. To avoid establishing precedent, even technically correct pull requests are likely to be rejected.However, there are exceptions like the following:(updates to) articles marked as evergreenremoving or correcting articles giving advice that is now wrong and dangerous to followfixes to ensure that an existing article still renders correctlyFor any article that is over a year old and not marked as evergreen, the website automatically displays a notice that the content may be stale.Evergreen articlesYou can mark an article as evergreen by setting evergreen: true in the front matter.We only mark blog articles as maintained (evergreen: true in front matter) if the Kubernetes project can commit to maintaining them indefinitely. Some blog articles absolutely merit this; for example, the release comms team always marks official release announcements as evergreen.What's nextDiscover the official blogs:Kubernetes blogKubernetes contributor blogRead about reviewing blog pull requestsSubmitting articles to Kubernetes blogsBlog guidelinesBlog article mirroringPost-release communicationsHelping as a blog writing buddy


Question: How does Contributing to Kubernetes blogs work?

Answer: Contributing to Kubernetes blogsThere are two official Kubernetes blogs, and the CNCF has its own blog where you can cover Kubernetes too. For the main Kubernetes blog, we (the Kubernetes project) like to publish articles with different perspectives and special focuses, that have a link to Kubernetes.With only a few special case exceptions, we only publish content that hasn't been submitted or published anywhere else.Read the blog guidelines for more about that aspect.Official Kubernetes blogsMain blogThe main Kubernetes blog is used by the project to communicate new features, community reports, and any news that might be relevant to the Kubernetes community. This includes end users and developers. Most of the blog's content is about things happening in the core project, but Kubernetes as a project encourages you to submit about things happening elsewhere in the ecosystem too!Anyone can write a blog post and submit it for publication. With only a few special case exceptions, we only publish content that hasn't been submitted or published anywhere else.Contributor blogThe Kubernetes contributor blog is aimed at an audience of people who work on Kubernetes more than people who work with Kubernetes. The Kubernetes project deliberately publishes some articles to both blogs.Anyone can write a blog post and submit it for review.Article updates and maintenanceThe Kubernetes project does not maintain older articles for its blogs. This means that any published article more than one year old will normally not be eligible for issues or pull requests that ask for changes. To avoid establishing precedent, even technically correct pull requests are likely to be rejected.However, there are exceptions like the following:(updates to) articles marked as evergreenremoving or correcting articles giving advice that is now wrong and dangerous to followfixes to ensure that an existing article still renders correctlyFor any article that is over a year old and not marked as evergreen, the website automatically displays a notice that the content may be stale.Evergreen articlesYou can mark an article as evergreen by setting evergreen: true in the front matter.We only mark blog articles as maintained (evergreen: true in front matter) if the Kubernetes project can commit to maintaining them indefinitely. Some blog articles absolutely merit this; for example, the release comms team always marks official release announcements as evergreen.What's nextDiscover the official blogs:Kubernetes blogKubernetes contributor blogRead about reviewing blog pull requestsSubmitting articles to Kubernetes blogsBlog guidelinesBlog article mirroringPost-release communicationsHelping as a blog writing buddy


Question: When would you use Contributing to Kubernetes blogs?

Answer: Contributing to Kubernetes blogsThere are two official Kubernetes blogs, and the CNCF has its own blog where you can cover Kubernetes too. For the main Kubernetes blog, we (the Kubernetes project) like to publish articles with different perspectives and special focuses, that have a link to Kubernetes.With only a few special case exceptions, we only publish content that hasn't been submitted or published anywhere else.Read the blog guidelines for more about that aspect.Official Kubernetes blogsMain blogThe main Kubernetes blog is used by the project to communicate new features, community reports, and any news that might be relevant to the Kubernetes community. This includes end users and developers. Most of the blog's content is about things happening in the core project, but Kubernetes as a project encourages you to submit about things happening elsewhere in the ecosystem too!Anyone can write a blog post and submit it for publication. With only a few special case exceptions, we only publish content that hasn't been submitted or published anywhere else.Contributor blogThe Kubernetes contributor blog is aimed at an audience of people who work on Kubernetes more than people who work with Kubernetes. The Kubernetes project deliberately publishes some articles to both blogs.Anyone can write a blog post and submit it for review.Article updates and maintenanceThe Kubernetes project does not maintain older articles for its blogs. This means that any published article more than one year old will normally not be eligible for issues or pull requests that ask for changes. To avoid establishing precedent, even technically correct pull requests are likely to be rejected.However, there are exceptions like the following:(updates to) articles marked as evergreenremoving or correcting articles giving advice that is now wrong and dangerous to followfixes to ensure that an existing article still renders correctlyFor any article that is over a year old and not marked as evergreen, the website automatically displays a notice that the content may be stale.Evergreen articlesYou can mark an article as evergreen by setting evergreen: true in the front matter.We only mark blog articles as maintained (evergreen: true in front matter) if the Kubernetes project can commit to maintaining them indefinitely. Some blog articles absolutely merit this; for example, the release comms team always marks official release announcements as evergreen.What's nextDiscover the official blogs:Kubernetes blogKubernetes contributor blogRead about reviewing blog pull requestsSubmitting articles to Kubernetes blogsBlog guidelinesBlog article mirroringPost-release communicationsHelping as a blog writing buddy


Question: What are the benefits of Contributing to Kubernetes blogs?

Answer: Contributing to Kubernetes blogsThere are two official Kubernetes blogs, and the CNCF has its own blog where you can cover Kubernetes too. For the main Kubernetes blog, we (the Kubernetes project) like to publish articles with different perspectives and special focuses, that have a link to Kubernetes.With only a few special case exceptions, we only publish content that hasn't been submitted or published anywhere else.Read the blog guidelines for more about that aspect.Official Kubernetes blogsMain blogThe main Kubernetes blog is used by the project to communicate new features, community reports, and any news that might be relevant to the Kubernetes community. This includes end users and developers. Most of the blog's content is about things happening in the core project, but Kubernetes as a project encourages you to submit about things happening elsewhere in the ecosystem too!Anyone can write a blog post and submit it for publication. With only a few special case exceptions, we only publish content that hasn't been submitted or published anywhere else.Contributor blogThe Kubernetes contributor blog is aimed at an audience of people who work on Kubernetes more than people who work with Kubernetes. The Kubernetes project deliberately publishes some articles to both blogs.Anyone can write a blog post and submit it for review.Article updates and maintenanceThe Kubernetes project does not maintain older articles for its blogs. This means that any published article more than one year old will normally not be eligible for issues or pull requests that ask for changes. To avoid establishing precedent, even technically correct pull requests are likely to be rejected.However, there are exceptions like the following:(updates to) articles marked as evergreenremoving or correcting articles giving advice that is now wrong and dangerous to followfixes to ensure that an existing article still renders correctlyFor any article that is over a year old and not marked as evergreen, the website automatically displays a notice that the content may be stale.Evergreen articlesYou can mark an article as evergreen by setting evergreen: true in the front matter.We only mark blog articles as maintained (evergreen: true in front matter) if the Kubernetes project can commit to maintaining them indefinitely. Some blog articles absolutely merit this; for example, the release comms team always marks official release announcements as evergreen.What's nextDiscover the official blogs:Kubernetes blogKubernetes contributor blogRead about reviewing blog pull requestsSubmitting articles to Kubernetes blogsBlog guidelinesBlog article mirroringPost-release communicationsHelping as a blog writing buddy


Question: What is Contributing to Kubernetes blogs?

Answer: T h e r e   a r e   t w o   o f f i c i a l   K u b e r n e t e s   b l o g s ,   a n d   t h e   C N C F   h a s   i t s   o w n   b l o g   w h e r e   y o u   c a n   c o v e r   K u b e r n e t e s   t o o .   F o r   t h e   m a i n   K u b e r n e t e s   b l o g ,   w e   ( t h e   K u b e r n e t e s   p r o j e c t )   l i k e   t o   p u b l i s h   a r t i c l e s   w i t h   d i f f e r e n t   p e r s p e c t i v e s   a n d   s p e c i a l   f o c u s e s ,   t h a t   h a v e   a   l i n k   t o   K u b e r n e t e s .   W i t h   o n l y   a   f e w   s p e c i a l   c a s e   e x c e p t i o n s ,   w e   o n l y   p u b l i s h   c o n t e n t   t h a t   h a s n ' t   b e e n   s u b m i t t e d   o r   p u b l i s h e d   a n y w h e r e   e l s e .   R e a d   t h e   b l o g   g u i d e l i n e s   f o r   m o r e   a b o u t   t h a t   a s p e c t .


Question: What is Main blog?

Answer: T h e   m a i n   K u b e r n e t e s   b l o g   i s   u s e d   b y   t h e   p r o j e c t   t o   c o m m u n i c a t e   n e w   f e a t u r e s ,   c o m m u n i t y   r e p o r t s ,   a n d   a n y   n e w s   t h a t   m i g h t   b e   r e l e v a n t   t o   t h e   K u b e r n e t e s   c o m m u n i t y .   T h i s   i n c l u d e s   e n d   u s e r s   a n d   d e v e l o p e r s .   M o s t   o f   t h e   b l o g ' s   c o n t e n t   i s   a b o u t   t h i n g s   h a p p e n i n g   i n   t h e   c o r e   p r o j e c t ,   b u t   K u b e r n e t e s   a s   a   p r o j e c t   e n c o u r a g e s   y o u   t o   s u b m i t   a b o u t   t h i n g s   h a p p e n i n g   e l s e w h e r e   i n   t h e   e c o s y s t e m   t o o !   A n y o n e   c a n   w r i t e   a   b l o g   p o s t   a n d   s u b m i t   i t   f o r   p u b l i c a t i o n .   W i t h   o n l y   a   f e w   s p e c i a l   c a s e   e x c e p t i o n s ,   w e   o n l y   p u b l i s h   c o n t e n t   t h a t   h a s n ' t   b e e n   s u b m i t t e d   o r   p u b l i s h e d   a n y w h e r e   e l s e .


Question: What is Contributor blog?

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


Question: What is Article updates and maintenance?

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


Question: What is Evergreen articles?

Answer: Y o u   c a n   m a r k   a n   a r t i c l e   a s   e v e r g r e e n   b y   s e t t i n g   e v e r g r e e n :   t r u e   i n   t h e   f r o n t   m a t t e r .   W e   o n l y   m a r k   b l o g   a r t i c l e s   a s   m a i n t a i n e d   ( e v e r g r e e n :   t r u e   i n   f r o n t   m a t t e r )   i f   t h e   K u b e r n e t e s   p r o j e c t   c a n   c o m m i t   t o   m a i n t a i n i n g   t h e m   i n d e f i n i t e l y .   S o m e   b l o g   a r t i c l e s   a b s o l u t e l y   m e r i t   t h i s ;   f o r   e x a m p l e ,   t h e   r e l e a s e   c o m m s   t e a m   a l w a y s   m a r k s   o f f i c i a l   r e l e a s e   a n n o u n c e m e n t s   a s   e v e r g r e e n .


Question: What is What's next?

Answer: D i s c o v e r   t h e   o f f i c i a l   b l o g s : K u b e r n e t e s   b l o g K u b e r n e t e s   c o n t r i b u t o r   b l o g R e a d   a b o u t   r e v i e w i n g   b l o g   p u l l   r e q u e s t s   D i s c o v e r   t h e   o f f i c i a l   b l o g s :   K u b e r n e t e s   b l o g K u b e r n e t e s   c o n t r i b u t o r   b l o g   R e a d   a b o u t   r e v i e w i n g   b l o g   p u l l   r e q u e s t s   S u b m i t t i n g   a r t i c l e s   t o   K u b e r n e t e s   b l o g s B l o g   g u i d e l i n e s B l o g   a r t i c l e   m i r r o r i n g P o s t - r e l e a s e   c o m m u n i c a t i o n s H e l p i n g   a s   a   b l o g   w r i t i n g   b u d d y


Question: What is Diagram Guide?

Answer: Diagram GuideThis guide shows you how to create, edit and share diagrams using the Mermaid JavaScript library. Mermaid.js allows you to generate diagrams using a simple markdown-like syntax inside Markdown files. You can also use Mermaid to generate .svg or .png image files that you can add to your documentation.The target audience for this guide is anybody wishing to learn about Mermaid and/or how to create and add diagrams to Kubernetes documentation.Figure 1 outlines the topics covered in this section.flowchart LR subgraph m[Mermaid.js] direction TB S[ ]-.- C[builddiagramswith markdown] --> D[on-linelive editor] end A[Why are diagramsuseful?] --> m m --> N[3 x methodsfor creatingdiagrams] N --> T[Examples] T --> X[Stylingandcaptions] X --> V[Tips] classDef box fill:#fff,stroke:#000,stroke-width:1px,color:#000; classDef spacewhite fill:#ffffff,stroke:#fff,stroke-width:0px,color:#000 class A,C,D,N,X,m,T,V box class S spacewhite %% you can hyperlink Mermaid diagram nodes to a URL using click statements click A "https://mermaid-js.github.io/mermaid-live-editor/edit/#eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgc3ViZ3JhcGggbVtNZXJtYWlkLmpzXVxuICAgIGRpcmVjdGlvbiBUQlxuICAgICAgICBTWyBdLS4tXG4gICAgICAgIENbYnVpbGQ8YnI-ZGlhZ3JhbXM8YnI-d2l0aCBtYXJrZG93bl0gLS0-XG4gICAgICAgIERbb24tbGluZTxicj5saXZlIGVkaXRvcl1cbiAgICBlbmRcbiAgICBBW1doeSBhcmUgZGlhZ3JhbXM8YnI-dXNlZnVsP10gLS0-IG1cbiAgICBtIC0tPiBOWzMgeCBtZXRob2RzPGJyPmZvciBjcmVhdGluZzxicj5kaWFncmFtc11cbiAgICBOIC0tPiBUW0V4YW1wbGVzXVxuICAgIFQgLS0-IFhbU3R5bGluZzxicj5hbmQ8YnI-Y2FwdGlvbnNdXG4gICAgWCAtLT4gVltUaXBzXVxuICAgIFxuIFxuICAgIGNsYXNzRGVmIGJveCBmaWxsOiNmZmYsc3Ryb2tlOiMwMDAsc3Ryb2tlLXdpZHRoOjFweCxjb2xvcjojMDAwO1xuICAgIGNsYXNzRGVmIHNwYWNld2hpdGUgZmlsbDojZmZmZmZmLHN0cm9rZTojZmZmLHN0cm9rZS13aWR0aDowcHgsY29sb3I6IzAwMFxuICAgIGNsYXNzIEEsQyxELE4sWCxtLFQsViBib3hcbiAgICBjbGFzcyBTIHNwYWNld2hpdGUiLCJtZXJtYWlkIjoie1xuICBcInRoZW1lXCI6IFwiZGVmYXVsdFwiXG59IiwidXBkYXRlRWRpdG9yIjpmYWxzZSwiYXV0b1N5bmMiOnRydWUsInVwZGF0ZURpYWdyYW0iOnRydWV9" _blank click C "https://mermaid-js.github.io/mermaid-live-editor/edit/#eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgc3ViZ3JhcGggbVtNZXJtYWlkLmpzXVxuICAgIGRpcmVjdGlvbiBUQlxuICAgICAgICBTWyBdLS4tXG4gICAgICAgIENbYnVpbGQ8YnI-ZGlhZ3JhbXM8YnI-d2l0aCBtYXJrZG93bl0gLS0-XG4gICAgICAgIERbb24tbGluZTxicj5saXZlIGVkaXRvcl1cbiAgICBlbmRcbiAgICBBW1doeSBhcmUgZGlhZ3JhbXM8YnI-dXNlZnVsP10gLS0-IG1cbiAgICBtIC0tPiBOWzMgeCBtZXRob2RzPGJyPmZvciBjcmVhdGluZzxicj5kaWFncmFtc11cbiAgICBOIC0tPiBUW0V4YW1wbGVzXVxuICAgIFQgLS0-IFhbU3R5bGluZzxicj5hbmQ8YnI-Y2FwdGlvbnNdXG4gICAgWCAtLT4gVltUaXBzXVxuICAgIFxuIFxuICAgIGNsYXNzRGVmIGJveCBmaWxsOiNmZmYsc3Ryb2tlOiMwMDAsc3Ryb2tlLXdpZHRoOjFweCxjb2xvcjojMDAwO1xuICAgIGNsYXNzRGVmIHNwYWNld2hpdGUgZmlsbDojZmZmZmZmLHN0cm9rZTojZmZmLHN0cm9rZS13aWR0aDowcHgsY29sb3I6IzAwMFxuICAgIGNsYXNzIEEsQyxELE4sWCxtLFQsViBib3hcbiAgICBjbGFzcyBTIHNwYWNld2hpdGUiLCJtZXJtYWlkIjoie1xuICBcInRoZW1lXCI6IFwiZGVmYXVsdFwiXG59IiwidXBkYXRlRWRpdG9yIjpmYWxzZSwiYXV0b1N5bmMiOnRydWUsInVwZGF0ZURpYWdyYW0iOnRydWV9" _blank click D "https://mermaid-js.github.io/mermai


Question: How does Diagram Guide work?

Answer: Diagram GuideThis guide shows you how to create, edit and share diagrams using the Mermaid JavaScript library. Mermaid.js allows you to generate diagrams using a simple markdown-like syntax inside Markdown files. You can also use Mermaid to generate .svg or .png image files that you can add to your documentation.The target audience for this guide is anybody wishing to learn about Mermaid and/or how to create and add diagrams to Kubernetes documentation.Figure 1 outlines the topics covered in this section.flowchart LR subgraph m[Mermaid.js] direction TB S[ ]-.- C[builddiagramswith markdown] --> D[on-linelive editor] end A[Why are diagramsuseful?] --> m m --> N[3 x methodsfor creatingdiagrams] N --> T[Examples] T --> X[Stylingandcaptions] X --> V[Tips] classDef box fill:#fff,stroke:#000,stroke-width:1px,color:#000; classDef spacewhite fill:#ffffff,stroke:#fff,stroke-width:0px,color:#000 class A,C,D,N,X,m,T,V box class S spacewhite %% you can hyperlink Mermaid diagram nodes to a URL using click statements click A "https://mermaid-js.github.io/mermaid-live-editor/edit/#eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgc3ViZ3JhcGggbVtNZXJtYWlkLmpzXVxuICAgIGRpcmVjdGlvbiBUQlxuICAgICAgICBTWyBdLS4tXG4gICAgICAgIENbYnVpbGQ8YnI-ZGlhZ3JhbXM8YnI-d2l0aCBtYXJrZG93bl0gLS0-XG4gICAgICAgIERbb24tbGluZTxicj5saXZlIGVkaXRvcl1cbiAgICBlbmRcbiAgICBBW1doeSBhcmUgZGlhZ3JhbXM8YnI-dXNlZnVsP10gLS0-IG1cbiAgICBtIC0tPiBOWzMgeCBtZXRob2RzPGJyPmZvciBjcmVhdGluZzxicj5kaWFncmFtc11cbiAgICBOIC0tPiBUW0V4YW1wbGVzXVxuICAgIFQgLS0-IFhbU3R5bGluZzxicj5hbmQ8YnI-Y2FwdGlvbnNdXG4gICAgWCAtLT4gVltUaXBzXVxuICAgIFxuIFxuICAgIGNsYXNzRGVmIGJveCBmaWxsOiNmZmYsc3Ryb2tlOiMwMDAsc3Ryb2tlLXdpZHRoOjFweCxjb2xvcjojMDAwO1xuICAgIGNsYXNzRGVmIHNwYWNld2hpdGUgZmlsbDojZmZmZmZmLHN0cm9rZTojZmZmLHN0cm9rZS13aWR0aDowcHgsY29sb3I6IzAwMFxuICAgIGNsYXNzIEEsQyxELE4sWCxtLFQsViBib3hcbiAgICBjbGFzcyBTIHNwYWNld2hpdGUiLCJtZXJtYWlkIjoie1xuICBcInRoZW1lXCI6IFwiZGVmYXVsdFwiXG59IiwidXBkYXRlRWRpdG9yIjpmYWxzZSwiYXV0b1N5bmMiOnRydWUsInVwZGF0ZURpYWdyYW0iOnRydWV9" _blank click C "https://mermaid-js.github.io/mermaid-live-editor/edit/#eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgc3ViZ3JhcGggbVtNZXJtYWlkLmpzXVxuICAgIGRpcmVjdGlvbiBUQlxuICAgICAgICBTWyBdLS4tXG4gICAgICAgIENbYnVpbGQ8YnI-ZGlhZ3JhbXM8YnI-d2l0aCBtYXJrZG93bl0gLS0-XG4gICAgICAgIERbb24tbGluZTxicj5saXZlIGVkaXRvcl1cbiAgICBlbmRcbiAgICBBW1doeSBhcmUgZGlhZ3JhbXM8YnI-dXNlZnVsP10gLS0-IG1cbiAgICBtIC0tPiBOWzMgeCBtZXRob2RzPGJyPmZvciBjcmVhdGluZzxicj5kaWFncmFtc11cbiAgICBOIC0tPiBUW0V4YW1wbGVzXVxuICAgIFQgLS0-IFhbU3R5bGluZzxicj5hbmQ8YnI-Y2FwdGlvbnNdXG4gICAgWCAtLT4gVltUaXBzXVxuICAgIFxuIFxuICAgIGNsYXNzRGVmIGJveCBmaWxsOiNmZmYsc3Ryb2tlOiMwMDAsc3Ryb2tlLXdpZHRoOjFweCxjb2xvcjojMDAwO1xuICAgIGNsYXNzRGVmIHNwYWNld2hpdGUgZmlsbDojZmZmZmZmLHN0cm9rZTojZmZmLHN0cm9rZS13aWR0aDowcHgsY29sb3I6IzAwMFxuICAgIGNsYXNzIEEsQyxELE4sWCxtLFQsViBib3hcbiAgICBjbGFzcyBTIHNwYWNld2hpdGUiLCJtZXJtYWlkIjoie1xuICBcInRoZW1lXCI6IFwiZGVmYXVsdFwiXG59IiwidXBkYXRlRWRpdG9yIjpmYWxzZSwiYXV0b1N5bmMiOnRydWUsInVwZGF0ZURpYWdyYW0iOnRydWV9" _blank click D "https://mermaid-js.github.io/mermai


Question: When would you use Diagram Guide?

Answer: Diagram GuideThis guide shows you how to create, edit and share diagrams using the Mermaid JavaScript library. Mermaid.js allows you to generate diagrams using a simple markdown-like syntax inside Markdown files. You can also use Mermaid to generate .svg or .png image files that you can add to your documentation.The target audience for this guide is anybody wishing to learn about Mermaid and/or how to create and add diagrams to Kubernetes documentation.Figure 1 outlines the topics covered in this section.flowchart LR subgraph m[Mermaid.js] direction TB S[ ]-.- C[builddiagramswith markdown] --> D[on-linelive editor] end A[Why are diagramsuseful?] --> m m --> N[3 x methodsfor creatingdiagrams] N --> T[Examples] T --> X[Stylingandcaptions] X --> V[Tips] classDef box fill:#fff,stroke:#000,stroke-width:1px,color:#000; classDef spacewhite fill:#ffffff,stroke:#fff,stroke-width:0px,color:#000 class A,C,D,N,X,m,T,V box class S spacewhite %% you can hyperlink Mermaid diagram nodes to a URL using click statements click A "https://mermaid-js.github.io/mermaid-live-editor/edit/#eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgc3ViZ3JhcGggbVtNZXJtYWlkLmpzXVxuICAgIGRpcmVjdGlvbiBUQlxuICAgICAgICBTWyBdLS4tXG4gICAgICAgIENbYnVpbGQ8YnI-ZGlhZ3JhbXM8YnI-d2l0aCBtYXJrZG93bl0gLS0-XG4gICAgICAgIERbb24tbGluZTxicj5saXZlIGVkaXRvcl1cbiAgICBlbmRcbiAgICBBW1doeSBhcmUgZGlhZ3JhbXM8YnI-dXNlZnVsP10gLS0-IG1cbiAgICBtIC0tPiBOWzMgeCBtZXRob2RzPGJyPmZvciBjcmVhdGluZzxicj5kaWFncmFtc11cbiAgICBOIC0tPiBUW0V4YW1wbGVzXVxuICAgIFQgLS0-IFhbU3R5bGluZzxicj5hbmQ8YnI-Y2FwdGlvbnNdXG4gICAgWCAtLT4gVltUaXBzXVxuICAgIFxuIFxuICAgIGNsYXNzRGVmIGJveCBmaWxsOiNmZmYsc3Ryb2tlOiMwMDAsc3Ryb2tlLXdpZHRoOjFweCxjb2xvcjojMDAwO1xuICAgIGNsYXNzRGVmIHNwYWNld2hpdGUgZmlsbDojZmZmZmZmLHN0cm9rZTojZmZmLHN0cm9rZS13aWR0aDowcHgsY29sb3I6IzAwMFxuICAgIGNsYXNzIEEsQyxELE4sWCxtLFQsViBib3hcbiAgICBjbGFzcyBTIHNwYWNld2hpdGUiLCJtZXJtYWlkIjoie1xuICBcInRoZW1lXCI6IFwiZGVmYXVsdFwiXG59IiwidXBkYXRlRWRpdG9yIjpmYWxzZSwiYXV0b1N5bmMiOnRydWUsInVwZGF0ZURpYWdyYW0iOnRydWV9" _blank click C "https://mermaid-js.github.io/mermaid-live-editor/edit/#eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgc3ViZ3JhcGggbVtNZXJtYWlkLmpzXVxuICAgIGRpcmVjdGlvbiBUQlxuICAgICAgICBTWyBdLS4tXG4gICAgICAgIENbYnVpbGQ8YnI-ZGlhZ3JhbXM8YnI-d2l0aCBtYXJrZG93bl0gLS0-XG4gICAgICAgIERbb24tbGluZTxicj5saXZlIGVkaXRvcl1cbiAgICBlbmRcbiAgICBBW1doeSBhcmUgZGlhZ3JhbXM8YnI-dXNlZnVsP10gLS0-IG1cbiAgICBtIC0tPiBOWzMgeCBtZXRob2RzPGJyPmZvciBjcmVhdGluZzxicj5kaWFncmFtc11cbiAgICBOIC0tPiBUW0V4YW1wbGVzXVxuICAgIFQgLS0-IFhbU3R5bGluZzxicj5hbmQ8YnI-Y2FwdGlvbnNdXG4gICAgWCAtLT4gVltUaXBzXVxuICAgIFxuIFxuICAgIGNsYXNzRGVmIGJveCBmaWxsOiNmZmYsc3Ryb2tlOiMwMDAsc3Ryb2tlLXdpZHRoOjFweCxjb2xvcjojMDAwO1xuICAgIGNsYXNzRGVmIHNwYWNld2hpdGUgZmlsbDojZmZmZmZmLHN0cm9rZTojZmZmLHN0cm9rZS13aWR0aDowcHgsY29sb3I6IzAwMFxuICAgIGNsYXNzIEEsQyxELE4sWCxtLFQsViBib3hcbiAgICBjbGFzcyBTIHNwYWNld2hpdGUiLCJtZXJtYWlkIjoie1xuICBcInRoZW1lXCI6IFwiZGVmYXVsdFwiXG59IiwidXBkYXRlRWRpdG9yIjpmYWxzZSwiYXV0b1N5bmMiOnRydWUsInVwZGF0ZURpYWdyYW0iOnRydWV9" _blank click D "https://mermaid-js.github.io/mermai


Question: What are the benefits of Diagram Guide?

Answer: Diagram GuideThis guide shows you how to create, edit and share diagrams using the Mermaid JavaScript library. Mermaid.js allows you to generate diagrams using a simple markdown-like syntax inside Markdown files. You can also use Mermaid to generate .svg or .png image files that you can add to your documentation.The target audience for this guide is anybody wishing to learn about Mermaid and/or how to create and add diagrams to Kubernetes documentation.Figure 1 outlines the topics covered in this section.flowchart LR subgraph m[Mermaid.js] direction TB S[ ]-.- C[builddiagramswith markdown] --> D[on-linelive editor] end A[Why are diagramsuseful?] --> m m --> N[3 x methodsfor creatingdiagrams] N --> T[Examples] T --> X[Stylingandcaptions] X --> V[Tips] classDef box fill:#fff,stroke:#000,stroke-width:1px,color:#000; classDef spacewhite fill:#ffffff,stroke:#fff,stroke-width:0px,color:#000 class A,C,D,N,X,m,T,V box class S spacewhite %% you can hyperlink Mermaid diagram nodes to a URL using click statements click A "https://mermaid-js.github.io/mermaid-live-editor/edit/#eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgc3ViZ3JhcGggbVtNZXJtYWlkLmpzXVxuICAgIGRpcmVjdGlvbiBUQlxuICAgICAgICBTWyBdLS4tXG4gICAgICAgIENbYnVpbGQ8YnI-ZGlhZ3JhbXM8YnI-d2l0aCBtYXJrZG93bl0gLS0-XG4gICAgICAgIERbb24tbGluZTxicj5saXZlIGVkaXRvcl1cbiAgICBlbmRcbiAgICBBW1doeSBhcmUgZGlhZ3JhbXM8YnI-dXNlZnVsP10gLS0-IG1cbiAgICBtIC0tPiBOWzMgeCBtZXRob2RzPGJyPmZvciBjcmVhdGluZzxicj5kaWFncmFtc11cbiAgICBOIC0tPiBUW0V4YW1wbGVzXVxuICAgIFQgLS0-IFhbU3R5bGluZzxicj5hbmQ8YnI-Y2FwdGlvbnNdXG4gICAgWCAtLT4gVltUaXBzXVxuICAgIFxuIFxuICAgIGNsYXNzRGVmIGJveCBmaWxsOiNmZmYsc3Ryb2tlOiMwMDAsc3Ryb2tlLXdpZHRoOjFweCxjb2xvcjojMDAwO1xuICAgIGNsYXNzRGVmIHNwYWNld2hpdGUgZmlsbDojZmZmZmZmLHN0cm9rZTojZmZmLHN0cm9rZS13aWR0aDowcHgsY29sb3I6IzAwMFxuICAgIGNsYXNzIEEsQyxELE4sWCxtLFQsViBib3hcbiAgICBjbGFzcyBTIHNwYWNld2hpdGUiLCJtZXJtYWlkIjoie1xuICBcInRoZW1lXCI6IFwiZGVmYXVsdFwiXG59IiwidXBkYXRlRWRpdG9yIjpmYWxzZSwiYXV0b1N5bmMiOnRydWUsInVwZGF0ZURpYWdyYW0iOnRydWV9" _blank click C "https://mermaid-js.github.io/mermaid-live-editor/edit/#eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgc3ViZ3JhcGggbVtNZXJtYWlkLmpzXVxuICAgIGRpcmVjdGlvbiBUQlxuICAgICAgICBTWyBdLS4tXG4gICAgICAgIENbYnVpbGQ8YnI-ZGlhZ3JhbXM8YnI-d2l0aCBtYXJrZG93bl0gLS0-XG4gICAgICAgIERbb24tbGluZTxicj5saXZlIGVkaXRvcl1cbiAgICBlbmRcbiAgICBBW1doeSBhcmUgZGlhZ3JhbXM8YnI-dXNlZnVsP10gLS0-IG1cbiAgICBtIC0tPiBOWzMgeCBtZXRob2RzPGJyPmZvciBjcmVhdGluZzxicj5kaWFncmFtc11cbiAgICBOIC0tPiBUW0V4YW1wbGVzXVxuICAgIFQgLS0-IFhbU3R5bGluZzxicj5hbmQ8YnI-Y2FwdGlvbnNdXG4gICAgWCAtLT4gVltUaXBzXVxuICAgIFxuIFxuICAgIGNsYXNzRGVmIGJveCBmaWxsOiNmZmYsc3Ryb2tlOiMwMDAsc3Ryb2tlLXdpZHRoOjFweCxjb2xvcjojMDAwO1xuICAgIGNsYXNzRGVmIHNwYWNld2hpdGUgZmlsbDojZmZmZmZmLHN0cm9rZTojZmZmLHN0cm9rZS13aWR0aDowcHgsY29sb3I6IzAwMFxuICAgIGNsYXNzIEEsQyxELE4sWCxtLFQsViBib3hcbiAgICBjbGFzcyBTIHNwYWNld2hpdGUiLCJtZXJtYWlkIjoie1xuICBcInRoZW1lXCI6IFwiZGVmYXVsdFwiXG59IiwidXBkYXRlRWRpdG9yIjpmYWxzZSwiYXV0b1N5bmMiOnRydWUsInVwZGF0ZURpYWdyYW0iOnRydWV9" _blank click D "https://mermaid-js.github.io/mermai


Question: What is Diagram Guide?

Answer: T h i s   g u i d e   s h o w s   y o u   h o w   t o   c r e a t e ,   e d i t   a n d   s h a r e   d i a g r a m s   u s i n g   t h e   M e r m a i d   J a v a S c r i p t   l i b r a r y .   M e r m a i d . j s   a l l o w s   y o u   t o   g e n e r a t e   d i a g r a m s   u s i n g   a   s i m p l e   m a r k d o w n - l i k e   s y n t a x   i n s i d e   M a r k d o w n   f i l e s .   Y o u   c a n   a l s o   u s e   M e r m a i d   t o   g e n e r a t e   . s v g   o r   . p n g   i m a g e   f i l e s   t h a t   y o u   c a n   a d d   t o   y o u r   d o c u m e n t a t i o n .   T h e   t a r g e t   a u d i e n c e   f o r   t h i s   g u i d e   i s   a n y b o d y   w i s h i n g   t o   l e a r n   a b o u t   M e r m a i d   a n d / o r   h o w   t o   c r e a t e   a n d   a d d   d i a g r a m s   t o   K u b e r n e t e s   d o c u m e n t a t i o n .   F i g u r e   1   o u t l i n e s   t h e   t o p i c s   c o v e r e d   i n   t h i s   s e c t i o n .   F i g u r e   1 .   T o p i c s   c o v e r e d   i n   t h i s   s e c t i o n .   A l l   y o u   n e e d   t o   b e g i n   w o r k i n g   w i t h   M e r m a i d   i s   t h e   f o l l o w i n g :   B a s i c   u n d e r s t a n d i n g   o f   m a r k d o w n . U s i n g   t h e   M e r m a i d   l i v e   e d i t o r . U s i n g   H u g o   s h o r t c o d e s . U s i n g   t h e   H u g o   { { <   f i g u r e   > } }   s h o r t c o d e . P e r f o r m i n g   H u g o   l o c a l   p r e v i e w s . F a m i l i a r   w i t h   t h e   C o n t r i b u t i n g   n e w   c o n t e n t   p r o c e s s .


Question: What is Why you should use diagrams in documentation?

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


Question: What is Mermaid?

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


Question: What is Live editor?

Answer: T h e   M e r m a i d   l i v e   e d i t o r   i s   a   w e b - b a s e d   t o o l   t h a t   e n a b l e s   y o u   t o   c r e a t e ,   e d i t   a n d   r e v i e w   d i a g r a m s .   T h e   f o l l o w i n g   l i s t s   l i v e   e d i t o r   f u n c t i o n s :   D i s p l a y s   M e r m a i d   c o d e   a n d   r e n d e r e d   d i a g r a m . G e n e r a t e s   a   U R L   f o r   e a c h   s a v e d   d i a g r a m .   T h e   U R L   i s   d i s p l a y e d   i n   t h e   U R L   f i e l d   o f   y o u r   b r o w s e r .   Y o u   c a n   s h a r e   t h e   U R L   w i t h   c o l l e a g u e s   w h o   c a n   a c c e s s   a n d   m o d i f y   t h e   d i a g r a m . O p t i o n   t o   d o w n l o a d   . s v g   o r   . p n g   f i l e s .


Question: What is Methods for creating diagrams?

Answer: F i g u r e   2   o u t l i n e s   t h e   t h r e e   m e t h o d s   t o   g e n e r a t e   a n d   a d d   d i a g r a m s .   F i g u r e   2 .   M e t h o d s   t o   c r e a t e   d i a g r a m s .


Question: What is Inline?

Answer: F i g u r e   3   o u t l i n e s   t h e   s t e p s   t o   f o l l o w   f o r   a d d i n g   a   d i a g r a m   u s i n g   t h e   I n l i n e   m e t h o d .   F i g u r e   3 .   I n l i n e   M e t h o d   s t e p s .   T h e   f o l l o w i n g   l i s t s   t h e   s t e p s   y o u   s h o u l d   f o l l o w   f o r   a d d i n g   a   d i a g r a m   u s i n g   t h e   I n l i n e   m e t h o d :   C r e a t e   y o u r   d i a g r a m   u s i n g   t h e   l i v e   e d i t o r . S t o r e   t h e   d i a g r a m   U R L   s o m e w h e r e   f o r   l a t e r   a c c e s s . C o p y   t h e   m e r m a i d   c o d e   t o   t h e   l o c a t i o n   i n   y o u r   . m d   f i l e   w h e r e   y o u   w a n t   t h e   d i a g r a m   t o   a p p e a r . A d d   a   c a p t i o n   b e l o w   t h e   d i a g r a m   u s i n g   M a r k d o w n   t e x t .   A   H u g o   b u i l d   r u n s   t h e   M e r m a i d   c o d e   a n d   t u r n s   i t   i n t o   a   d i a g r a m .


Question: What is Note:?

Answer: H e r e   i s   a   s a m p l e   c o d e   s n i p p e t   c o n t a i n e d   i n   a n   . m d   f i l e :   - - -   t i t l e :   M y   P R   - - -   F i g u r e   1 7   s h o w s   a   s i m p l e   A   t o   B   p r o c e s s .   s o m e   m a r k d o w n   t e x t   . . .   { { <   m e r m a i d   > } }   g r a p h   T B   A   - - >   B   { { <   / m e r m a i d   > } }   F i g u r e   1 7 .   A   t o   B   m o r e   t e x t


Question: What is Note:?

Answer: F o r   m o r e   d e t a i l s   o n   d i a g r a m   c a p t i o n s ,   s e e   H o w   t o   u s e   c a p t i o n s .   T h e   f o l l o w i n g   l i s t s   a d v a n t a g e s   o f   t h e   I n l i n e   m e t h o d :   L i v e   e d i t o r   t o o l . E a s y   t o   c o p y   M e r m a i d   c o d e   t o   a n d   f r o m   t h e   l i v e   e d i t o r   a n d   y o u r   . m d   f i l e . N o   n e e d   f o r   s e p a r a t e   . s v g   i m a g e   f i l e   h a n d l i n g . C o n t e n t   t e x t ,   d i a g r a m   c o d e   a n d   d i a g r a m   c a p t i o n   c o n t a i n e d   i n   t h e   s a m e   . m d   f i l e .   Y o u   s h o u l d   u s e   t h e   l o c a l   a n d   N e t l i f y   p r e v i e w s   t o   v e r i f y   t h e   d i a g r a m   i s   p r o p e r l y   r e n d e r e d .


Question: What is Mermaid+SVG?

Answer: F i g u r e   4   o u t l i n e s   t h e   s t e p s   t o   f o l l o w   f o r   a d d i n g   a   d i a g r a m   u s i n g   t h e   M e r m a i d + S V G   m e t h o d .   F i g u r e   4 .   M e r m a i d + S V G   m e t h o d   s t e p s .   T h e   f o l l o w i n g   l i s t s   t h e   s t e p s   y o u   s h o u l d   f o l l o w   f o r   a d d i n g   a   d i a g r a m   u s i n g   t h e   M e r m a i d + S V G   m e t h o d :   C r e a t e   y o u r   d i a g r a m   u s i n g   t h e   l i v e   e d i t o r . S t o r e   t h e   d i a g r a m   U R L   s o m e w h e r e   f o r   l a t e r   a c c e s s . G e n e r a t e   a n   . s v g   i m a g e   f i l e   f o r   t h e   d i a g r a m   a n d   d o w n l o a d   i t   t o   t h e   a p p r o p r i a t e   i m a g e s /   f o l d e r . U s e   t h e   { { <   f i g u r e   > } }   s h o r t c o d e   t o   r e f e r e n c e   t h e   d i a g r a m   i n   t h e   . m d   f i l e . A d d   a   c a p t i o n   u s i n g   t h e   { { <   f i g u r e   > } }   s h o r t c o d e ' s   c a p t i o n   p a r a m e t e r .   F o r   e x a m p l e ,   u s e   t h e   l i v e   e d i t o r   t o   c r e a t e   a   d i a g r a m   c a l l e d   b o x n e t .   S t o r e   t h e   d i a g r a m   U R L   s o m e w h e r e   f o r   l a t e r   a c c e s s .   G e n e r a t e   a n d   d o w n l o a d   a   b o x n e t . s v g   f i l e   t o   t h e   a p p r o p r i a t e   . . / i m a g e s /   f o l d e r .   U s e   t h e   { { <   f i g u r e   > } }   s h o r t c o d e   i n   y o u r   P R ' s   . m d   f i l e   t o   r e f e r e n c e   t h e   . s v g   i m a g e   f i l e   a n d   a d d   a   c a p t i o n .   { { <   f i g u r e   s r c = " / s t a t i c / i m a g e s / b o x n e t . s v g "   a l t = " B o x n e t   f i g u r e "   c l a s s = " d i a g r a m - l a r g e "   c a p t i o n = " F i g u r e   1 4 .   B o x n e t   c a p t i o n "   > } }   F o r   m o r e   d e t a i l s   o n


Question: What is Note:?

Answer: Y o u   s h o u l d   a d d   t h e   l i v e   e d i t o r   U R L   a s   a   c o m m e n t   b l o c k   i n   t h e   . s v g   i m a g e   f i l e   u s i n g   a   t e x t   e d i t o r .   F o r   e x a m p l e ,   y o u   w o u l d   i n c l u d e   t h e   f o l l o w i n g   a t   t h e   b e g i n n i n g   o f   t h e   . s v g   i m a g e   f i l e :   < ! - -   T o   v i e w   o r   e d i t   t h e   m e r m a i d   c o d e ,   u s e   t h e   f o l l o w i n g   U R L :   - - >   < ! - -   h t t p s : / / m e r m a i d - j s . g i t h u b . i o / m e r m a i d - l i v e - e d i t o r / e d i t / # e y J j b   . . .   < r e m a i n d e r   o f   t h e   U R L >   - - >   T h e   f o l l o w i n g   l i s t s   a d v a n t a g e s   o f   t h e   M e r m a i d + S V G   m e t h o d :   L i v e   e d i t o r   t o o l . L i v e   e d i t o r   t o o l   s u p p o r t s   t h e   m o s t   c u r r e n t   M e r m a i d   f e a t u r e   s e t . E m p l o y   e x i s t i n g   k u b e r n e t e s / w e b s i t e   m e t h o d s   f o r   h a n d l i n g   . s v g   i m a g e   f i l e s . E n v i r o n m e n t   d o e s n ' t   r e q u i r e   M e r m a i d   s u p p o r t .   B e   s u r e   t o   c h e c k   t h a t   y o u r   d i a g r a m   r e n d e r s   p r o p e r l y   u s i n g   t h e   l o c a l   a n d   N e t l i f y   p r e v i e w s .


Question: What is External tool?

Answer: F i g u r e   5   o u t l i n e s   t h e   s t e p s   t o   f o l l o w   f o r   a d d i n g   a   d i a g r a m   u s i n g   t h e   E x t e r n a l   T o o l   m e t h o d .   F i r s t ,   u s e   y o u r   e x t e r n a l   t o o l   t o   c r e a t e   t h e   d i a g r a m   a n d   s a v e   i t   a s   a n   . s v g   o r   . p n g   i m a g e   f i l e .   A f t e r   t h a t ,   u s e   t h e   s a m e   s t e p s   a s   t h e   M e r m a i d + S V G   m e t h o d   f o r   a d d i n g   . s v g   i m a g e   f i l e s .   F i g u r e   5 .   E x t e r n a l   T o o l   m e t h o d   s t e p s   T h e   f o l l o w i n g   l i s t s   t h e   s t e p s   y o u   s h o u l d   f o l l o w   f o r   a d d i n g   a   d i a g r a m   u s i n g   t h e   E x t e r n a l   T o o l   m e t h o d :   U s e   y o u r   e x t e r n a l   t o o l   t o   c r e a t e   a   d i a g r a m . S a v e   t h e   d i a g r a m   c o o r d i n a t e s   f o r   c o n t r i b u t o r   a c c e s s .   F o r   e x a m p l e ,   y o u r   t o o l   m a y   o f f e r   a   l i n k   t o   t h e   d i a g r a m   i m a g e ,   o r   y o u   c o u l d   p l a c e   t h e   s o u r c e   c o d e   f i l e ,   s u c h   a s   a n   . x m l   f i l e ,   i n   a   p u b l i c   r e p o s i t o r y   f o r   l a t e r   c o n t r i b u t o r   a c c e s s . G e n e r a t e   a n d   s a v e   t h e   d i a g r a m   a s   a n   . s v g   o r   . p n g   i m a g e   f i l e .   D o w n l o a d   t h i s   f i l e   t o   t h e   a p p r o p r i a t e   . . / i m a g e s /   f o l d e r . U s e   t h e   { { <   f i g u r e   > } }   s h o r t c o d e   t o   r e f e r e n c e   t h e   d i a g r a m   i n   t h e   . m d   f i l e . A d d   a   c a p t i o n   u s i n g   t h e   { { <   f i g u r e   > } }   s h o r t c o d e ' s   c a p t i o n   p a r a m e t e r .   H e r e   i s   t h e   { { <   f i g u r e   > } }   s h o r t c o d e   f o r   t h e   i m a g e s / a p p l


Question: What is Examples?

Answer: T h i s   s e c t i o n   s h o w s   s e v e r a l   e x a m p l e s   o f   M e r m a i d   d i a g r a m s .


Question: What is Example 1 - Pod topology spread constraints?

Answer: F i g u r e   6   s h o w s   t h e   d i a g r a m   a p p e a r i n g   i n   t h e   P o d   t o p o l o g y   s p r e a d   c o n s t r a i n t s   p a g e .   F i g u r e   6 .   P o d   T o p o l o g y   S p r e a d   C o n s t r a i n t s .   C o d e   b l o c k :   g r a p h   T B   s u b g r a p h   " z o n e B "   n 3 ( N o d e 3 )   n 4 ( N o d e 4 )   e n d   s u b g r a p h   " z o n e A "   n 1 ( N o d e 1 )   n 2 ( N o d e 2 )   e n d   c l a s s D e f   p l a i n   f i l l : # d d d , s t r o k e : # f f f , s t r o k e - w i d t h : 4 p x , c o l o r : # 0 0 0 ;   c l a s s D e f   k 8 s   f i l l : # 3 2 6 c e 5 , s t r o k e : # f f f , s t r o k e - w i d t h : 4 p x , c o l o r : # f f f ;   c l a s s D e f   c l u s t e r   f i l l : # f f f , s t r o k e : # b b b , s t r o k e - w i d t h : 2 p x , c o l o r : # 3 2 6 c e 5 ;   c l a s s   n 1 , n 2 , n 3 , n 4   k 8 s ;   c l a s s   z o n e A , z o n e B   c l u s t e r ;


Question: What is Example 2 - Ingress?

Answer: F i g u r e   7   s h o w s   t h e   d i a g r a m   a p p e a r i n g   i n   t h e   W h a t   i s   I n g r e s s   p a g e .   g r a p h   L R ;   c l i e n t ( [ c l i e n t ] ) - .   I n g r e s s - m a n a g e d l o a d   b a l a n c e r   . - > i n g r e s s [ I n g r e s s ] ;   i n g r e s s - - > | r o u t i n g   r u l e | s e r v i c e [ S e r v i c e ] ;   s u b g r a p h   c l u s t e r   i n g r e s s ;   s e r v i c e - - > p o d 1 [ P o d ] ;   s e r v i c e - - > p o d 2 [ P o d ] ;   e n d   c l a s s D e f   p l a i n   f i l l : # d d d , s t r o k e : # f f f , s t r o k e - w i d t h : 4 p x , c o l o r : # 0 0 0 ;   c l a s s D e f   k 8 s   f i l l : # 3 2 6 c e 5 , s t r o k e : # f f f , s t r o k e - w i d t h : 4 p x , c o l o r : # f f f ;   c l a s s D e f   c l u s t e r   f i l l : # f f f , s t r o k e : # b b b , s t r o k e - w i d t h : 2 p x , c o l o r : # 3 2 6 c e 5 ;   c l a s s   i n g r e s s , s e r v i c e , p o d 1 , p o d 2   k 8 s ;   c l a s s   c l i e n t   p l a i n ;   c l a s s   c l u s t e r   c l u s t e r ;   c l i c k   c l i e n t   " h t t p s : / / m e r m a i d - j s . g i t h u b . i o / m e r m a i d - l i v e - e d i t o r / e d i t / # e y J j b 2 R l I j o i Z 3 J h c G g g I E x S X G 4 g I G N s a W V u d C h b Y 2 x p Z W 5 0 X S k t L i B J b m d y Z X N z L W 1 h b m F n Z W Q g P G J y P i B s b 2 F k I G J h b G F u Y 2 V y I C 4 t P m l u Z 3 J l c 3 N b S W 5 n c m V z c 1 0 7 X G 4 g I G l u Z 3 J l c 3 M t L T 5 8 c m 9 1 d G l u Z y B y d W x l f H N l c n Z p Y 2 V b U 2 V y d m l j Z V 0 7 X G 4 g I H N 1 Y m d y Y X B o I G N s d X N 0 Z X J c b i A g a W 5 n c m V z c z t c b i A g c 2 V y d m l j Z S 0 t P n B v Z D F b U G 9 k X T t c b i A g c 2 V y d m l j Z S 0 t P n B v Z D J b U G 9 k X T t c b i A g Z W 5 k X G 4 g I G N s Y X N z R G V m I H B s Y W l u I G Z p b G w 6 I 2 R k Z C x z d H J v a 2 U 6 I 2 Z m Z i x z d H J v a 2 U t d 2 l k d G g 6 N H B 4 L G N v b G 9 y


Question: What is Example 3 - K8s system flow?

Answer: F i g u r e   8   d e p i c t s   a   M e r m a i d   s e q u e n c e   d i a g r a m   s h o w i n g   t h e   s y s t e m   f l o w   b e t w e e n   K 8 s   c o m p o n e n t s   t o   s t a r t   a   c o n t a i n e r .   F i g u r e   8 .   K 8 s   s y s t e m   f l o w   d i a g r a m   C o d e   b l o c k :   % % { i n i t : { " t h e m e " : " n e u t r a l " } } % %   s e q u e n c e D i a g r a m   a c t o r   m e   p a r t i c i p a n t   a p i S r v   a s   c o n t r o l   p l a n e < b r > < b r > a p i - s e r v e r   p a r t i c i p a n t   e t c d   a s   c o n t r o l   p l a n e < b r > < b r > e t c d   d a t a s t o r e   p a r t i c i p a n t   c n t r l M g r   a s   c o n t r o l   p l a n e < b r > < b r > c o n t r o l l e r < b r > m a n a g e r   p a r t i c i p a n t   s c h e d   a s   c o n t r o l   p l a n e < b r > < b r > s c h e d u l e r   p a r t i c i p a n t   k u b e l e t   a s   n o d e < b r > < b r > k u b e l e t   p a r t i c i p a n t   c o n t a i n e r   a s   n o d e < b r > < b r > c o n t a i n e r < b r > r u n t i m e   m e - > > a p i S r v :   1 .   k u b e c t l   c r e a t e   - f   p o d . y a m l   a p i S r v - - > > e t c d :   2 .   s a v e   n e w   s t a t e   c n t r l M g r - > > a p i S r v :   3 .   c h e c k   f o r   c h a n g e s   s c h e d - > > a p i S r v :   4 .   w a t c h   f o r   u n a s s i g n e d   p o d s ( s )   a p i S r v - > > s c h e d :   5 .   n o t i f y   a b o u t   p o d   w   n o d e n a m e = "   "   s c h e d - > > a p i S r v :   6 .   a s s i g n   p o d   t o   n o d e   a p i S r v - - > > e t c d :   7 .   s a v e   n e w   s t a t e   k u b e l e t - > > a p i S r v :   8 .   l o o k   f o r   n e w l y   a s s i g n e d   p o d ( s )   a p i S r v - > > k u b e l e t :   9 .   b i n d   p o d   t o   n o d e   k u b e l e t - > > c o n t a i n e r :   1 0 .   s t a r t   c o n t a i n e r   k u b e l e t - > > a p i S r v :   1 1 .   u p d a t e   p o d   s t a


Question: What is How to style diagrams?

Answer: Y o u   c a n   s t y l e   o n e   o r   m o r e   d i a g r a m   e l e m e n t s   u s i n g   w e l l - k n o w n   C S S   n o m e n c l a t u r e .   Y o u   a c c o m p l i s h   t h i s   u s i n g   t w o   t y p e s   o f   s t a t e m e n t s   i n   t h e   M e r m a i d   c o d e .   c l a s s D e f   d e f i n e s   a   c l a s s   o f   s t y l e   a t t r i b u t e s . c l a s s   d e f i n e s   o n e   o r   m o r e   e l e m e n t s   t o   a p p l y   t h e   c l a s s   t o .   I n   t h e   c o d e   f o r   f i g u r e   7 ,   y o u   c a n   s e e   e x a m p l e s   o f   b o t h .   c l a s s D e f   k 8 s   f i l l : # 3 2 6 c e 5 , s t r o k e : # f f f , s t r o k e - w i d t h : 4 p x , c o l o r : # f f f ;   / /   d e f i n e s   s t y l e   f o r   t h e   k 8 s   c l a s s   c l a s s   i n g r e s s , s e r v i c e , p o d 1 , p o d 2   k 8 s ;   / /   k 8 s   c l a s s   i s   a p p l i e d   t o   e l e m e n t s   i n g r e s s ,   s e r v i c e ,   p o d 1   a n d   p o d 2 .   Y o u   c a n   i n c l u d e   o n e   o r   m u l t i p l e   c l a s s D e f   a n d   c l a s s   s t a t e m e n t s   i n   y o u r   d i a g r a m .   Y o u   c a n   a l s o   u s e   t h e   o f f i c i a l   K 8 s   # 3 2 6 c e 5   h e x   c o l o r   c o d e   f o r   K 8 s   c o m p o n e n t s   i n   y o u r   d i a g r a m .   F o r   m o r e   i n f o r m a t i o n   o n   s t y l i n g   a n d   c l a s s e s ,   s e e   M e r m a i d   S t y l i n g   a n d   c l a s s e s   d o c s .


Question: What is How to use captions?

Answer: A   c a p t i o n   i s   a   b r i e f   d e s c r i p t i o n   o f   a   d i a g r a m .   A   t i t l e   o r   a   s h o r t   d e s c r i p t i o n   o f   t h e   d i a g r a m   a r e   e x a m p l e s   o f   c a p t i o n s .   C a p t i o n s   a r e n ' t   m e a n t   t o   r e p l a c e   e x p l a n a t o r y   t e x t   y o u   h a v e   i n   y o u r   d o c u m e n t a t i o n .   R a t h e r ,   t h e y   s e r v e   a s   a   " c o n t e x t   l i n k "   b e t w e e n   t h a t   t e x t   a n d   y o u r   d i a g r a m .   T h e   c o m b i n a t i o n   o f   s o m e   t e x t   a n d   a   d i a g r a m   t i e d   t o g e t h e r   w i t h   a   c a p t i o n   h e l p   p r o v i d e   a   c o n c i s e   r e p r e s e n t a t i o n   o f   t h e   i n f o r m a t i o n   y o u   w i s h   t o   c o n v e y   t o   t h e   u s e r .   W i t h o u t   c a p t i o n s ,   y o u   a r e   a s k i n g   t h e   u s e r   t o   s c a n   t h e   t e x t   a b o v e   o r   b e l o w   t h e   d i a g r a m   t o   f i g u r e   o u t   a   m e a n i n g .   T h i s   c a n   b e   f r u s t r a t i n g   f o r   t h e   u s e r .   F i g u r e   9   l a y s   o u t   t h e   t h r e e   c o m p o n e n t s   f o r   p r o p e r   c a p t i o n i n g :   d i a g r a m ,   d i a g r a m   c a p t i o n   a n d   t h e   d i a g r a m   r e f e r r a l .   f l o w c h a r t   A [ D i a g r a m I n l i n e   M e r m a i d   o r S V G   i m a g e   f i l e s ]   B [ D i a g r a m   C a p t i o n A d d   F i g u r e   N u m b e r .   a n d C a p t i o n   T e x t ]   C [ D i a g r a m   R e f e r r a l R e f e r e n c e   F i g u r e   N u m b e r i n   t e x t ]   c l a s s D e f   b o x   f i l l : # f f f , s t r o k e : # 0 0 0 , s t r o k e - w i d t h : 1 p x , c o l o r : # 0 0 0 ;   c l a s s   A , B , C   b o x   c l i c k   A   " h t t p s : / / m e r m a i d - j s . g i t h u b . i o / m e r m a i d - l i v e - e d i t o r / e d i t # e y


Question: What is Note:?

Answer: D i a g r a m   T h e   M e r m a i d + S V G   a n d   E x t e r n a l   T o o l   m e t h o d s   g e n e r a t e   . s v g   i m a g e   f i l e s .   H e r e   i s   t h e   { { <   f i g u r e   > } }   s h o r t c o d e   f o r   t h e   d i a g r a m   d e f i n e d   i n   a n   . s v g   i m a g e   f i l e   s a v e d   t o   / i m a g e s / d o c s / c o m p o n e n t s - o f - k u b e r n e t e s . s v g :   { { <   f i g u r e   s r c = " / i m a g e s / d o c s / c o m p o n e n t s - o f - k u b e r n e t e s . s v g "   a l t = " K u b e r n e t e s   p o d   r u n n i n g   i n s i d e   a   c l u s t e r "   c l a s s = " d i a g r a m - l a r g e "   c a p t i o n = " F i g u r e   4 .   K u b e r n e t e s   A r c h i t e c t u r e   C o m p o n e n t s "   > } }   Y o u   s h o u l d   p a s s   t h e   s r c ,   a l t ,   c l a s s   a n d   c a p t i o n   v a l u e s   i n t o   t h e   { { <   f i g u r e   > } }   s h o r t c o d e .   Y o u   c a n   a d j u s t   t h e   s i z e   o f   t h e   d i a g r a m   u s i n g   d i a g r a m - l a r g e ,   d i a g r a m - m e d i u m   a n d   d i a g r a m - s m a l l   c l a s s e s .


Question: What is Note:?

Answer: S e e   M e t h o d s   f o r   c r e a t i n g   d i a g r a m s   f o r   m o r e   i n f o r m a t i o n   o n   t h e   d i f f e r e n t   m e t h o d s   f o r   c r e a t i n g   d i a g r a m s .   D i a g r a m   C a p t i o n   N e x t ,   a d d   a   d i a g r a m   c a p t i o n .   I f   y o u   d e f i n e   y o u r   d i a g r a m   i n   a n   . s v g   i m a g e   f i l e ,   t h e n   y o u   s h o u l d   u s e   t h e   { { <   f i g u r e   > } }   s h o r t c o d e ' s   c a p t i o n   p a r a m e t e r .   { { <   f i g u r e   s r c = " / i m a g e s / d o c s / c o m p o n e n t s - o f - k u b e r n e t e s . s v g "   a l t = " K u b e r n e t e s   p o d   r u n n i n g   i n s i d e   a   c l u s t e r "   c l a s s = " d i a g r a m - l a r g e "   c a p t i o n = " F i g u r e   4 .   K u b e r n e t e s   A r c h i t e c t u r e   C o m p o n e n t s "   > } }   I f   y o u   d e f i n e   y o u r   d i a g r a m   u s i n g   i n l i n e   M e r m a i d   c o d e ,   t h e n   y o u   s h o u l d   u s e   M a r k d o w n   t e x t .   F i g u r e   4 .   K u b e r n e t e s   A r c h i t e c t u r e   C o m p o n e n t s   T h e   f o l l o w i n g   l i s t s   s e v e r a l   i t e m s   t o   c o n s i d e r   w h e n   a d d i n g   d i a g r a m   c a p t i o n s :   U s e   t h e   { { <   f i g u r e   > } }   s h o r t c o d e   t o   a d d   a   d i a g r a m   c a p t i o n   f o r   M e r m a i d + S V G   a n d   E x t e r n a l   T o o l   d i a g r a m s . U s e   s i m p l e   M a r k d o w n   t e x t   t o   a d d   a   d i a g r a m   c a p t i o n   f o r   t h e   I n l i n e   m e t h o d . P r e p e n d   y o u r   d i a g r a m   c a p t i o n   w i t h   F i g u r e   N U M B E R . .   Y o u   m u s t   u s e   F i g u r e   a n d   t h e   n u m b e r   m u s t   b e   u n i q u e   f o r   e a c h   d i a g r a m   i n   y o u r   d o c u m e n t a t i o n   p a g e .   A d d   a   p e r i o d   a f t e r


Question: What is Tips?

Answer: A l w a y s   u s e   t h e   l i v e   e d i t o r   t o   c r e a t e / e d i t   y o u r   d i a g r a m . A l w a y s   u s e   H u g o   l o c a l   a n d   N e t l i f y   p r e v i e w s   t o   c h e c k   o u t   h o w   t h e   d i a g r a m   a p p e a r s   i n   t h e   d o c u m e n t a t i o n . I n c l u d e   d i a g r a m   s o u r c e   p o i n t e r s   s u c h   a s   a   U R L ,   s o u r c e   c o d e   l o c a t i o n ,   o r   i n d i c a t e   t h e   c o d e   i s   s e l f - d o c u m e n t i n g . A l w a y s   u s e   d i a g r a m   c a p t i o n s . V e r y   h e l p f u l   t o   i n c l u d e   t h e   d i a g r a m   . s v g   o r   . p n g   i m a g e   a n d / o r   M e r m a i d   s o u r c e   c o d e   i n   i s s u e s   a n d   P R s . W i t h   t h e   M e r m a i d + S V G   a n d   E x t e r n a l   T o o l   m e t h o d s ,   u s e   . s v g   i m a g e   f i l e s   b e c a u s e   t h e y   s t a y   s h a r p   w h e n   y o u   z o o m   i n   o n   t h e   d i a g r a m . B e s t   p r a c t i c e   f o r   . s v g   f i l e s   i s   t o   l o a d   i t   i n t o   a n   S V G   e d i t i n g   t o o l   a n d   u s e   t h e   " C o n v e r t   t e x t   t o   p a t h s "   f u n c t i o n .   T h i s   e n s u r e s   t h a t   t h e   d i a g r a m   r e n d e r s   t h e   s a m e   o n   a l l   s y s t e m s ,   r e g a r d l e s s   o f   f o n t   a v a i l a b i l i t y   a n d   f o n t   r e n d e r i n g   s u p p o r t . N o   M e r m a i d   s u p p o r t   f o r   a d d i t i o n a l   i c o n s   o r   a r t w o r k . H u g o   M e r m a i d   s h o r t c o d e s   d o n ' t   w o r k   i n   t h e   l i v e   e d i t o r . A n y   t i m e   y o u   m o d i f y   a   d i a g r a m   i n   t h e   l i v e   e d i t o r ,   y o u   m u s t   s a v e   i t   t o   g e n e r a t e   a   n e w   U R L   f o r   t h e   d i a g r a m . C l i c k   o n   t h e   d i a g r a m s   i n   t h i s   s e c t i


Question: What is kubectl config?

Answer: kubectl configSynopsisModify kubeconfig files using subcommands like "kubectl config set current-context my-context".The loading order follows these rules:If the --kubeconfig flag is set, then only that file is loaded. The flag may only be set once and no merging takes place.If $KUBECONFIG environment variable is set, then it is used as a list of paths (normal path delimiting rules for your system). These paths are merged. When a value is modified, it is modified in the file that defines the stanza. When a value is created, it is created in the first file that exists. If no files in the chain exist, then it creates the last file in the list.Otherwise, ${HOME}/.kube/config is used and no merging takes place.kubectl config SUBCOMMAND Options-h, --helphelp for config--kubeconfig stringuse a particular kubeconfig fileParent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default: "profile.pprof"Name of the file to write the profile to--request-timeout string Default: "0"The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.-s, --server stringThe address and port of the Kubernetes API server--storage-driver-buffer-duration duration Default: 1m0sWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction--storage-driver-db string Default: "cadvisor"database name--storage-driver-host string Default: "localhost:8086"database host:port--storage-driver-password string Default: "root"database


Question: How does kubectl config work?

Answer: kubectl configSynopsisModify kubeconfig files using subcommands like "kubectl config set current-context my-context".The loading order follows these rules:If the --kubeconfig flag is set, then only that file is loaded. The flag may only be set once and no merging takes place.If $KUBECONFIG environment variable is set, then it is used as a list of paths (normal path delimiting rules for your system). These paths are merged. When a value is modified, it is modified in the file that defines the stanza. When a value is created, it is created in the first file that exists. If no files in the chain exist, then it creates the last file in the list.Otherwise, ${HOME}/.kube/config is used and no merging takes place.kubectl config SUBCOMMAND Options-h, --helphelp for config--kubeconfig stringuse a particular kubeconfig fileParent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default: "profile.pprof"Name of the file to write the profile to--request-timeout string Default: "0"The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.-s, --server stringThe address and port of the Kubernetes API server--storage-driver-buffer-duration duration Default: 1m0sWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction--storage-driver-db string Default: "cadvisor"database name--storage-driver-host string Default: "localhost:8086"database host:port--storage-driver-password string Default: "root"database


Question: When would you use kubectl config?

Answer: kubectl configSynopsisModify kubeconfig files using subcommands like "kubectl config set current-context my-context".The loading order follows these rules:If the --kubeconfig flag is set, then only that file is loaded. The flag may only be set once and no merging takes place.If $KUBECONFIG environment variable is set, then it is used as a list of paths (normal path delimiting rules for your system). These paths are merged. When a value is modified, it is modified in the file that defines the stanza. When a value is created, it is created in the first file that exists. If no files in the chain exist, then it creates the last file in the list.Otherwise, ${HOME}/.kube/config is used and no merging takes place.kubectl config SUBCOMMAND Options-h, --helphelp for config--kubeconfig stringuse a particular kubeconfig fileParent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default: "profile.pprof"Name of the file to write the profile to--request-timeout string Default: "0"The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.-s, --server stringThe address and port of the Kubernetes API server--storage-driver-buffer-duration duration Default: 1m0sWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction--storage-driver-db string Default: "cadvisor"database name--storage-driver-host string Default: "localhost:8086"database host:port--storage-driver-password string Default: "root"database


Question: What are the benefits of kubectl config?

Answer: kubectl configSynopsisModify kubeconfig files using subcommands like "kubectl config set current-context my-context".The loading order follows these rules:If the --kubeconfig flag is set, then only that file is loaded. The flag may only be set once and no merging takes place.If $KUBECONFIG environment variable is set, then it is used as a list of paths (normal path delimiting rules for your system). These paths are merged. When a value is modified, it is modified in the file that defines the stanza. When a value is created, it is created in the first file that exists. If no files in the chain exist, then it creates the last file in the list.Otherwise, ${HOME}/.kube/config is used and no merging takes place.kubectl config SUBCOMMAND Options-h, --helphelp for config--kubeconfig stringuse a particular kubeconfig fileParent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default: "profile.pprof"Name of the file to write the profile to--request-timeout string Default: "0"The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.-s, --server stringThe address and port of the Kubernetes API server--storage-driver-buffer-duration duration Default: 1m0sWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction--storage-driver-db string Default: "cadvisor"database name--storage-driver-host string Default: "localhost:8086"database host:port--storage-driver-password string Default: "root"database


Question: What is Synopsis?

Answer: M o d i f y   k u b e c o n f i g   f i l e s   u s i n g   s u b c o m m a n d s   l i k e   " k u b e c t l   c o n f i g   s e t   c u r r e n t - c o n t e x t   m y - c o n t e x t " .   T h e   l o a d i n g   o r d e r   f o l l o w s   t h e s e   r u l e s :   I f   t h e   - - k u b e c o n f i g   f l a g   i s   s e t ,   t h e n   o n l y   t h a t   f i l e   i s   l o a d e d .   T h e   f l a g   m a y   o n l y   b e   s e t   o n c e   a n d   n o   m e r g i n g   t a k e s   p l a c e . I f   $ K U B E C O N F I G   e n v i r o n m e n t   v a r i a b l e   i s   s e t ,   t h e n   i t   i s   u s e d   a s   a   l i s t   o f   p a t h s   ( n o r m a l   p a t h   d e l i m i t i n g   r u l e s   f o r   y o u r   s y s t e m ) .   T h e s e   p a t h s   a r e   m e r g e d .   W h e n   a   v a l u e   i s   m o d i f i e d ,   i t   i s   m o d i f i e d   i n   t h e   f i l e   t h a t   d e f i n e s   t h e   s t a n z a .   W h e n   a   v a l u e   i s   c r e a t e d ,   i t   i s   c r e a t e d   i n   t h e   f i r s t   f i l e   t h a t   e x i s t s .   I f   n o   f i l e s   i n   t h e   c h a i n   e x i s t ,   t h e n   i t   c r e a t e s   t h e   l a s t   f i l e   i n   t h e   l i s t . O t h e r w i s e ,   $ { H O M E } / . k u b e / c o n f i g   i s   u s e d   a n d   n o   m e r g i n g   t a k e s   p l a c e .   k u b e c t l   c o n f i g   S U B C O M M A N D


Question: What is Options?

Answer: h e l p   f o r   c o n f i g   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


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   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 r   N a m e   o f   p r o f i l e   t o   c a p t u r e .   O n e


Question: What is See Also?

Answer: k u b e c t l   -   k u b e c t l   c o n t r o l s   t h e   K u b e r n e t e s   c l u s t e r   m a n a g e r k u b e c t l   c o n f i g   c u r r e n t - c o n t e x t   -   D i s p l a y   t h e   c u r r e n t - c o n t e x t k u b e c t l   c o n f i g   d e l e t e - c l u s t e r   -   D e l e t e   t h e   s p e c i f i e d   c l u s t e r   f r o m   t h e   k u b e c o n f i g k u b e c t l   c o n f i g   d e l e t e - c o n t e x t   -   D e l e t e   t h e   s p e c i f i e d   c o n t e x t   f r o m   t h e   k u b e c o n f i g k u b e c t l   c o n f i g   d e l e t e - u s e r   -   D e l e t e   t h e   s p e c i f i e d   u s e r   f r o m   t h e   k u b e c o n f i g k u b e c t l   c o n f i g   g e t - c l u s t e r s   -   D i s p l a y   c l u s t e r s   d e f i n e d   i n   t h e   k u b e c o n f i g k u b e c t l   c o n f i g   g e t - c o n t e x t s   -   D e s c r i b e   o n e   o r   m a n y   c o n t e x t s k u b e c t l   c o n f i g   g e t - u s e r s   -   D i s p l a y   u s e r s   d e f i n e d   i n   t h e   k u b e c o n f i g k u b e c t l   c o n f i g   r e n a m e - c o n t e x t   -   R e n a m e   a   c o n t e x t   f r o m   t h e   k u b e c o n f i g   f i l e k u b e c t l   c o n f i g   s e t   -   S e t   a n   i n d i v i d u a l   v a l u e   i n   a   k u b e c o n f i g   f i l e k u b e c t l   c o n f i g   s e t - c l u s t e r   -   S e t   a   c l u s t e r   e n t r y   i n   k u b e c o n f i g k u b e c t l   c o n f i g   s e t - c o n t e x t   -   S e t   a   c o n t e x t   e n t r y   i n   k u b e c o n f i g k u b e c t l   c o n f i g   s e t - c r e d e n t i a l s   -   S e t   a   u s e r   e n t r y   i n   k u b e c o n f i g k u b e c t l   c o n f i g   u n s e t   -   U n s e t   a n   i n d i v i d u a l   v a l u e   i n   a   k u b e c o n f i g   f i l e k u b e c t l   c o n f i g   u s e - c o n t e x t   -   S e t   t h e   c u r r e n t - c o n t e x t   i n   a