A pod is the smallest unit of computing that can be deployed and managed in Kubernetes.
To create a pod:
- After you have created a PVC, use the following code sample to create a ceph-pod.yaml file.
Note: Adapt the parameter values for your environment.
apiVersion: v1
kind: Pod
metadata:
name: ceph-doc-pod
namespace: ceph-storage-integration
spec:
containers:
- name: ceph-nginx
image: nginx
ports:
- containerPort: 80
name: "ceph-nginx-port"
volumeMounts:
- name: ceph-doc-vol
mountPath: /ceph-doc
readOnly: false
volumes:
- name: ceph-doc-vol
persistentVolumeClaim:
claimName: ceph-doc-pvc
- In the OpenShift control-plane node, run the following command:
oc create -f ceph-pod.yaml