Kubernetes Pod Configuration

apiVersion: v1
kind: Pod
metadata:
  name: mypod
spec:
  containers:
  - name: myfrontend
    image: nginx
    volumeMounts:
    - mountPath: "/var/www/html"
      name: mypd
  volumes:
    - name: mypd

To mount a 202201311643 or 202201311645, use the option configMap or secret inside volumes. Specify its name using name or secretName.

To mount a 202202151907, use the option persistentVolumeClaim inside volumes. Specify its name using claimName.

Links to this page
#container