diff options
author | Guo Ruijing <ruijing.guo@intel.com> | 2018-05-30 19:03:03 +0800 |
---|---|---|
committer | Guo Ruijing <ruijing.guo@intel.com> | 2018-05-31 17:43:01 +0800 |
commit | 6b40a7d85df324b8556c9e4f2916e444dc0ca0a6 (patch) | |
tree | 830bf7c53a7c902ec230dafe7d1f900ed05d210b /src/vagrant/kubeadm_kata/examples | |
parent | b1f11b54803266384cf0d9e14fcb7204dbcc79a7 (diff) |
enable kata 1.0 + containerd 1.1
Change-Id: Idbeda8b36d067a7bd27a8ef19184c5bb5a6daa04
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_kata/examples')
-rwxr-xr-x | src/vagrant/kubeadm_kata/examples/nginx-app.sh | 7 | ||||
-rw-r--r-- | src/vagrant/kubeadm_kata/examples/nginx-app.yaml | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/vagrant/kubeadm_kata/examples/nginx-app.sh b/src/vagrant/kubeadm_kata/examples/nginx-app.sh index 96d776c..a66b7ca 100755 --- a/src/vagrant/kubeadm_kata/examples/nginx-app.sh +++ b/src/vagrant/kubeadm_kata/examples/nginx-app.sh @@ -20,6 +20,11 @@ kubectl get nodes kubectl get services kubectl get pods kubectl get rc -sleep 180 +r=0 +while [ "$r" -eq "0" ] +do + sleep 30 + r=$(kubectl get pods | grep Running | wc -l) +done svcip=$(kubectl get services nginx -o json | grep clusterIP | cut -f4 -d'"') wget http://$svcip diff --git a/src/vagrant/kubeadm_kata/examples/nginx-app.yaml b/src/vagrant/kubeadm_kata/examples/nginx-app.yaml index f80881a..9de4ef4 100644 --- a/src/vagrant/kubeadm_kata/examples/nginx-app.yaml +++ b/src/vagrant/kubeadm_kata/examples/nginx-app.yaml @@ -23,6 +23,8 @@ spec: metadata: labels: app: nginx + annotations: + io.kubernetes.cri.untrusted-workload: "true" spec: containers: - name: nginx |