diff --git a/.gitignore b/.gitignore index b804ef1..1a52ed1 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ *.sh /docs/ /docs +/etc/ +/etc /target/ *.iml .idea/ diff --git a/etc/test.json b/etc/test.json new file mode 100644 index 0000000..cadafb7 --- /dev/null +++ b/etc/test.json @@ -0,0 +1,72 @@ +{ + "kind": "EndpointsList", + "apiVersion": "v1", + "metadata": { + "resourceVersion": "63494335" + }, + "items": [ + { + "metadata": { + "name": "vt-api-service-grpc", + "namespace": "staging", + "uid": "1656d00b-9d55-4394-8f3f-d6450bbfe4d9", + "resourceVersion": "63413062", + "creationTimestamp": "2025-09-23T14:33:00Z", + "labels": { + "app": "vt-api-service-v2" + }, + "managedFields": [ + { + "manager": "kube-controller-manager", + "operation": "Update", + "apiVersion": "v1", + "time": "2025-12-15T09:17:03Z", + "fieldsType": "FieldsV1", + "fieldsV1": { + "f:metadata": { + "f:labels": { + ".": {}, + "f:app": {} + } + }, + "f:subsets": {} + } + } + ] + }, + "subsets": [ + { + "addresses": [ + { + "ip": "172.17.0.29", + "nodeName": "172.16.0.172", + "targetRef": { + "kind": "Pod", + "namespace": "staging", + "name": "vt-api-service-v2-649f5db6d5-bwngx", + "uid": "92066ddc-48e0-41fb-9e82-cae7f1cf01f3" + } + }, + { + "ip": "172.17.0.99", + "nodeName": "172.16.0.39", + "targetRef": { + "kind": "Pod", + "namespace": "staging", + "name": "vt-api-service-v2-649f5db6d5-zswrc", + "uid": "e8246767-9289-475a-9464-87bfc042a8e2" + } + } + ], + "ports": [ + { + "name": "vt-api-service-v2", + "port": 50051, + "protocol": "TCP" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/etc/ups_minimal.yaml b/etc/ups_minimal.yaml new file mode 100644 index 0000000..9fd4a1f --- /dev/null +++ b/etc/ups_minimal.yaml @@ -0,0 +1,27 @@ +provider: "file" +sticky_sessions: false +to_https: false +rate_limit: 100 +server_headers: + - "Y-Global-Something: Yes this is something" +client_headers: + - "Access-Control-Allow-Origin:*" + - "Access-Control-Allow-Methods:POST, GET, OPTIONS" + - "Access-Control-Max-Age:86400" + - "Strict-Transport-Security:max-age=31536000; includeSubDomains; preload" +upstreams: + mip.netangels.net: + paths: + "/": + rate_limit: 200 + to_https: false + servers: + - "127.0.0.1:8000" + polo.netangels.net: + paths: + "/": + to_https: false + client_headers: + - "X-Some-Thing:Yaaaaaaaaaaaaaaa" + servers: + - "192.168.1.1:8000" \ No newline at end of file