Simple pod spec to quickly spin up a pod in a Kubernetes cluster
oc run nginx --image=nginx --port=80 --restart=Never -n openshift-nfd
oc create deployment --image nginx nginx --dry-run=client -o yaml > deployment.yaml
kind: Pod
apiVersion: v1
metadata:
name: nginx
namespace: jude-test
labels:
run: nginx
spec:
restartPolicy: Never
containers:
- name: nginx
image: nginx
imagePullPolicy: Always
ports:
- containerPort: 80
protocol: TCP