diff --git a/README.md b/README.md index 8cdd9de..887d174 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Web API: * `GET /token/validate` validates the JWT token `curl -H "Authorization: Bearer $JWT" podinfo:9898/token/validate` * `GET /configs` returns a JSON with configmaps and/or secrets mounted in the `config` volume * `POST /cache` saves the posted content to Redis and returns the SHA1 hash of the content -* `GET /store/{hash}` returns the content from Redis if the key exists +* `GET /cache/{hash}` returns the content from Redis if the key exists * `POST /store` writes the posted content to disk at /data/hash and returns the SHA1 hash of the content * `GET /store/{hash}` returns the content of the file /data/hash if exists * `GET /ws/echo` echos content via websockets `podcli ws ws://localhost:9898/ws/echo` diff --git a/charts/podinfo/templates/linkerd.yaml b/charts/podinfo/templates/linkerd.yaml index 45d924d..21e5970 100644 --- a/charts/podinfo/templates/linkerd.yaml +++ b/charts/podinfo/templates/linkerd.yaml @@ -61,6 +61,14 @@ spec: method: GET pathRegex: /status/[^/]* name: GET /status/{code} + - condition: + method: POST + pathRegex: /cache + name: POST /cache + - condition: + method: GET + pathRegex: /cache/[^/]* + name: GET /cache/{hash} - condition: method: POST pathRegex: /store