Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

Answer: P O S T   / a p i s / r b a c . a u t h o r i z a t i o n . k 8 s . i o / v 1 / n a m e s p a c e s / { n a m e s p a c e } / r o l e s


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

Answer: P U T   / a p i s / r b a c . a u t h o r i z a t i o n . k 8 s . i o / v 1 / n a m e s p a c e s / { n a m e s p a c e } / r o l e s / { n a m e }


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

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


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

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


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

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


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is Debug Running Pods?

Answer: Debug Running PodsThis page explains how to debug Pods running (or crashing) on a Node.Before you beginYour Pod should already be scheduled and running. If your Pod is not yet running, start with Debugging Pods.For some of the advanced debugging steps you need to know on which Node the Pod is running and have shell access to run commands on that Node. You don't need that access to run the standard debug steps that use kubectl.Using kubectl describe pod to fetch details about podsFor this example we'll use a Deployment to create two pods, similar to the earlier example.application/nginx-with-request.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 80 Create deployment by running following command:kubectl apply -f https://k8s.io/examples/application/nginx-with-request.yaml deployment.apps/nginx-deployment created Check pod status by following command:kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-67d4bdd6f5-cx2nz 1/1 Running 0 13s nginx-deployment-67d4bdd6f5-w6kd7 1/1 Running 0 13s We can retrieve a lot more information about each of these pods using kubectl describe pod. For example:kubectl describe pod nginx-deployment-67d4bdd6f5-w6kd7 Name: nginx-deployment-67d4bdd6f5-w6kd7 Namespace: default Priority: 0 Node: kube-worker-1/192.168.0.113 Start Time: Thu, 17 Feb 2022 16:51:01 -0500 Labels: app=nginx pod-template-hash=67d4bdd6f5 Annotations: <none> Status: Running IP: 10.88.0.3 IPs: IP: 10.88.0.3 IP: 2001:db8::1 Controlled By: ReplicaSet/nginx-deployment-67d4bdd6f5 Containers: nginx: Container ID: containerd://5403af59a2b46ee5a23fb0ae4b1e077f7ca5c5fb7af16e1ab21c00e0e616462a Image: nginx Image ID: docker.io/library/nginx@sha256:2834dc507516af02784808c5f48b7cbe38b8ed5d0f4837f16e78d00deb7e7767 Port: 80/TCP Host Port: 0/TCP State: Running Started: Thu, 17 Feb 2022 16:51:05 -0500 Ready: True Restart Count: 0 Limits: cpu: 500m memory: 128Mi Requests: cpu: 500m memory: 128Mi Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-bgsgp (ro) Conditions: Type Status Initialized True Ready True ContainersReady True PodScheduled True Volumes: kube-api-access-bgsgp: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional: <nil> DownwardAPI: true QoS Class: Guaranteed Node-Selectors: <none> Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 34s default-scheduler Successfully assigned default/nginx-deployment-67d4bdd6f5-w6kd7 to kube-worker-1 Normal Pulling 31s kubelet Pulling image "nginx" Normal Pulled 30s kubelet S


Question: How does Debug Running Pods work?

Answer: Debug Running PodsThis page explains how to debug Pods running (or crashing) on a Node.Before you beginYour Pod should already be scheduled and running. If your Pod is not yet running, start with Debugging Pods.For some of the advanced debugging steps you need to know on which Node the Pod is running and have shell access to run commands on that Node. You don't need that access to run the standard debug steps that use kubectl.Using kubectl describe pod to fetch details about podsFor this example we'll use a Deployment to create two pods, similar to the earlier example.application/nginx-with-request.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 80 Create deployment by running following command:kubectl apply -f https://k8s.io/examples/application/nginx-with-request.yaml deployment.apps/nginx-deployment created Check pod status by following command:kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-67d4bdd6f5-cx2nz 1/1 Running 0 13s nginx-deployment-67d4bdd6f5-w6kd7 1/1 Running 0 13s We can retrieve a lot more information about each of these pods using kubectl describe pod. For example:kubectl describe pod nginx-deployment-67d4bdd6f5-w6kd7 Name: nginx-deployment-67d4bdd6f5-w6kd7 Namespace: default Priority: 0 Node: kube-worker-1/192.168.0.113 Start Time: Thu, 17 Feb 2022 16:51:01 -0500 Labels: app=nginx pod-template-hash=67d4bdd6f5 Annotations: <none> Status: Running IP: 10.88.0.3 IPs: IP: 10.88.0.3 IP: 2001:db8::1 Controlled By: ReplicaSet/nginx-deployment-67d4bdd6f5 Containers: nginx: Container ID: containerd://5403af59a2b46ee5a23fb0ae4b1e077f7ca5c5fb7af16e1ab21c00e0e616462a Image: nginx Image ID: docker.io/library/nginx@sha256:2834dc507516af02784808c5f48b7cbe38b8ed5d0f4837f16e78d00deb7e7767 Port: 80/TCP Host Port: 0/TCP State: Running Started: Thu, 17 Feb 2022 16:51:05 -0500 Ready: True Restart Count: 0 Limits: cpu: 500m memory: 128Mi Requests: cpu: 500m memory: 128Mi Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-bgsgp (ro) Conditions: Type Status Initialized True Ready True ContainersReady True PodScheduled True Volumes: kube-api-access-bgsgp: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional: <nil> DownwardAPI: true QoS Class: Guaranteed Node-Selectors: <none> Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 34s default-scheduler Successfully assigned default/nginx-deployment-67d4bdd6f5-w6kd7 to kube-worker-1 Normal Pulling 31s kubelet Pulling image "nginx" Normal Pulled 30s kubelet S


Question: When would you use Debug Running Pods?

Answer: Debug Running PodsThis page explains how to debug Pods running (or crashing) on a Node.Before you beginYour Pod should already be scheduled and running. If your Pod is not yet running, start with Debugging Pods.For some of the advanced debugging steps you need to know on which Node the Pod is running and have shell access to run commands on that Node. You don't need that access to run the standard debug steps that use kubectl.Using kubectl describe pod to fetch details about podsFor this example we'll use a Deployment to create two pods, similar to the earlier example.application/nginx-with-request.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 80 Create deployment by running following command:kubectl apply -f https://k8s.io/examples/application/nginx-with-request.yaml deployment.apps/nginx-deployment created Check pod status by following command:kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-67d4bdd6f5-cx2nz 1/1 Running 0 13s nginx-deployment-67d4bdd6f5-w6kd7 1/1 Running 0 13s We can retrieve a lot more information about each of these pods using kubectl describe pod. For example:kubectl describe pod nginx-deployment-67d4bdd6f5-w6kd7 Name: nginx-deployment-67d4bdd6f5-w6kd7 Namespace: default Priority: 0 Node: kube-worker-1/192.168.0.113 Start Time: Thu, 17 Feb 2022 16:51:01 -0500 Labels: app=nginx pod-template-hash=67d4bdd6f5 Annotations: <none> Status: Running IP: 10.88.0.3 IPs: IP: 10.88.0.3 IP: 2001:db8::1 Controlled By: ReplicaSet/nginx-deployment-67d4bdd6f5 Containers: nginx: Container ID: containerd://5403af59a2b46ee5a23fb0ae4b1e077f7ca5c5fb7af16e1ab21c00e0e616462a Image: nginx Image ID: docker.io/library/nginx@sha256:2834dc507516af02784808c5f48b7cbe38b8ed5d0f4837f16e78d00deb7e7767 Port: 80/TCP Host Port: 0/TCP State: Running Started: Thu, 17 Feb 2022 16:51:05 -0500 Ready: True Restart Count: 0 Limits: cpu: 500m memory: 128Mi Requests: cpu: 500m memory: 128Mi Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-bgsgp (ro) Conditions: Type Status Initialized True Ready True ContainersReady True PodScheduled True Volumes: kube-api-access-bgsgp: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional: <nil> DownwardAPI: true QoS Class: Guaranteed Node-Selectors: <none> Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 34s default-scheduler Successfully assigned default/nginx-deployment-67d4bdd6f5-w6kd7 to kube-worker-1 Normal Pulling 31s kubelet Pulling image "nginx" Normal Pulled 30s kubelet S


Question: What are the benefits of Debug Running Pods?

Answer: Debug Running PodsThis page explains how to debug Pods running (or crashing) on a Node.Before you beginYour Pod should already be scheduled and running. If your Pod is not yet running, start with Debugging Pods.For some of the advanced debugging steps you need to know on which Node the Pod is running and have shell access to run commands on that Node. You don't need that access to run the standard debug steps that use kubectl.Using kubectl describe pod to fetch details about podsFor this example we'll use a Deployment to create two pods, similar to the earlier example.application/nginx-with-request.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 80 Create deployment by running following command:kubectl apply -f https://k8s.io/examples/application/nginx-with-request.yaml deployment.apps/nginx-deployment created Check pod status by following command:kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-67d4bdd6f5-cx2nz 1/1 Running 0 13s nginx-deployment-67d4bdd6f5-w6kd7 1/1 Running 0 13s We can retrieve a lot more information about each of these pods using kubectl describe pod. For example:kubectl describe pod nginx-deployment-67d4bdd6f5-w6kd7 Name: nginx-deployment-67d4bdd6f5-w6kd7 Namespace: default Priority: 0 Node: kube-worker-1/192.168.0.113 Start Time: Thu, 17 Feb 2022 16:51:01 -0500 Labels: app=nginx pod-template-hash=67d4bdd6f5 Annotations: <none> Status: Running IP: 10.88.0.3 IPs: IP: 10.88.0.3 IP: 2001:db8::1 Controlled By: ReplicaSet/nginx-deployment-67d4bdd6f5 Containers: nginx: Container ID: containerd://5403af59a2b46ee5a23fb0ae4b1e077f7ca5c5fb7af16e1ab21c00e0e616462a Image: nginx Image ID: docker.io/library/nginx@sha256:2834dc507516af02784808c5f48b7cbe38b8ed5d0f4837f16e78d00deb7e7767 Port: 80/TCP Host Port: 0/TCP State: Running Started: Thu, 17 Feb 2022 16:51:05 -0500 Ready: True Restart Count: 0 Limits: cpu: 500m memory: 128Mi Requests: cpu: 500m memory: 128Mi Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-bgsgp (ro) Conditions: Type Status Initialized True Ready True ContainersReady True PodScheduled True Volumes: kube-api-access-bgsgp: Type: Projected (a volume that contains injected data from multiple sources) TokenExpirationSeconds: 3607 ConfigMapName: kube-root-ca.crt ConfigMapOptional: <nil> DownwardAPI: true QoS Class: Guaranteed Node-Selectors: <none> Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 34s default-scheduler Successfully assigned default/nginx-deployment-67d4bdd6f5-w6kd7 to kube-worker-1 Normal Pulling 31s kubelet Pulling image "nginx" Normal Pulled 30s kubelet S


Question: What is Debug Running Pods?

Answer: T h i s   p a g e   e x p l a i n s   h o w   t o   d e b u g   P o d s   r u n n i n g   ( o r   c r a s h i n g )   o n   a   N o d e .


Question: What is Before you begin?

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


Question: What is Using kubectl describe pod to fetch details about pods?

Answer: F o r   t h i s   e x a m p l e   w e ' l l   u s e   a   D e p l o y m e n t   t o   c r e a t e   t w o   p o d s ,   s i m i l a r   t o   t h e   e a r l i e r   e x a m p l e .   a p i V e r s i o n :   a p p s / v 1   k i n d :   D e p l o y m e n t   m e t a d a t a :   n a m e :   n g i n x - d e p l o y m e n t   s p e c :   s e l e c t o r :   m a t c h L a b e l s :   a p p :   n g i n x   r e p l i c a s :   2   t e m p l a t e :   m e t a d a t a :   l a b e l s :   a p p :   n g i n x   s p e c :   c o n t a i n e r s :   -   n a m e :   n g i n x   i m a g e :   n g i n x   r e s o u r c e s :   l i m i t s :   m e m o r y :   " 1 2 8 M i "   c p u :   " 5 0 0 m "   p o r t s :   -   c o n t a i n e r P o r t :   8 0   C r e a t e   d e p l o y m e n t   b y   r u n n i n g   f o l l o w i n g   c o m m a n d :   k u b e c t l   a p p l y   - f   h t t p s : / / k 8 s . i o / e x a m p l e s / a p p l i c a t i o n / n g i n x - w i t h - r e q u e s t . y a m l   d e p l o y m e n t . a p p s / n g i n x - d e p l o y m e n t   c r e a t e d   C h e c k   p o d   s t a t u s   b y   f o l l o w i n g   c o m m a n d :   k u b e c t l   g e t   p o d s   N A M E   R E A D Y   S T A T U S   R E S T A R T S   A G E   n g i n x - d e p l o y m e n t - 6 7 d 4 b d d 6 f 5 - c x 2 n z   1 / 1   R u n n i n g   0   1 3 s   n g i n x - d e p l o y m e n t - 6 7 d 4 b d d 6 f 5 - w 6 k d 7   1 / 1   R u n n i n g   0   1 3 s   W e   c a n   r e t r i e v e   a   l o t   m o r e   i n f o r m a t i o n   a b o u t   e a c h   o f   t h e s e   p o d s   u s i n g   k u b e c t l   d e s c r i b e   p o d .   F o r   e x a m p l e :   k u b e c t l   d e s c r i b e   p o d   n g i n x - d e p l o y m e n t - 6 7 d 4 b d d 6 f 5 - w 6 k d 7   N a m e :   n g i n x - d e p l o y m e n t - 6 7 d 4 b d d 6 f 5 - w 6 k d 7   N a m e s p a c e :   d e f a u l t   P r i o r i t y :   0   N o d e :   k u b e - w o r k e r - 1 / 1 9 2 . 1 6 8 . 0 . 1 1 3   S t a r t


Question: What is Example: debugging Pending Pods?

Answer: A   c o m m o n   s c e n a r i o   t h a t   y o u   c a n   d e t e c t   u s i n g   e v e n t s   i s   w h e n   y o u ' v e   c r e a t e d   a   P o d   t h a t   w o n ' t   f i t   o n   a n y   n o d e .   F o r   e x a m p l e ,   t h e   P o d   m i g h t   r e q u e s t   m o r e   r e s o u r c e s   t h a n   a r e   f r e e   o n   a n y   n o d e ,   o r   i t   m i g h t   s p e c i f y   a   l a b e l   s e l e c t o r   t h a t   d o e s n ' t   m a t c h   a n y   n o d e s .   L e t ' s   s a y   w e   c r e a t e d   t h e   p r e v i o u s   D e p l o y m e n t   w i t h   5   r e p l i c a s   ( i n s t e a d   o f   2 )   a n d   r e q u e s t i n g   6 0 0   m i l l i c o r e s   i n s t e a d   o f   5 0 0 ,   o n   a   f o u r - n o d e   c l u s t e r   w h e r e   e a c h   ( v i r t u a l )   m a c h i n e   h a s   1   C P U .   I n   t h a t   c a s e   o n e   o f   t h e   P o d s   w i l l   n o t   b e   a b l e   t o   s c h e d u l e .   ( N o t e   t h a t   b e c a u s e   o f   t h e   c l u s t e r   a d d o n   p o d s   s u c h   a s   f l u e n t d ,   s k y d n s ,   e t c . ,   t h a t   r u n   o n   e a c h   n o d e ,   i f   w e   r e q u e s t e d   1 0 0 0   m i l l i c o r e s   t h e n   n o n e   o f   t h e   P o d s   w o u l d   b e   a b l e   t o   s c h e d u l e . )   k u b e c t l   g e t   p o d s   N A M E   R E A D Y   S T A T U S   R E S T A R T S   A G E   n g i n x - d e p l o y m e n t - 1 0 0 6 2 3 0 8 1 4 - 6 w i n p   1 / 1   R u n n i n g   0   7 m   n g i n x - d e p l o y m e n t - 1 0 0 6 2 3 0 8 1 4 - f m g u 3   1 / 1   R u n n i n g   0   7 m   n g i n x - d e p l o y m e n t - 1 3 7 0 8 0 7 5 8 7 - 6 e k b w   1 / 1   R u n n i n g   0   1 m   n g i n x - d e p l o y m e n t - 1 3 7 0 8 0 7 5 8 7 - f g 1 7 2   0 / 1   P e n d i n g   0   1 m   n g i n x - d e p l o y m e n t - 1 3 7 0 8 0 7 5 8 7 - f z 9 s d   0 / 1   P e n d i n g   0   1 m   T o   f i n d   o u t   w h y   t h e


Question: What is Examining pod logs?

Answer: F i r s t ,   l o o k   a t   t h e   l o g s   o f   t h e   a f f e c t e d   c o n t a i n e r :   k u b e c t l   l o g s   $ { P O D _ N A M E }   $ { C O N T A I N E R _ N A M E }   I f   y o u r   c o n t a i n e r   h a s   p r e v i o u s l y   c r a s h e d ,   y o u   c a n   a c c e s s   t h e   p r e v i o u s   c o n t a i n e r ' s   c r a s h   l o g   w i t h :   k u b e c t l   l o g s   - - p r e v i o u s   $ { P O D _ N A M E }   $ { C O N T A I N E R _ N A M E }


Question: What is Debugging with container exec?

Answer: I f   t h e   c o n t a i n e r   i m a g e   i n c l u d e s   d e b u g g i n g   u t i l i t i e s ,   a s   i s   t h e   c a s e   w i t h   i m a g e s   b u i l t   f r o m   L i n u x   a n d   W i n d o w s   O S   b a s e   i m a g e s ,   y o u   c a n   r u n   c o m m a n d s   i n s i d e   a   s p e c i f i c   c o n t a i n e r   w i t h   k u b e c t l   e x e c :   k u b e c t l   e x e c   $ { P O D _ N A M E }   - c   $ { C O N T A I N E R _ N A M E }   - -   $ { C M D }   $ { A R G 1 }   $ { A R G 2 }   . . .   $ { A R G N }


Question: What is Note:?

Answer: A s   a n   e x a m p l e ,   t o   l o o k   a t   t h e   l o g s   f r o m   a   r u n n i n g   C a s s a n d r a   p o d ,   y o u   m i g h t   r u n   k u b e c t l   e x e c   c a s s a n d r a   - -   c a t   / v a r / l o g / c a s s a n d r a / s y s t e m . l o g   Y o u   c a n   r u n   a   s h e l l   t h a t ' s   c o n n e c t e d   t o   y o u r   t e r m i n a l   u s i n g   t h e   - i   a n d   - t   a r g u m e n t s   t o   k u b e c t l   e x e c ,   f o r   e x a m p l e :   k u b e c t l   e x e c   - i t   c a s s a n d r a   - -   s h   F o r   m o r e   d e t a i l s ,   s e e   G e t   a   S h e l l   t o   a   R u n n i n g   C o n t a i n e r .


Question: What is Debugging with an ephemeral debug container?

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


Question: What is Example debugging using ephemeral containers?

Answer: Y o u   c a n   u s e   t h e   k u b e c t l   d e b u g   c o m m a n d   t o   a d d   e p h e m e r a l   c o n t a i n e r s   t o   a   r u n n i n g   P o d .   F i r s t ,   c r e a t e   a   p o d   f o r   t h e   e x a m p l e :   k u b e c t l   r u n   e p h e m e r a l - d e m o   - - i m a g e = r e g i s t r y . k 8 s . i o / p a u s e : 3 . 1   - - r e s t a r t = N e v e r   T h e   e x a m p l e s   i n   t h i s   s e c t i o n   u s e   t h e   p a u s e   c o n t a i n e r   i m a g e   b e c a u s e   i t   d o e s   n o t   c o n t a i n   d e b u g g i n g   u t i l i t i e s ,   b u t   t h i s   m e t h o d   w o r k s   w i t h   a l l   c o n t a i n e r   i m a g e s .   I f   y o u   a t t e m p t   t o   u s e   k u b e c t l   e x e c   t o   c r e a t e   a   s h e l l   y o u   w i l l   s e e   a n   e r r o r   b e c a u s e   t h e r e   i s   n o   s h e l l   i n   t h i s   c o n t a i n e r   i m a g e .   k u b e c t l   e x e c   - i t   e p h e m e r a l - d e m o   - -   s h   O C I   r u n t i m e   e x e c   f a i l e d :   e x e c   f a i l e d :   c o n t a i n e r _ l i n u x . g o : 3 4 6 :   s t a r t i n g   c o n t a i n e r   p r o c e s s   c a u s e d   " e x e c :   \ " s h \ " :   e x e c u t a b l e   f i l e   n o t   f o u n d   i n   $ P A T H " :   u n k n o w n   Y o u   c a n   i n s t e a d   a d d   a   d e b u g g i n g   c o n t a i n e r   u s i n g   k u b e c t l   d e b u g .   I f   y o u   s p e c i f y   t h e   - i / - - i n t e r a c t i v e   a r g u m e n t ,   k u b e c t l   w i l l   a u t o m a t i c a l l y   a t t a c h   t o   t h e   c o n s o l e   o f   t h e   E p h e m e r a l   C o n t a i n e r .   k u b e c t l   d e b u g   - i t   e p h e m e r a l - d e m o   - - i m a g e = b u s y b o x : 1 . 2 8   - - t a r g e t = e p h e m e r a l - d e m o   D e f a u l t i n g   d e b u g   c o n t a i n e r   n a m e   t o   d e b u g g e r - 8 x z r l .   I f   y o u   d o n


Question: What is Note:?

Answer: Y o u   c a n   v i e w   t h e   s t a t e   o f   t h e   n e w l y   c r e a t e d   e p h e m e r a l   c o n t a i n e r   u s i n g   k u b e c t l   d e s c r i b e :   k u b e c t l   d e s c r i b e   p o d   e p h e m e r a l - d e m o   . . .   E p h e m e r a l   C o n t a i n e r s :   d e b u g g e r - 8 x z r l :   C o n t a i n e r   I D :   d o c k e r : / / b 8 8 8 f 9 a d f d 1 5 b d 5 7 3 9 f e f a a 3 9 e 1 d f 4 d d 3 c 6 1 7 b 9 9 0 2 0 8 2 b 1 c f d c 2 9 c 4 0 2 8 f f b 2 e b   I m a g e :   b u s y b o x   I m a g e   I D :   d o c k e r - p u l l a b l e : / / b u s y b o x @ s h a 2 5 6 : 1 8 2 8 e d d 6 0 c 5 e f d 3 4 b 2 b f 5 d d 3 2 8 2 e c 0 c c 0 4 d 4 7 b 2 f f 9 c a a 0 b 6 d 4 f 0 7 a 2 1 d 1 c 0 8 0 8 4   P o r t :   < n o n e >   H o s t   P o r t :   < n o n e >   S t a t e :   R u n n i n g   S t a r t e d :   W e d ,   1 2   F e b   2 0 2 0   1 4 : 2 5 : 4 2   + 0 1 0 0   R e a d y :   F a l s e   R e s t a r t   C o u n t :   0   E n v i r o n m e n t :   < n o n e >   M o u n t s :   < n o n e >   . . .   U s e   k u b e c t l   d e l e t e   t o   r e m o v e   t h e   P o d   w h e n   y o u ' r e   f i n i s h e d :   k u b e c t l   d e l e t e   p o d   e p h e m e r a l - d e m o


Question: What is Debugging using a copy of the Pod?

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


Question: What is Copying a Pod while adding a new container?

Answer: A d d i n g   a   n e w   c o n t a i n e r   c a n   b e   u s e f u l   w h e n   y o u r   a p p l i c a t i o n   i s   r u n n i n g   b u t   n o t   b e h a v i n g   a s   y o u   e x p e c t   a n d   y o u ' d   l i k e   t o   a d d   a d d i t i o n a l   t r o u b l e s h o o t i n g   u t i l i t i e s   t o   t h e   P o d .   F o r   e x a m p l e ,   m a y b e   y o u r   a p p l i c a t i o n ' s   c o n t a i n e r   i m a g e s   a r e   b u i l t   o n   b u s y b o x   b u t   y o u   n e e d   d e b u g g i n g   u t i l i t i e s   n o t   i n c l u d e d   i n   b u s y b o x .   Y o u   c a n   s i m u l a t e   t h i s   s c e n a r i o   u s i n g   k u b e c t l   r u n :   k u b e c t l   r u n   m y a p p   - - i m a g e = b u s y b o x : 1 . 2 8   - - r e s t a r t = N e v e r   - -   s l e e p   1 d   R u n   t h i s   c o m m a n d   t o   c r e a t e   a   c o p y   o f   m y a p p   n a m e d   m y a p p - d e b u g   t h a t   a d d s   a   n e w   U b u n t u   c o n t a i n e r   f o r   d e b u g g i n g :   k u b e c t l   d e b u g   m y a p p   - i t   - - i m a g e = u b u n t u   - - s h a r e - p r o c e s s e s   - - c o p y - t o = m y a p p - d e b u g   D e f a u l t i n g   d e b u g   c o n t a i n e r   n a m e   t o   d e b u g g e r - w 7 x m f .   I f   y o u   d o n ' t   s e e   a   c o m m a n d   p r o m p t ,   t r y   p r e s s i n g   e n t e r .   r o o t @ m y a p p - d e b u g : / #


Question: What is Note:?

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


Question: What is Copying a Pod while changing its command?

Answer: S o m e t i m e s   i t ' s   u s e f u l   t o   c h a n g e   t h e   c o m m a n d   f o r   a   c o n t a i n e r ,   f o r   e x a m p l e   t o   a d d   a   d e b u g g i n g   f l a g   o r   b e c a u s e   t h e   a p p l i c a t i o n   i s   c r a s h i n g .   T o   s i m u l a t e   a   c r a s h i n g   a p p l i c a t i o n ,   u s e   k u b e c t l   r u n   t o   c r e a t e   a   c o n t a i n e r   t h a t   i m m e d i a t e l y   e x i t s :   k u b e c t l   r u n   - - i m a g e = b u s y b o x : 1 . 2 8   m y a p p   - -   f a l s e   Y o u   c a n   s e e   u s i n g   k u b e c t l   d e s c r i b e   p o d   m y a p p   t h a t   t h i s   c o n t a i n e r   i s   c r a s h i n g :   C o n t a i n e r s :   m y a p p :   I m a g e :   b u s y b o x   . . .   A r g s :   f a l s e   S t a t e :   W a i t i n g   R e a s o n :   C r a s h L o o p B a c k O f f   L a s t   S t a t e :   T e r m i n a t e d   R e a s o n :   E r r o r   E x i t   C o d e :   1   Y o u   c a n   u s e   k u b e c t l   d e b u g   t o   c r e a t e   a   c o p y   o f   t h i s   P o d   w i t h   t h e   c o m m a n d   c h a n g e d   t o   a n   i n t e r a c t i v e   s h e l l :   k u b e c t l   d e b u g   m y a p p   - i t   - - c o p y - t o = m y a p p - d e b u g   - - c o n t a i n e r = m y a p p   - -   s h   I f   y o u   d o n ' t   s e e   a   c o m m a n d   p r o m p t ,   t r y   p r e s s i n g   e n t e r .   /   #   N o w   y o u   h a v e   a n   i n t e r a c t i v e   s h e l l   t h a t   y o u   c a n   u s e   t o   p e r f o r m   t a s k s   l i k e   c h e c k i n g   f i l e s y s t e m   p a t h s   o r   r u n n i n g   t h e   c o n t a i n e r   c o m m a n d   m a n u a l l y .


Question: What is Note:?

Answer: T o   c h a n g e   t h e   c o m m a n d   o f   a   s p e c i f i c   c o n t a i n e r   y o u   m u s t   s p e c i f y   i t s   n a m e   u s i n g   - - c o n t a i n e r   o r   k u b e c t l   d e b u g   w i l l   i n s t e a d   c r e a t e   a   n e w   c o n t a i n e r   t o   r u n   t h e   c o m m a n d   y o u   s p e c i f i e d . T h e   - i   f l a g   c a u s e s   k u b e c t l   d e b u g   t o   a t t a c h   t o   t h e   c o n t a i n e r   b y   d e f a u l t .   Y o u   c a n   p r e v e n t   t h i s   b y   s p e c i f y i n g   - - a t t a c h = f a l s e .   I f   y o u r   s e s s i o n   b e c o m e s   d i s c o n n e c t e d   y o u   c a n   r e a t t a c h   u s i n g   k u b e c t l   a t t a c h .   D o n ' t   f o r g e t   t o   c l e a n   u p   t h e   d e b u g g i n g   P o d   w h e n   y o u ' r e   f i n i s h e d   w i t h   i t :   k u b e c t l   d e l e t e   p o d   m y a p p   m y a p p - d e b u g


Question: What is Copying a Pod while changing container images?

Answer: I n   s o m e   s i t u a t i o n s   y o u   m a y   w a n t   t o   c h a n g e   a   m i s b e h a v i n g   P o d   f r o m   i t s   n o r m a l   p r o d u c t i o n   c o n t a i n e r   i m a g e s   t o   a n   i m a g e   c o n t a i n i n g   a   d e b u g g i n g   b u i l d   o r   a d d i t i o n a l   u t i l i t i e s .   A s   a n   e x a m p l e ,   c r e a t e   a   P o d   u s i n g   k u b e c t l   r u n :   k u b e c t l   r u n   m y a p p   - - i m a g e = b u s y b o x : 1 . 2 8   - - r e s t a r t = N e v e r   - -   s l e e p   1 d   N o w   u s e   k u b e c t l   d e b u g   t o   m a k e   a   c o p y   a n d   c h a n g e   i t s   c o n t a i n e r   i m a g e   t o   u b u n t u :   k u b e c t l   d e b u g   m y a p p   - - c o p y - t o = m y a p p - d e b u g   - - s e t - i m a g e = * = u b u n t u   T h e   s y n t a x   o f   - - s e t - i m a g e   u s e s   t h e   s a m e   c o n t a i n e r _ n a m e = i m a g e   s y n t a x   a s   k u b e c t l   s e t   i m a g e .   * = u b u n t u   m e a n s   c h a n g e   t h e   i m a g e   o f   a l l   c o n t a i n e r s   t o   u b u n t u .   D o n ' t   f o r g e t   t o   c l e a n   u p   t h e   d e b u g g i n g   P o d   w h e n   y o u ' r e   f i n i s h e d   w i t h   i t :   k u b e c t l   d e l e t e   p o d   m y a p p   m y a p p - d e b u g


Question: What is Debugging via a shell on the node?

Answer: I f   n o n e   o f   t h e s e   a p p r o a c h e s   w o r k ,   y o u   c a n   f i n d   t h e   N o d e   o n   w h i c h   t h e   P o d   i s   r u n n i n g   a n d   c r e a t e   a   P o d   r u n n i n g   o n   t h e   N o d e .   T o   c r e a t e   a n   i n t e r a c t i v e   s h e l l   o n   a   N o d e   u s i n g   k u b e c t l   d e b u g ,   r u n :   k u b e c t l   d e b u g   n o d e / m y n o d e   - i t   - - i m a g e = u b u n t u   C r e a t i n g   d e b u g g i n g   p o d   n o d e - d e b u g g e r - m y n o d e - p d x 8 4   w i t h   c o n t a i n e r   d e b u g g e r   o n   n o d e   m y n o d e .   I f   y o u   d o n ' t   s e e   a   c o m m a n d   p r o m p t ,   t r y   p r e s s i n g   e n t e r .   r o o t @ e k 8 s : / #   W h e n   c r e a t i n g   a   d e b u g g i n g   s e s s i o n   o n   a   n o d e ,   k e e p   i n   m i n d   t h a t :   k u b e c t l   d e b u g   a u t o m a t i c a l l y   g e n e r a t e s   t h e   n a m e   o f   t h e   n e w   P o d   b a s e d   o n   t h e   n a m e   o f   t h e   N o d e . T h e   r o o t   f i l e s y s t e m   o f   t h e   N o d e   w i l l   b e   m o u n t e d   a t   / h o s t . T h e   c o n t a i n e r   r u n s   i n   t h e   h o s t   I P C ,   N e t w o r k ,   a n d   P I D   n a m e s p a c e s ,   a l t h o u g h   t h e   p o d   i s n ' t   p r i v i l e g e d ,   s o   r e a d i n g   s o m e   p r o c e s s   i n f o r m a t i o n   m a y   f a i l ,   a n d   c h r o o t   / h o s t   m a y   f a i l . I f   y o u   n e e d   a   p r i v i l e g e d   p o d ,   c r e a t e   i t   m a n u a l l y   o r   u s e   t h e   - - p r o f i l e = s y s a d m i n   f l a g .   D o n ' t   f o r g e t   t o   c l e a n   u p   t h e   d e b u g g i n g   P o d   w h e n   y o u ' r e   f i n i s h e d   w i t h   i t :   k u b e c t l   d e l e t e   p o d   n o d e - d e b u g g e r - m y n o d e - p d x 8 4


Question: What is Debugging a Pod or Node while applying a profile?

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


Question: What is Applying a Static Profile?

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


Question: What is Note:?

Answer: A s s u m e   t h a t   y o u   c r e a t e   a   P o d   a n d   d e b u g   i t .   F i r s t ,   c r e a t e   a   P o d   n a m e d   m y a p p   a s   a n   e x a m p l e :   k u b e c t l   r u n   m y a p p   - - i m a g e = b u s y b o x : 1 . 2 8   - - r e s t a r t = N e v e r   - -   s l e e p   1 d   T h e n ,   d e b u g   t h e   P o d   u s i n g   a n   e p h e m e r a l   c o n t a i n e r .   I f   t h e   e p h e m e r a l   c o n t a i n e r   n e e d s   t o   h a v e   p r i v i l e g e ,   y o u   c a n   u s e   t h e   s y s a d m i n   p r o f i l e :   k u b e c t l   d e b u g   - i t   m y a p p   - - i m a g e = b u s y b o x : 1 . 2 8   - - t a r g e t = m y a p p   - - p r o f i l e = s y s a d m i n   T a r g e t i n g   c o n t a i n e r   " m y a p p " .   I f   y o u   d o n ' t   s e e   p r o c e s s e s   f r o m   t h i s   c o n t a i n e r   i t   m a y   b e   b e c a u s e   t h e   c o n t a i n e r   r u n t i m e   d o e s n ' t   s u p p o r t   t h i s   f e a t u r e .   D e f a u l t i n g   d e b u g   c o n t a i n e r   n a m e   t o   d e b u g g e r - 6 k g 4 x .   I f   y o u   d o n ' t   s e e   a   c o m m a n d   p r o m p t ,   t r y   p r e s s i n g   e n t e r .   /   #   C h e c k   t h e   c a p a b i l i t i e s   o f   t h e   e p h e m e r a l   c o n t a i n e r   p r o c e s s   b y   r u n n i n g   t h e   f o l l o w i n g   c o m m a n d   i n s i d e   t h e   c o n t a i n e r :   /   #   g r e p   C a p   / p r o c / $ $ / s t a t u s   . . .   C a p P r m :   0 0 0 0 0 1 f f f f f f f f f f   C a p E f f :   0 0 0 0 0 1 f f f f f f f f f f   . . .   T h i s   m e a n s   t h e   c o n t a i n e r   p r o c e s s   i s   g r a n t e d   f u l l   c a p a b i l i t i e s   a s   a   p r i v i l e g e d   c o n t a i n e r   b y   a p p l y i n g   s y s a d m i n   p r o f i l e .   S e e   m o r e   d e t a i l s   a b o u t   c a p a b i l i t i e s .   Y o u   c a n   a l s o   c h e c


Question: What is Applying Custom Profile?

Answer: Y o u   c a n   d e f i n e   a   p a r t i a l   c o n t a i n e r   s p e c   f o r   d e b u g g i n g   a s   a   c u s t o m   p r o f i l e   i n   e i t h e r   Y A M L   o r   J S O N   f o r m a t ,   a n d   a p p l y   i t   u s i n g   t h e   - - c u s t o m   f l a g .


Question: What is Note:?

Answer: C r e a t e   a   P o d   n a m e d   m y a p p   a s   a n   e x a m p l e :   k u b e c t l   r u n   m y a p p   - - i m a g e = b u s y b o x : 1 . 2 8   - - r e s t a r t = N e v e r   - -   s l e e p   1 d   C r e a t e   a   c u s t o m   p r o f i l e   i n   Y A M L   o r   J S O N   f o r m a t .   H e r e ,   c r e a t e   a   Y A M L   f o r m a t   f i l e   n a m e d   c u s t o m - p r o f i l e . y a m l :   e n v :   -   n a m e :   E N V _ V A R _ 1   v a l u e :   v a l u e _ 1   -   n a m e :   E N V _ V A R _ 2   v a l u e :   v a l u e _ 2   s e c u r i t y C o n t e x t :   c a p a b i l i t i e s :   a d d :   -   N E T _ A D M I N   -   S Y S _ T I M E   R u n   t h i s   c o m m a n d   t o   d e b u g   t h e   P o d   u s i n g   a n   e p h e m e r a l   c o n t a i n e r   w i t h   t h e   c u s t o m   p r o f i l e :   k u b e c t l   d e b u g   - i t   m y a p p   - - i m a g e = b u s y b o x : 1 . 2 8   - - t a r g e t = m y a p p   - - p r o f i l e = g e n e r a l   - - c u s t o m = c u s t o m - p r o f i l e . y a m l   Y o u   c a n   c h e c k   t h a t   t h e   e p h e m e r a l   c o n t a i n e r   h a s   b e e n   a d d e d   t o   t h e   t a r g e t   P o d   w i t h   t h e   c u s t o m   p r o f i l e   a p p l i e d :   k u b e c t l   g e t   p o d   m y a p p   - o   j s o n p a t h = ' { . s p e c . e p h e m e r a l C o n t a i n e r s [ 0 ] . e n v } '   [ { " n a m e " : " E N V _ V A R _ 1 " , " v a l u e " : " v a l u e _ 1 " } , { " n a m e " : " E N V _ V A R _ 2 " , " v a l u e " : " v a l u e _ 2 " } ]   k u b e c t l   g e t   p o d   m y a p p   - o   j s o n p a t h = ' { . s p e c . e p h e m e r a l C o n t a i n e r s [ 0 ] . s e c u r i t y C o n t e x t } '   { " c a p a b i l i t i e s " : { " a d d " : [ " N E T _ A D M I N " , " S Y S _ T I M E " ] } }   C l e a n   u p   t h e   P o d   w h e n   y o u ' r e   f i n i s h e d   w i t h   i t :   k u b e c t l   d e l e t e   p o d   m y


Question: What is IPAddress?

Answer: IPAddressIPAddress represents a single IP of a single IP Family.apiVersion: networking.k8s.io/v1import "k8s.io/api/networking/v1"IPAddressIPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1apiVersion: networking.k8s.io/v1kind: IPAddressmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (IPAddressSpec)spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusIPAddressSpecIPAddressSpec describe the attributes in an IP Address.parentRef (ParentReference), requiredParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.ParentReference describes a reference to a parent object.parentRef.name (string), requiredName is the name of the object being referenced.parentRef.resource (string), requiredResource is the resource of the object being referenced.parentRef.group (string)Group is the group of the object being referenced.parentRef.namespace (string)Namespace is the namespace of the object being referenced.IPAddressListIPAddressList contains a list of IPAddress.apiVersion: networking.k8s.io/v1kind: IPAddressListmetadata (ListMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]IPAddress), requireditems is the list of IPAddresses.Operationsget read the specified IPAddressHTTP RequestGET /apis/networking.k8s.io/v1/ipaddresses/{name}Parametersname (in path): string, requiredname of the IPAddresspretty (in query): stringprettyResponse200 (IPAddress): OK401: Unauthorizedlist list or watch objects of kind IPAddressHTTP RequestGET /apis/networking.k8s.io/v1/ipaddressesParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (IPAddressList): OK401: Unauthorizedcreate create an IPAddressHTTP RequestPOST /apis/networking.k8s.io/v1/ipaddressesPar


Question: How does IPAddress work?

Answer: IPAddressIPAddress represents a single IP of a single IP Family.apiVersion: networking.k8s.io/v1import "k8s.io/api/networking/v1"IPAddressIPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1apiVersion: networking.k8s.io/v1kind: IPAddressmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (IPAddressSpec)spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusIPAddressSpecIPAddressSpec describe the attributes in an IP Address.parentRef (ParentReference), requiredParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.ParentReference describes a reference to a parent object.parentRef.name (string), requiredName is the name of the object being referenced.parentRef.resource (string), requiredResource is the resource of the object being referenced.parentRef.group (string)Group is the group of the object being referenced.parentRef.namespace (string)Namespace is the namespace of the object being referenced.IPAddressListIPAddressList contains a list of IPAddress.apiVersion: networking.k8s.io/v1kind: IPAddressListmetadata (ListMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]IPAddress), requireditems is the list of IPAddresses.Operationsget read the specified IPAddressHTTP RequestGET /apis/networking.k8s.io/v1/ipaddresses/{name}Parametersname (in path): string, requiredname of the IPAddresspretty (in query): stringprettyResponse200 (IPAddress): OK401: Unauthorizedlist list or watch objects of kind IPAddressHTTP RequestGET /apis/networking.k8s.io/v1/ipaddressesParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (IPAddressList): OK401: Unauthorizedcreate create an IPAddressHTTP RequestPOST /apis/networking.k8s.io/v1/ipaddressesPar


Question: When would you use IPAddress?

Answer: IPAddressIPAddress represents a single IP of a single IP Family.apiVersion: networking.k8s.io/v1import "k8s.io/api/networking/v1"IPAddressIPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1apiVersion: networking.k8s.io/v1kind: IPAddressmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (IPAddressSpec)spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusIPAddressSpecIPAddressSpec describe the attributes in an IP Address.parentRef (ParentReference), requiredParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.ParentReference describes a reference to a parent object.parentRef.name (string), requiredName is the name of the object being referenced.parentRef.resource (string), requiredResource is the resource of the object being referenced.parentRef.group (string)Group is the group of the object being referenced.parentRef.namespace (string)Namespace is the namespace of the object being referenced.IPAddressListIPAddressList contains a list of IPAddress.apiVersion: networking.k8s.io/v1kind: IPAddressListmetadata (ListMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]IPAddress), requireditems is the list of IPAddresses.Operationsget read the specified IPAddressHTTP RequestGET /apis/networking.k8s.io/v1/ipaddresses/{name}Parametersname (in path): string, requiredname of the IPAddresspretty (in query): stringprettyResponse200 (IPAddress): OK401: Unauthorizedlist list or watch objects of kind IPAddressHTTP RequestGET /apis/networking.k8s.io/v1/ipaddressesParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (IPAddressList): OK401: Unauthorizedcreate create an IPAddressHTTP RequestPOST /apis/networking.k8s.io/v1/ipaddressesPar


Question: What are the benefits of IPAddress?

Answer: IPAddressIPAddress represents a single IP of a single IP Family.apiVersion: networking.k8s.io/v1import "k8s.io/api/networking/v1"IPAddressIPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1apiVersion: networking.k8s.io/v1kind: IPAddressmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (IPAddressSpec)spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusIPAddressSpecIPAddressSpec describe the attributes in an IP Address.parentRef (ParentReference), requiredParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.ParentReference describes a reference to a parent object.parentRef.name (string), requiredName is the name of the object being referenced.parentRef.resource (string), requiredResource is the resource of the object being referenced.parentRef.group (string)Group is the group of the object being referenced.parentRef.namespace (string)Namespace is the namespace of the object being referenced.IPAddressListIPAddressList contains a list of IPAddress.apiVersion: networking.k8s.io/v1kind: IPAddressListmetadata (ListMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]IPAddress), requireditems is the list of IPAddresses.Operationsget read the specified IPAddressHTTP RequestGET /apis/networking.k8s.io/v1/ipaddresses/{name}Parametersname (in path): string, requiredname of the IPAddresspretty (in query): stringprettyResponse200 (IPAddress): OK401: Unauthorizedlist list or watch objects of kind IPAddressHTTP RequestGET /apis/networking.k8s.io/v1/ipaddressesParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (IPAddressList): OK401: Unauthorizedcreate create an IPAddressHTTP RequestPOST /apis/networking.k8s.io/v1/ipaddressesPar


Question: What is IPAddress?

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


Question: What is IPAddress?

Answer: I P A d d r e s s   r e p r e s e n t s   a   s i n g l e   I P   o f   a   s i n g l e   I P   F a m i l y .   T h e   o b j e c t   i s   d e s i g n e d   t o   b e   u s e d   b y   A P I s   t h a t   o p e r a t e   o n   I P   a d d r e s s e s .   T h e   o b j e c t   i s   u s e d   b y   t h e   S e r v i c e   c o r e   A P I   f o r   a l l o c a t i o n   o f   I P   a d d r e s s e s .   A n   I P   a d d r e s s   c a n   b e   r e p r e s e n t e d   i n   d i f f e r e n t   f o r m a t s ,   t o   g u a r a n t e e   t h e   u n i q u e n e s s   o f   t h e   I P ,   t h e   n a m e   o f   t h e   o b j e c t   i s   t h e   I P   a d d r e s s   i n   c a n o n i c a l   f o r m a t ,   f o u r   d e c i m a l   d i g i t s   s e p a r a t e d   b y   d o t s   s u p p r e s s i n g   l e a d i n g   z e r o s   f o r   I P v 4   a n d   t h e   r e p r e s e n t a t i o n   d e f i n e d   b y   R F C   5 9 5 2   f o r   I P v 6 .   V a l i d :   1 9 2 . 1 6 8 . 1 . 5   o r   2 0 0 1 : d b 8 : : 1   o r   2 0 0 1 : d b 8 : a a a a : b b b b : c c c c : d d d d : e e e e : 1   I n v a l i d :   1 0 . 0 1 . 2 . 3   o r   2 0 0 1 : d b 8 : 0 : 0 : 0 : : 1   a p i V e r s i o n :   n e t w o r k i n g . k 8 s . i o / v 1 k i n d :   I P A d d r e s s m e t a d a t a   ( O b j e c t M e t a ) S t a n d a r d   o b j e c t ' s   m e t a d a t a .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # m e t a d a t a s p e c   ( I P A d d r e s s S p e c ) s p e c   i s   t h e   d e s i r e d   s t a t e   o f   t h e   I P A d d r e s s .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # s p e c - a n d - s t a t u s   a p i V e r s i o n :   n e t w o r k i n g . k 8 s . i


Question: What is IPAddressSpec?

Answer: I P A d d r e s s S p e c   d e s c r i b e   t h e   a t t r i b u t e s   i n   a n   I P   A d d r e s s .   p a r e n t R e f   ( P a r e n t R e f e r e n c e ) ,   r e q u i r e d P a r e n t R e f   r e f e r e n c e s   t h e   r e s o u r c e   t h a t   a n   I P A d d r e s s   i s   a t t a c h e d   t o .   A n   I P A d d r e s s   m u s t   r e f e r e n c e   a   p a r e n t   o b j e c t . P a r e n t R e f e r e n c e   d e s c r i b e s   a   r e f e r e n c e   t o   a   p a r e n t   o b j e c t . p a r e n t R e f . n a m e   ( s t r i n g ) ,   r e q u i r e d N a m e   i s   t h e   n a m e   o f   t h e   o b j e c t   b e i n g   r e f e r e n c e d . p a r e n t R e f . r e s o u r c e   ( s t r i n g ) ,   r e q u i r e d R e s o u r c e   i s   t h e   r e s o u r c e   o f   t h e   o b j e c t   b e i n g   r e f e r e n c e d . p a r e n t R e f . g r o u p   ( s t r i n g ) G r o u p   i s   t h e   g r o u p   o f   t h e   o b j e c t   b e i n g   r e f e r e n c e d . p a r e n t R e f . n a m e s p a c e   ( s t r i n g ) N a m e s p a c e   i s   t h e   n a m e s p a c e   o f   t h e   o b j e c t   b e i n g   r e f e r e n c e d .   p a r e n t R e f   ( P a r e n t R e f e r e n c e ) ,   r e q u i r e d   P a r e n t R e f   r e f e r e n c e s   t h e   r e s o u r c e   t h a t   a n   I P A d d r e s s   i s   a t t a c h e d   t o .   A n   I P A d d r e s s   m u s t   r e f e r e n c e   a   p a r e n t   o b j e c t .   P a r e n t R e f e r e n c e   d e s c r i b e s   a   r e f e r e n c e   t o   a   p a r e n t   o b j e c t .   p a r e n t R e f . n a m e   ( s t r i n g ) ,   r e q u i r e d N a m e   i s   t h e   n a m e   o f   t h e   o b j e c t   b e i n g   r e f e r e n c e d . p a r e n t R e f . r e s o u r c e   ( s t r i n g ) ,   r e q u i r e d R e s o u r c e   i s   t h e   r e s o u r c e   o f   t h e   o b j e c t   b e i n g   r e f e r e n c e d . p a r e n t R e f . g r o u p   ( s t r


Question: What is IPAddressList?

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


Question: What is HTTP Request?

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


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   I P A d d r e s s p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e   o f   t h e   I P A d d r e s s   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

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


Question: What is HTTP Request?

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


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

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


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

Answer: P U T   / a p i s / n e t w o r k i n g . k 8 s . i o / v 1 / i p a d d r e s s e s / { n a m e }


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

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


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

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


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is HTTP Request?

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


Question: What is Parameters?

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


Question: What is Response?

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


Question: What is ObjectReference?

Answer: ObjectReferenceObjectReference contains enough information to let you inspect or modify the referred object.import "k8s.io/api/core/v1"ObjectReference contains enough information to let you inspect or modify the referred object.apiVersion (string)API version of the referent.fieldPath (string)If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.kind (string)Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsname (string)Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnamespace (string)Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/resourceVersion (string)Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistencyuid (string)UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uidsThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.


Question: How does ObjectReference work?

Answer: ObjectReferenceObjectReference contains enough information to let you inspect or modify the referred object.import "k8s.io/api/core/v1"ObjectReference contains enough information to let you inspect or modify the referred object.apiVersion (string)API version of the referent.fieldPath (string)If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.kind (string)Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsname (string)Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnamespace (string)Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/resourceVersion (string)Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistencyuid (string)UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uidsThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.


Question: When would you use ObjectReference?

Answer: ObjectReferenceObjectReference contains enough information to let you inspect or modify the referred object.import "k8s.io/api/core/v1"ObjectReference contains enough information to let you inspect or modify the referred object.apiVersion (string)API version of the referent.fieldPath (string)If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.kind (string)Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsname (string)Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnamespace (string)Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/resourceVersion (string)Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistencyuid (string)UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uidsThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.


Question: What are the benefits of ObjectReference?

Answer: ObjectReferenceObjectReference contains enough information to let you inspect or modify the referred object.import "k8s.io/api/core/v1"ObjectReference contains enough information to let you inspect or modify the referred object.apiVersion (string)API version of the referent.fieldPath (string)If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.kind (string)Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsname (string)Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnamespace (string)Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/resourceVersion (string)Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistencyuid (string)UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uidsThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.


Question: What is ObjectReference?

Answer: i m p o r t   " k 8 s . i o / a p i / c o r e / v 1 "   O b j e c t R e f e r e n c e   c o n t a i n s   e n o u g h   i n f o r m a t i o n   t o   l e t   y o u   i n s p e c t   o r   m o d i f y   t h e   r e f e r r e d   o b j e c t .   a p i V e r s i o n   ( s t r i n g ) A P I   v e r s i o n   o f   t h e   r e f e r e n t . f i e l d P a t h   ( s t r i n g ) I f   r e f e r r i n g   t o   a   p i e c e   o f   a n   o b j e c t   i n s t e a d   o f   a n   e n t i r e   o b j e c t ,   t h i s   s t r i n g   s h o u l d   c o n t a i n   a   v a l i d   J S O N / G o   f i e l d   a c c e s s   s t a t e m e n t ,   s u c h   a s   d e s i r e d S t a t e . m a n i f e s t . c o n t a i n e r s [ 2 ] .   F o r   e x a m p l e ,   i f   t h e   o b j e c t   r e f e r e n c e   i s   t o   a   c o n t a i n e r   w i t h i n   a   p o d ,   t h i s   w o u l d   t a k e   o n   a   v a l u e   l i k e :   " s p e c . c o n t a i n e r s { n a m e } "   ( w h e r e   " n a m e "   r e f e r s   t o   t h e   n a m e   o f   t h e   c o n t a i n e r   t h a t   t r i g g e r e d   t h e   e v e n t )   o r   i f   n o   c o n t a i n e r   n a m e   i s   s p e c i f i e d   " s p e c . c o n t a i n e r s [ 2 ] "   ( c o n t a i n e r   w i t h   i n d e x   2   i n   t h i s   p o d ) .   T h i s   s y n t a x   i s   c h o s e n   o n l y   t o   h a v e   s o m e   w e l l - d e f i n e d   w a y   o f   r e f e r e n c i n g   a   p a r t   o f   a n   o b j e c t . k i n d   ( s t r i n g ) K i n d   o f   t h e   r e f e r e n t .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # t y p e s - k i n d s n a m e   ( s t r i n g ) N a m e   o f   t h e   r e f e r e n t .   M o r e   i n f o :   h t t p s : / / k u b e r n e t e s . i o / d o c s / c o n c e p t s / o v e r v i e w / w o r k i n g - w i t h -


Question: What is Objects In Kubernetes?

Answer: Objects In KubernetesKubernetes objects are persistent entities in the Kubernetes system. Kubernetes uses these entities to represent the state of your cluster. Learn about the Kubernetes object model and how to work with these objects.This page explains how Kubernetes objects are represented in the Kubernetes API, and how you can express them in .yaml format.Understanding Kubernetes objectsKubernetes objects are persistent entities in the Kubernetes system. Kubernetes uses these entities to represent the state of your cluster. Specifically, they can describe:What containerized applications are running (and on which nodes)The resources available to those applicationsThe policies around how those applications behave, such as restart policies, upgrades, and fault-toleranceA Kubernetes object is a "record of intent"--once you create the object, the Kubernetes system will constantly work to ensure that the object exists. By creating an object, you're effectively telling the Kubernetes system what you want your cluster's workload to look like; this is your cluster's desired state.To work with Kubernetes objects—whether to create, modify, or delete them—you'll need to use the Kubernetes API. When you use the kubectl command-line interface, for example, the CLI makes the necessary Kubernetes API calls for you. You can also use the Kubernetes API directly in your own programs using one of the Client Libraries.Object spec and statusAlmost every Kubernetes object includes two nested object fields that govern the object's configuration: the object spec and the object status. For objects that have a spec, you have to set this when you create the object, providing a description of the characteristics you want the resource to have: its desired state.The status describes the current state of the object, supplied and updated by the Kubernetes system and its components. The Kubernetes control plane continually and actively manages every object's actual state to match the desired state you supplied.For example: in Kubernetes, a Deployment is an object that can represent an application running on your cluster. When you create the Deployment, you might set the Deployment spec to specify that you want three replicas of the application to be running. The Kubernetes system reads the Deployment spec and starts three instances of your desired application--updating the status to match your spec. If any of those instances should fail (a status change), the Kubernetes system responds to the difference between spec and status by making a correction--in this case, starting a replacement instance.For more information on the object spec, status, and metadata, see the Kubernetes API Conventions.Describing a Kubernetes objectWhen you create an object in Kubernetes, you must provide the object spec that describes its desired state, as well as some basic information about the object (such as a name). When you use the Kubernetes API to create the object (either directly or via kubec


Question: How does Objects In Kubernetes work?

Answer: Objects In KubernetesKubernetes objects are persistent entities in the Kubernetes system. Kubernetes uses these entities to represent the state of your cluster. Learn about the Kubernetes object model and how to work with these objects.This page explains how Kubernetes objects are represented in the Kubernetes API, and how you can express them in .yaml format.Understanding Kubernetes objectsKubernetes objects are persistent entities in the Kubernetes system. Kubernetes uses these entities to represent the state of your cluster. Specifically, they can describe:What containerized applications are running (and on which nodes)The resources available to those applicationsThe policies around how those applications behave, such as restart policies, upgrades, and fault-toleranceA Kubernetes object is a "record of intent"--once you create the object, the Kubernetes system will constantly work to ensure that the object exists. By creating an object, you're effectively telling the Kubernetes system what you want your cluster's workload to look like; this is your cluster's desired state.To work with Kubernetes objects—whether to create, modify, or delete them—you'll need to use the Kubernetes API. When you use the kubectl command-line interface, for example, the CLI makes the necessary Kubernetes API calls for you. You can also use the Kubernetes API directly in your own programs using one of the Client Libraries.Object spec and statusAlmost every Kubernetes object includes two nested object fields that govern the object's configuration: the object spec and the object status. For objects that have a spec, you have to set this when you create the object, providing a description of the characteristics you want the resource to have: its desired state.The status describes the current state of the object, supplied and updated by the Kubernetes system and its components. The Kubernetes control plane continually and actively manages every object's actual state to match the desired state you supplied.For example: in Kubernetes, a Deployment is an object that can represent an application running on your cluster. When you create the Deployment, you might set the Deployment spec to specify that you want three replicas of the application to be running. The Kubernetes system reads the Deployment spec and starts three instances of your desired application--updating the status to match your spec. If any of those instances should fail (a status change), the Kubernetes system responds to the difference between spec and status by making a correction--in this case, starting a replacement instance.For more information on the object spec, status, and metadata, see the Kubernetes API Conventions.Describing a Kubernetes objectWhen you create an object in Kubernetes, you must provide the object spec that describes its desired state, as well as some basic information about the object (such as a name). When you use the Kubernetes API to create the object (either directly or via kubec


Question: When would you use Objects In Kubernetes?

Answer: Objects In KubernetesKubernetes objects are persistent entities in the Kubernetes system. Kubernetes uses these entities to represent the state of your cluster. Learn about the Kubernetes object model and how to work with these objects.This page explains how Kubernetes objects are represented in the Kubernetes API, and how you can express them in .yaml format.Understanding Kubernetes objectsKubernetes objects are persistent entities in the Kubernetes system. Kubernetes uses these entities to represent the state of your cluster. Specifically, they can describe:What containerized applications are running (and on which nodes)The resources available to those applicationsThe policies around how those applications behave, such as restart policies, upgrades, and fault-toleranceA Kubernetes object is a "record of intent"--once you create the object, the Kubernetes system will constantly work to ensure that the object exists. By creating an object, you're effectively telling the Kubernetes system what you want your cluster's workload to look like; this is your cluster's desired state.To work with Kubernetes objects—whether to create, modify, or delete them—you'll need to use the Kubernetes API. When you use the kubectl command-line interface, for example, the CLI makes the necessary Kubernetes API calls for you. You can also use the Kubernetes API directly in your own programs using one of the Client Libraries.Object spec and statusAlmost every Kubernetes object includes two nested object fields that govern the object's configuration: the object spec and the object status. For objects that have a spec, you have to set this when you create the object, providing a description of the characteristics you want the resource to have: its desired state.The status describes the current state of the object, supplied and updated by the Kubernetes system and its components. The Kubernetes control plane continually and actively manages every object's actual state to match the desired state you supplied.For example: in Kubernetes, a Deployment is an object that can represent an application running on your cluster. When you create the Deployment, you might set the Deployment spec to specify that you want three replicas of the application to be running. The Kubernetes system reads the Deployment spec and starts three instances of your desired application--updating the status to match your spec. If any of those instances should fail (a status change), the Kubernetes system responds to the difference between spec and status by making a correction--in this case, starting a replacement instance.For more information on the object spec, status, and metadata, see the Kubernetes API Conventions.Describing a Kubernetes objectWhen you create an object in Kubernetes, you must provide the object spec that describes its desired state, as well as some basic information about the object (such as a name). When you use the Kubernetes API to create the object (either directly or via kubec