-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkrakend-config-configmap.yaml
56 lines (56 loc) · 4.55 KB
/
krakend-config-configmap.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: v1
data:
krakend.json: "{\n \"version\": 2,\n \"port\": 8080,\n \"extra_config\": {\n
\ \"github_com/devopsfaith/krakend-cors\": {\n \"allow_origins\":
[\n \"http*\"\n ],\n \"allow_headers\": [\"Origin\",
\"Authorization\", \"Content-Length\", \"Content-Type\", \"Accept\", \"X-Auth-Token\"],\n
\ \"expose_headers\": [\"Content-Type\", \"Content-Length\"],\n \"max_age\":
\"12h\",\n \"allow_credentials\": false,\n \"allow_methods\":
[\n \"GET\",\n \"HEAD\",\n \"POST\",\n
\ \"PUT\",\n \"DELETE\",\n \"CONNECT\",\n
\ \"OPTIONS\",\n \"TRACE\",\n \"PATCH\"\n
\ ]\n },\n \"github_com/devopsfaith/krakend-gologging\": {\n
\ \"level\": \"DEBUG\",\n \"prefix\": \"[KRAKEND]\",\n \"syslog\":
false,\n \"stdout\": true,\n \"format\": \"default\"\n }\n
\ },\n \"timeout\": \"3000ms\",\n \"cache_ttl\": \"300s\",\n \"output_encoding\":
\"json\",\n \"name\": \"KrakenD API Gateway Service\",\n \"endpoints\": [\n
\ {\n \"endpoint\": \"/healthz\",\n \"extra_config\": {\n
\ \"github.com/devopsfaith/krakend/proxy\": {\n \"static\":
{\n \"data\": {\n \"status\": \"OK\"\n
\ },\n \"strategy\": \"always\"\n }\n
\ }\n },\n \"backend\": [\n {\n \"url_pattern\":
\"/\",\n \"host\": [\n \"http://fake-backend\"\n
\ ]\n }\n ]\n },\n {\n \"endpoint\":
\"/testjwt\",\n \"method\": \"GET\",\n \"extra_config\": {\n
\ \"github.com/devopsfaith/krakend-jose/validator\": {\n \"alg\":
\"RS256\",\n \"jwk-url\": \"https://keycloak.server.tld/auth/realms/yourRealm/protocol/openid-connect/certs\",\n
\ \"issuer\": \"https://keycloak.server.tld/auth/realms/yourRealm\",\n
\ \"roles\": [],\n \"roles_key\": \"userRealmRoles\"\n
\ },\n \"github.com/devopsfaith/krakend/proxy\": {\n
\ \"static\": {\n \"data\": {\n \"jwt\":
\"valid\"\n },\n \"strategy\": \"always\"\n
\ }\n }\n },\n \"output_encoding\":
\"json\",\n \"concurrent_calls\": 1,\n \"backend\": [\n {\n
\ \"url_pattern\": \"/\",\n \"encoding\": \"json\",\n
\ \"sd\": \"static\",\n \"extra_config\": {},\n \"method\":
\"GET\",\n \"host\": [\n \"http://fake-backend\"
\n ],\n \"disable_host_sanitize\": true\n }\n
\ ]\n },\n {\n \"endpoint\": \"/uploadDMARCBundle\",\n
\ \"method\": \"POST\",\n \"extra_config\": {\n \"github.com/devopsfaith/krakend-jose/validator\":
{\n \"alg\": \"RS256\",\n \"jwk-url\": \"https://keycloak.server.tld/auth/realms/yourRealm/protocol/openid-connect/certs\",\n
\ \"issuer\": \"https://keycloak.server.tld/auth/realms/yourRealm\",\n
\ \"roles_key\": \"userRealmRoles\"\n }\n },\n
\ \"output_encoding\": \"no-op\",\n \"concurrent_calls\": 1,\n
\ \"backend\": [\n {\n \"url_pattern\":
\"/api/v1/upload_bundle\",\n \"encoding\": \"no-op\",\n \"sd\":
\"static\",\n \"extra_config\": {},\n \"host\":
[\n \"http://dmarc-rest-api:8080\"\n ],\n
\ \"disable_host_sanitize\": true\n }\n ],\n
\ \"headers_to_pass\": [\n \"Accept\",\n \"Accept-Encoding\",\n
\ \"Content-Encoding\",\n \"Content-Length\",\n \"Content-Type\",\n
\ \"Sec-Fetch-Mode\",\n \"Sec-Fetch-Site\"\n ]\n
\ }\n ]\n}"
kind: ConfigMap
metadata:
creationTimestamp: null
name: krakend-config