Commit 76a22f79 authored by 黎博's avatar 黎博

修复创建mq deployment缺少ImagePullSecrets

parent dfdbb32f
...@@ -1995,7 +1995,14 @@ public class K8sService { ...@@ -1995,7 +1995,14 @@ public class K8sService {
List<Volume> volumeList = new ArrayList<>(); List<Volume> volumeList = new ArrayList<>();
// imagePullSecrets
List<LocalObjectReference> localObjectReferenceList = new ArrayList<>(); List<LocalObjectReference> localObjectReferenceList = new ArrayList<>();
LocalObjectReference localObjectReference1 = new LocalObjectReference();
LocalObjectReference localObjectReference2 = new LocalObjectReference();
localObjectReference1.setName("qcloudregistrykey");
localObjectReference2.setName("tencenthubkey");
localObjectReferenceList.add(localObjectReference1);
localObjectReferenceList.add(localObjectReference2);
PodSpec podSpec = new PodSpec(); PodSpec podSpec = new PodSpec();
podSpec.setHostname("rabbitmq-" + namespace); podSpec.setHostname("rabbitmq-" + namespace);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment