【发布时间】:2020-02-20 08:24:29
【问题描述】:
我有两个 python 文件,testing_1.py 和 testing_2.py。
然后,我创建了带有testing-config1 的配置映射来存储testing_1.py 和testing-config2 分别存储testing_2.py。
在 Kubernetes yaml 中,
...
containers:
- name: spark-master
image: bde2020/spark-master:2.4.4-hadoop2.7
volumeMounts:
- name: testing
mountPath: /jobs
- name: testing2
mountPath: /jobs
volumes:
- name: testing
configMap:
name: testing-config1
- name: testing2
configMap:
name: testing-config2
...
在最终结果中,路径只包含 testing_1.py。
【问题讨论】:
-
您想实现什么样的结构?
标签: kubernetes configmap