瀏覽代碼

init project

yangxg 2 年之前
父節點
當前提交
e71fefc865
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 2 2
      .drone.yml
  2. 5 0
      deploy-tmp.yaml

+ 2 - 2
.drone.yml

@@ -22,7 +22,7 @@ steps:
       mirror: https://ci7pm4nx.mirror.aliyuncs.com
       registry: hub.evbj.easou.com
       repo: hub.evbj.easou.com/pro/${DRONE_REPO_NAME}
-      tag: r6
+      tag: r7
      
   - name: deployment
     image: hub.evbj.easou.com/dev/drone-agent:v3.0.1
@@ -31,7 +31,7 @@ steps:
     environment:
       JNLP_ENV: pro
       JNLP_REPLICAS: 1
-      JNLP_TAG: r6
+      JNLP_TAG: r7
       JNLP_VERSION: v1  # default v1, v2 for canary
       DEPLOY_ENV: k8s-1 # 可以选择把应用部署到集群:k8s-1 or k8s-2
       JNLP_REPO: hub.evbj.easou.com

+ 5 - 0
deploy-tmp.yaml

@@ -18,6 +18,11 @@ spec:
         app: nginx-material
     spec:
       terminationGracePeriodSeconds: 180
+      dnsPolicy: ClusterFirstWithHostNet
+      dnsConfig:
+        nameservers:
+          - 223.5.5.5
+          - 10.26.22.50
       initContainers:
         - name: init
           image: hub.evbj.easou.com/dev/busybox