Kubernetes Pod Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:
=<span id='Create_a_Pod'></span>Create Pods=
=<span id='Create_a_Pod'></span>Create Pods=


A [[Kubernetes Pod and Container Concepts#Singleton_Pod]] can be created by posting a [[Kubernetes_Pod_Manifest#Example|pod manifest]] to the API server with:
A [[Kubernetes Pod and Container Concepts#Singleton_Pod|singleton]] pod can be created by posting a [[Kubernetes_Pod_Manifest#Example|pod manifest]] to the API server with:


=Removing an Individual Pod=
=Removing an Individual Pod=

Revision as of 01:30, 7 September 2019

Internal

Get Information about Pods

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

Create Pods

A singleton pod can be created by posting a pod manifest to the API server with:

Removing an Individual Pod

Remove immediately:

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