我尝试使用以下命令修补部署:
kubectl patch deployment spin-clouddriver -n spinnaker --type='json' -p='[{"op": "add", "path": "/spec/spec/containers/0/volumeMounts", "value": {"mountPath": "/etc/ssl/certs/java/cacerts", "subPath": "cacerts", "name": "cacerts"}}]'
结果
The "" is invalid
我看不到错误在哪里,也看不到消息如何帮助我发现问题。有提示吗?
答案 0 :(得分:1)
正确的路径是"path": "/spec/template/spec/containers/0/volumeMounts
。缺少模板密钥。