Skip to content

Commit

Permalink
Fix readiness probe in HTTP test (#6628)
Browse files Browse the repository at this point in the history
  • Loading branch information
cPu1 committed May 22, 2023
1 parent edfceac commit 8d3e078
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions integration/data/test-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ spec:
failureThreshold: 3
timeoutSeconds: 1
exec:
command: ["/bin/sh", "-c"]
args:
- |
TOKEN=$(curl --fail --silent -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 300" "http://169.254.169.254/latest/api/token")
curl --fail --silent -H "X-aws-ec2-metadata-token: $TOKEN" "http://169.254.169.254/latest/meta-data/local-ipv4"
command:
- /bin/sh
- -c
- |-
TOKEN=$(curl --fail --silent -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 300" "http://169.254.169.254/latest/api/token");
curl --fail --silent -H "X-aws-ec2-metadata-token: $TOKEN" "http://169.254.169.254/latest/meta-data/local-ipv4";

0 comments on commit 8d3e078

Please sign in to comment.