Browse Source

Updated gateway-web configmap and values

pull/223/head
Galip Tolga Erdem 3 years ago
parent
commit
d0fd628756
  1. 233
      etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml
  2. 12
      etc/k8s/eshoponabp/charts/gateway-web/values.yaml
  3. 26
      etc/k8s/eshoponabp/values.st.yaml

233
etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml

@ -5,127 +5,138 @@ metadata:
data: data:
yarp.json: |- yarp.json: |-
{ {
"ReverseProxy": { "ReverseProxy": {
"Routes": { "Routes": {
"Account Service": { "AbpApi": {
"ClusterId": "account-cluster", "ClusterId": "Administration",
"Match": { "Match": {
"Path": "/api/account/{**everything}" "Path": "/api/abp/{**catch-all}"
}
},
"Identity Service": {
"ClusterId": "identity-cluster",
"Match": {
"Path": "/api/identity/{**everything}"
}
},
"Administration Service": {
"ClusterId": "administration-cluster",
"Match": {
"Path": "/api/abp/{**everything}"
}
},
"feature-management-route": {
"ClusterId": "feature-management-cluster",
"Match": {
"Path": "/api/feature-management/{**everything}"
}
},
"permission-management-route": {
"ClusterId": "permission-management-cluster",
"Match": {
"Path": "/api/permission-management/{**everything}"
}
},
"setting-management-route": {
"ClusterId": "setting-management-cluster",
"Match": {
"Path": "/api/setting-management/{**everything}"
}
},
"Catalog Service": {
"ClusterId": "catalogCluster",
"Match": {
"Path": "/api/catalog/{**everything}"
}
},
"Ordering Service": {
"ClusterId": "orderingCluster",
"Match": {
"Path": "/api/ordering/{**everything}"
}
},
"Cmskit Service": {
"ClusterId": "cmskitCluster",
"Match": {
"Path": "/api/cmskit/{**everything}"
}
}
},
"Clusters": {
"account-cluster": {
"Destinations": {
"destination1": {
"Address": "{{ .Values.reRoutes.accountService.url }}"
} }
} },
}, "Identity Service": {
"identity-cluster": { "ClusterId": "Identity",
"Destinations": { "Match": {
"destination1": { "Path": "/api/identity/{**everything}"
"Address": "{{ .Values.reRoutes.identityService.url }}"
} }
} },
}, "Identity Service Swagger": {
"administration-cluster": { "ClusterId": "Identity",
"Destinations": { "Match": {
"destination1": { "Path": "/swagger-json/Identity/swagger/v1/swagger.json"
"Address": "{{ .Values.reRoutes.administrationService.url }}" },
"Transforms": [
{ "PathRemovePrefix": "/swagger-json/Identity" }
]
},
"FeatureManagement": {
"ClusterId": "Administration",
"Match": {
"Path": "/api/feature-management/{**everything}"
} }
} },
}, "PermissionManagement": {
"feature-management-cluster": { "ClusterId": "Administration",
"Destinations": { "Match": {
"destination1": { "Path": "/api/permission-management/{**everything}"
"Address": "{{ .Values.reRoutes.administrationService.url }}"
} }
} },
}, "SettingManagement": {
"permission-management-cluster": { "ClusterId": "Administration",
"Destinations": { "Match": {
"destination1": { "Path": "/api/setting-management/{**everything}"
"Address": "{{ .Values.reRoutes.administrationService.url }}"
} }
} },
}, "Administration Service Swagger": {
"setting-management-cluster": { "ClusterId": "Administration",
"Destinations": { "Match": {
"destination1": { "Path": "/swagger-json/Administration/swagger/v1/swagger.json"
"Address": "{{ .Values.reRoutes.administrationService.url }}" },
"Transforms": [
{ "PathRemovePrefix": "/swagger-json/Administration" }
]
},
"Catalog Service": {
"ClusterId": "Catalog",
"Match": {
"Path": "/api/catalog/{**everything}"
} }
} },
}, "Catalog Service Swagger": {
"catalogCluster": { "ClusterId": "Catalog",
"Destinations": { "Match": {
"destination1": { "Path": "/swagger-json/Catalog/swagger/v1/swagger.json"
"Address": "{{ .Values.reRoutes.catalogService.url }}" },
"Transforms": [
{ "PathRemovePrefix": "/swagger-json/Catalog" }
]
},
"Ordering Service": {
"ClusterId": "Ordering",
"Match": {
"Path": "/api/ordering/{**everything}"
} }
} },
}, "Ordering Service Swagger": {
"orderingCluster": { "ClusterId": "Ordering",
"Destinations": { "Match": {
"destination1": { "Path": "/swagger-json/Ordering/swagger/v1/swagger.json"
"Address": "{{ .Values.reRoutes.orderingService.url }}" },
"Transforms": [
{ "PathRemovePrefix": "/swagger-json/Ordering" }
]
},
"Cmskit Service": {
"ClusterId": "Cmskit",
"Match": {
"Path": "/api/cmskit/{**everything}"
} }
} },
}, "Cmskit Service Swagger": {
"cmskitCluster": { "ClusterId": "Cmskit",
"Destinations": { "Match": {
"destination1": { "Path": "/swagger-json/Cmskit/swagger/v1/swagger.json"
"Address": "{{ .Values.reRoutes.cmskitService.url }}" },
"Transforms": [
{ "PathRemovePrefix": "/swagger-json/Cmskit" }
]
}
},
"Clusters": {
"Identity": {
"Destinations": {
"destination1": {
"Address": "{{ .Values.reRoutes.identityService.url }}"
}
}
},
"Administration": {
"Destinations": {
"destination1": {
"Address": "{{ .Values.reRoutes.administrationService.url }}"
}
}
},
"Catalog": {
"Destinations": {
"destination1": {
"Address": "{{ .Values.reRoutes.catalogService.url }}"
}
}
},
"Ordering": {
"Destinations": {
"destination1": {
"Address": "{{ .Values.reRoutes.orderingService.url }}"
}
}
},
"Cmskit": {
"Destinations": {
"destination1": {
"Address": "{{ .Values.reRoutes.cmskitService.url }}"
}
} }
} }
} }
} }
}
} }

12
etc/k8s/eshoponabp/charts/gateway-web/values.yaml

@ -13,16 +13,16 @@ config:
elasticsearchHost: # elasticsearchHost: #
stringEncryptionDefaultPassPhrase: gsKnGZ041HLL4IM8 stringEncryptionDefaultPassPhrase: gsKnGZ041HLL4IM8
reRoutes: reRoutes:
accountService:
url: http://eshop-st-authserver
identityService: identityService:
url: http://eshop-st-identity url: https://eshop-st-identity
administrationService: administrationService:
url: http://eshop-st-administration url: https://eshop-st-administration
catalogService: catalogService:
url: http://eshop-st-catalog url: https://eshop-st-catalog
orderingService: orderingService:
url: http://eshop-st-order url: https://eshop-st-ordering
cmskitService:
url: https://eshop-st-cmskit
ingress: ingress:
host: # eshop-st-gateway-web host: # eshop-st-gateway-web
tlsSecret: eshop-wildcard-tls tlsSecret: eshop-wildcard-tls

26
etc/k8s/eshoponabp/values.st.yaml

@ -143,18 +143,16 @@ gateway-web:
repository: "eshoponabp/gateway-web" repository: "eshoponabp/gateway-web"
tag: 1.0.0 tag: 1.0.0
reRoutes: reRoutes:
accountService:
url: http://account.eshoponabp.dev
identityService: identityService:
url: http://identity.eshoponabp.dev url: http://eshop-st-identity
administrationService: administrationService:
url: http://administration.eshoponabp.dev url: http://eshop-st-administration
catalogService: catalogService:
url: http://catalog.eshoponabp.dev url: http://eshop-st-catalog
orderingService: orderingService:
url: http://ordering.eshoponabp.dev url: http://eshop-st-ordering
cmskitService: cmskitService:
url: http://cmskit.eshoponabp.dev url: http://eshop-st-cmskit
# gateway-web-public sub-chart override # gateway-web-public sub-chart override
gateway-web-public: gateway-web-public:
@ -177,19 +175,19 @@ gateway-web-public:
tag: 1.0.0 tag: 1.0.0
reRoutes: reRoutes:
identityService: identityService:
url: https://identity.eshoponabp.dev url: http://identity.eshoponabp.dev
administrationService: administrationService:
url: https://administration.eshoponabp.dev url: http://administration.eshoponabp.dev
catalogService: catalogService:
url: https://catalog.eshoponabp.dev url: http://catalog.eshoponabp.dev
basketService: basketService:
url: https://basket.eshoponabp.dev url: http://basket.eshoponabp.dev
orderingService: orderingService:
url: https://ordering.eshoponabp.dev url: http://ordering.eshoponabp.dev
cmskitService: cmskitService:
url: https://cmskit.eshoponabp.dev url: http://cmskit.eshoponabp.dev
paymentService: paymentService:
url: https://payment.eshoponabp.dev url: http://payment.eshoponabp.dev
# basket-service sub-chart override # basket-service sub-chart override
basket: basket:

Loading…
Cancel
Save