mirror of https://github.com/easzlab/kubeasz.git
fix: curl dns resolving problem in a rare case
parent
ccbbbb9ec1
commit
ab9603d509
8
ezdown
8
ezdown
|
@ -418,14 +418,14 @@ function get_extra_images() {
|
||||||
docker pull cilium/hubble-ui-backend:v0.9.2 && \
|
docker pull cilium/hubble-ui-backend:v0.9.2 && \
|
||||||
docker pull cilium/hubble-ui:v0.9.2 && \
|
docker pull cilium/hubble-ui:v0.9.2 && \
|
||||||
docker pull easzlab/json-mock:v1.3.0 && \
|
docker pull easzlab/json-mock:v1.3.0 && \
|
||||||
docker pull centos:7 && \
|
docker pull easzlab/alpine-curl:v7.85.0 && \
|
||||||
docker save -o "$imageDir/cilium_$ciliumVer.tar" "cilium/cilium:v$ciliumVer" \
|
docker save -o "$imageDir/cilium_$ciliumVer.tar" "cilium/cilium:v$ciliumVer" \
|
||||||
"cilium/operator-generic:v$ciliumVer" \
|
"cilium/operator-generic:v$ciliumVer" \
|
||||||
"cilium/hubble-relay:v$ciliumVer" \
|
"cilium/hubble-relay:v$ciliumVer" \
|
||||||
cilium/hubble-ui-backend:v0.9.2 \
|
cilium/hubble-ui-backend:v0.9.2 \
|
||||||
cilium/hubble-ui:v0.9.2 \
|
cilium/hubble-ui:v0.9.2 \
|
||||||
easzlab/json-mock:v1.3.0 \
|
easzlab/json-mock:v1.3.0 \
|
||||||
centos:7
|
easzlab/alpine-curl:v7.85.0
|
||||||
else
|
else
|
||||||
docker load -i "$imageDir/cilium_$ciliumVer.tar"
|
docker load -i "$imageDir/cilium_$ciliumVer.tar"
|
||||||
fi
|
fi
|
||||||
|
@ -441,8 +441,8 @@ function get_extra_images() {
|
||||||
docker push easzlab.io.local:5000/cilium/hubble-ui:v0.9.2
|
docker push easzlab.io.local:5000/cilium/hubble-ui:v0.9.2
|
||||||
docker tag easzlab/json-mock:v1.3.0 easzlab.io.local:5000/cilium/json-mock:v1.3.0
|
docker tag easzlab/json-mock:v1.3.0 easzlab.io.local:5000/cilium/json-mock:v1.3.0
|
||||||
docker push easzlab.io.local:5000/cilium/json-mock:v1.3.0
|
docker push easzlab.io.local:5000/cilium/json-mock:v1.3.0
|
||||||
docker tag centos:7 easzlab.io.local:5000/centos:7
|
docker tag easzlab/alpine-curl:v7.85.0 easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
docker push easzlab.io.local:5000/centos:7
|
docker push easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
|
|
||||||
# prometheus chart
|
# prometheus chart
|
||||||
if [[ ! -f "$imageDir/prometheus-chart_$promChartVer.tar" ]];then
|
if [[ ! -f "$imageDir/prometheus-chart_$promChartVer.tar" ]];then
|
||||||
|
|
|
@ -197,7 +197,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pod-to-a-container
|
- name: pod-to-a-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -253,7 +253,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pod-to-external-1111-container
|
- name: pod-to-external-1111-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -309,7 +309,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pod-to-a-denied-cnp-container
|
- name: pod-to-a-denied-cnp-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -355,7 +355,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pod-to-a-allowed-cnp-container
|
- name: pod-to-a-allowed-cnp-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -411,7 +411,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pod-to-external-fqdn-allow-baidu-cnp-container
|
- name: pod-to-external-fqdn-allow-baidu-cnp-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -467,7 +467,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pod-to-b-multi-node-clusterip-container
|
- name: pod-to-b-multi-node-clusterip-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -533,7 +533,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pod-to-b-multi-node-headless-container
|
- name: pod-to-b-multi-node-headless-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -599,7 +599,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: host-to-b-multi-node-clusterip-container
|
- name: host-to-b-multi-node-clusterip-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -666,7 +666,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: host-to-b-multi-node-headless-container
|
- name: host-to-b-multi-node-headless-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -733,7 +733,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pod-to-b-multi-node-nodeport-container
|
- name: pod-to-b-multi-node-nodeport-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
@ -799,7 +799,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pod-to-b-intra-node-nodeport-container
|
- name: pod-to-b-intra-node-nodeport-container
|
||||||
ports: []
|
ports: []
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
|
|
@ -19,7 +19,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: test01-pod-to-container
|
- name: test01-pod-to-container
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server:8080/public"]
|
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server:8080/public"]
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
@ -44,7 +44,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: test02-pod-to-node-nodeport
|
- name: test02-pod-to-node-nodeport
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-host-headless:31314/public"]
|
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-host-headless:31314/public"]
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
@ -79,7 +79,7 @@ spec:
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
containers:
|
containers:
|
||||||
- name: test03-pod-to-multi-node-clusterip
|
- name: test03-pod-to-multi-node-clusterip
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server:8080/public"]
|
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server:8080/public"]
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
@ -114,7 +114,7 @@ spec:
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
containers:
|
containers:
|
||||||
- name: test04-pod-to-multi-node-headless
|
- name: test04-pod-to-multi-node-headless
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-headless:8080/public"]
|
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-headless:8080/public"]
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
@ -149,7 +149,7 @@ spec:
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
containers:
|
containers:
|
||||||
- name: test05-pod-to-multi-node-nodeport
|
- name: test05-pod-to-multi-node-nodeport
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-host-headless:31314/public"]
|
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-host-headless:31314/public"]
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
@ -174,7 +174,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: test06-pod-to-external-1111
|
- name: test06-pod-to-external-1111
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 1.1.1.1"]
|
command: ["sh","-c","curl -sS --fail --connect-timeout 5 1.1.1.1"]
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
@ -199,7 +199,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: test07-pod-to-external-fqdn-baidu
|
- name: test07-pod-to-external-fqdn-baidu
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 www.baidu.com"]
|
command: ["sh","-c","curl -sS --fail --connect-timeout 5 www.baidu.com"]
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
@ -236,7 +236,7 @@ spec:
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: test08-host-to-multi-node-clusterip
|
- name: test08-host-to-multi-node-clusterip
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server:8080/public"]
|
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server:8080/public"]
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
@ -273,7 +273,7 @@ spec:
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: test09-host-to-multi-node-headless
|
- name: test09-host-to-multi-node-headless
|
||||||
image: easzlab.io.local:5000/centos:7
|
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-headless:8080/public"]
|
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-headless:8080/public"]
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
|
Loading…
Reference in New Issue