From e6cd62be4726d605d6357277bc2a231ccc1ead86 Mon Sep 17 00:00:00 2001 From: Pengfei Ni Date: Fri, 6 Sep 2024 11:47:58 +0800 Subject: [PATCH] fix the samples --- examples/nginx-ha/README.md | 2 +- examples/nginx-ha/nginx-pdb.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nginx-ha/README.md b/examples/nginx-ha/README.md index 0dba54fb..f9ca6389 100644 --- a/examples/nginx-ha/README.md +++ b/examples/nginx-ha/README.md @@ -32,7 +32,7 @@ kubectl apply -f . ## Install HTTP load testing tool ```sh -$ go get -u github.com/tsenart/vegeta +go install github.com/tsenart/vegeta@latest ``` ## Validate Nginx service availability during node drain diff --git a/examples/nginx-ha/nginx-pdb.yaml b/examples/nginx-ha/nginx-pdb.yaml index 45ff4b46..fe0496b5 100644 --- a/examples/nginx-ha/nginx-pdb.yaml +++ b/examples/nginx-ha/nginx-pdb.yaml @@ -1,4 +1,4 @@ -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: nginx