创建了configmap并将其添加到我的yaml文件中,并且在部署POD之后,该卷未安装在该容器上
apiVersion: v1
kind: Pod
metadata:
name: appname
spec:
containers:
-containername
ports:
- containerPort: portno
resources: {}
volumeMounts:
- mountPath: mount path
subPath: filename
name: volume name
volumes:
- name: volumename
configMap:
name: configname
items:
- key: filename
path: filename