Kubernetes PODS creation
A note about creating pods using kubectl run.
You can create pods from the command line using any of the below two ways:
Create an NGINX Pod (using –generator)
kubectl run –generator=run-pod/v1 nginx –image=nginx
- Create an NGINX Pod (using –restart=Never)
kubectl run nginx –image=nginx –restart=Never
If you run the kubectl run command without the –restart=Never OR the –generator=run-pod/v1, the command will create a deployment instead (as of version 1.16).
Note that this way of creating a deployment is deprecated and should not be used.
Instead, use kubectl create command to create a deployment
kubectl create deployment nginx –image=nginx
Kubernetes Concepts – https://kubernetes.io/docs/concepts/
Pod Overview- https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/
No comments yet.
-
Recent
- Kubectl imperative commands
- AWS RDS Migration Checklist
- Oracle Export import Compress
- Oracle Performance Tuning views
- Kubernetes PODS creation
- Dropping Index in Oracle
- Docker private registry
- Docker Container Logging
- Oracle Disk issue reserve policy
- ASM kfed utlity
- Understanding Oracle Architecture
- Useful Sar (Sysstat) Examples for UNIX / Linux /Oracle Performance Monitoring
-
Links
-
Archives
- March 2021 (2)
- May 2020 (12)
- February 2016 (1)
- December 2015 (1)
- February 2014 (1)
- June 2013 (1)
- April 2013 (1)
- December 2012 (5)
- November 2012 (1)
- August 2012 (3)
- July 2012 (1)
- June 2012 (2)
-
Categories
-
RSS
Entries RSS
Comments RSS
Leave a comment