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:v0.9.2 && \
|
||||
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" \
|
||||
"cilium/operator-generic:v$ciliumVer" \
|
||||
"cilium/hubble-relay:v$ciliumVer" \
|
||||
cilium/hubble-ui-backend:v0.9.2 \
|
||||
cilium/hubble-ui:v0.9.2 \
|
||||
easzlab/json-mock:v1.3.0 \
|
||||
centos:7
|
||||
easzlab/alpine-curl:v7.85.0
|
||||
else
|
||||
docker load -i "$imageDir/cilium_$ciliumVer.tar"
|
||||
fi
|
||||
|
@ -441,8 +441,8 @@ function get_extra_images() {
|
|||
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 push easzlab.io.local:5000/cilium/json-mock:v1.3.0
|
||||
docker tag centos:7 easzlab.io.local:5000/centos:7
|
||||
docker push 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/easzlab/alpine-curl:v7.85.0
|
||||
|
||||
# prometheus chart
|
||||
if [[ ! -f "$imageDir/prometheus-chart_$promChartVer.tar" ]];then
|
||||
|
|
|
@ -197,7 +197,7 @@ spec:
|
|||
containers:
|
||||
- name: pod-to-a-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -253,7 +253,7 @@ spec:
|
|||
containers:
|
||||
- name: pod-to-external-1111-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -309,7 +309,7 @@ spec:
|
|||
containers:
|
||||
- name: pod-to-a-denied-cnp-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -355,7 +355,7 @@ spec:
|
|||
containers:
|
||||
- name: pod-to-a-allowed-cnp-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -411,7 +411,7 @@ spec:
|
|||
containers:
|
||||
- name: pod-to-external-fqdn-allow-baidu-cnp-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -467,7 +467,7 @@ spec:
|
|||
containers:
|
||||
- name: pod-to-b-multi-node-clusterip-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -533,7 +533,7 @@ spec:
|
|||
containers:
|
||||
- name: pod-to-b-multi-node-headless-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -599,7 +599,7 @@ spec:
|
|||
containers:
|
||||
- name: host-to-b-multi-node-clusterip-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -666,7 +666,7 @@ spec:
|
|||
containers:
|
||||
- name: host-to-b-multi-node-headless-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -733,7 +733,7 @@ spec:
|
|||
containers:
|
||||
- name: pod-to-b-multi-node-nodeport-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
@ -799,7 +799,7 @@ spec:
|
|||
containers:
|
||||
- name: pod-to-b-intra-node-nodeport-container
|
||||
ports: []
|
||||
image: easzlab.io.local:5000/centos:7
|
||||
image: easzlab.io.local:5000/easzlab/alpine-curl:v7.85.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- /bin/sh
|
||||
|
|
|
@ -19,7 +19,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- 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
|
||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server:8080/public"]
|
||||
restartPolicy: OnFailure
|
||||
|
@ -44,7 +44,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- 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
|
||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-host-headless:31314/public"]
|
||||
restartPolicy: OnFailure
|
||||
|
@ -79,7 +79,7 @@ spec:
|
|||
topologyKey: kubernetes.io/hostname
|
||||
containers:
|
||||
- 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
|
||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server:8080/public"]
|
||||
restartPolicy: OnFailure
|
||||
|
@ -114,7 +114,7 @@ spec:
|
|||
topologyKey: kubernetes.io/hostname
|
||||
containers:
|
||||
- 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
|
||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-headless:8080/public"]
|
||||
restartPolicy: OnFailure
|
||||
|
@ -149,7 +149,7 @@ spec:
|
|||
topologyKey: kubernetes.io/hostname
|
||||
containers:
|
||||
- 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
|
||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-host-headless:31314/public"]
|
||||
restartPolicy: OnFailure
|
||||
|
@ -174,7 +174,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- 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
|
||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 1.1.1.1"]
|
||||
restartPolicy: OnFailure
|
||||
|
@ -199,7 +199,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- 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
|
||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 www.baidu.com"]
|
||||
restartPolicy: OnFailure
|
||||
|
@ -236,7 +236,7 @@ spec:
|
|||
hostNetwork: true
|
||||
containers:
|
||||
- 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
|
||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server:8080/public"]
|
||||
restartPolicy: OnFailure
|
||||
|
@ -273,7 +273,7 @@ spec:
|
|||
hostNetwork: true
|
||||
containers:
|
||||
- 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
|
||||
command: ["sh","-c","curl -sS --fail --connect-timeout 5 echo-server-headless:8080/public"]
|
||||
restartPolicy: OnFailure
|
||||
|
|
Loading…
Reference in New Issue