Kubernetes Pod Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:


  kubectl log <''pod-name''>
  kubectl log <''pod-name''>
=Create a Pod=
==From a Manifest==
<syntaxhighlight lang='yaml'>
apiVersion: v1
kind: Pod
metadata:
  name: loop-pod
spec:
  containers:
  - name: loop-container
    image: loop:1
</syntaxhighlight>

Revision as of 22:37, 23 August 2019

Internal

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

Create a Pod

From a Manifest

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