Kubernetes Pod Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 2: Line 2:


* [[Kubernetes Operations#Subjects|Kubernetes Operations]]
* [[Kubernetes Operations#Subjects|Kubernetes Operations]]
* [[Kubernetes_Pod_and_Container_Concepts|Pod and Container Concepts]]


=Get Information about Pods=
=Get Information about Pods=

Revision as of 01:28, 7 September 2019

Internal

Get Information about Pods

kubectl get pods|po
kubectl describe pod <pod-name>
kubectl log <pod-name>

Create Pods

From a Manifest

apiVersion: v1
kind: Pod
metadata:
  name: loop-pod
spec:
  containers:
  - name: loop-container
    image: loop:1

Removing an Individual Pod

Remove immediately:

kubectl delete pod pod-name --grace-period=0 --force