Kubernetes Pod Operations: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 23: | Line 23: | ||
image: loop:1 | image: loop:1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Removing an Individual Pod= | |||
kubectl delete pod ''pod-name'' --grace-period=0 --force |
Revision as of 22:40, 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
Removing an Individual Pod
kubectl delete pod pod-name --grace-period=0 --force