|
|
@ -3,88 +3,90 @@ kind: ConfigMap |
|
|
metadata: |
|
|
metadata: |
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap |
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap |
|
|
data: |
|
|
data: |
|
|
ocelot.json: |- |
|
|
yarp.json: |- |
|
|
{ |
|
|
{ |
|
|
"GlobalConfiguration": { |
|
|
"ReverseProxy": { |
|
|
"BaseUrl": "{{ .Values.config.globalConfigurationBaseUrl }}" |
|
|
"Routes": { |
|
|
}, |
|
|
"Account Service": { |
|
|
"Routes": [ |
|
|
"ClusterId": "account-cluster", |
|
|
{ |
|
|
"Match": { |
|
|
"ServiceKey": "Identity Service", |
|
|
"Path": "/api/account/{**everything}" |
|
|
"DownstreamPathTemplate": "/api/identity/{everything}", |
|
|
} |
|
|
"DownstreamScheme": "{{ .Values.reRoutes.identityService.schema }}", |
|
|
}, |
|
|
"DownstreamHostAndPorts": [ |
|
|
"Identity Service": { |
|
|
{ |
|
|
"ClusterId": "identity-cluster", |
|
|
"Host": "{{ .Values.reRoutes.identityService.host }}", |
|
|
"Match": { |
|
|
"Port": {{ .Values.reRoutes.identityService.port }} |
|
|
"Path": "/api/identity/{**everything}" |
|
|
} |
|
|
} |
|
|
], |
|
|
}, |
|
|
"UpstreamPathTemplate": "/api/identity/{everything}", |
|
|
"Administration Service": { |
|
|
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|
|
"ClusterId": "administration-cluster", |
|
|
}, |
|
|
"Match": { |
|
|
{ |
|
|
"Path": "/api/abp/{**everything}" |
|
|
"ServiceKey": "Account Service", |
|
|
} |
|
|
"DownstreamPathTemplate": "/api/account/{everything}", |
|
|
}, |
|
|
"DownstreamScheme": "{{ .Values.reRoutes.accountService.schema }}", |
|
|
"feature-management-route": { |
|
|
"DownstreamHostAndPorts": [ |
|
|
"ClusterId": "feature-management-cluster", |
|
|
{ |
|
|
"Match": { |
|
|
"Host": "{{ .Values.reRoutes.accountService.host }}", |
|
|
"Path": "/api/feature-management/{**everything}" |
|
|
"Port": {{ .Values.reRoutes.accountService.port }} |
|
|
} |
|
|
} |
|
|
}, |
|
|
], |
|
|
"permission-management-route": { |
|
|
"UpstreamPathTemplate": "/api/account/{everything}", |
|
|
"ClusterId": "permission-management-cluster", |
|
|
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|
|
"Match": { |
|
|
}, |
|
|
"Path": "/api/permission-management/{**everything}" |
|
|
{ |
|
|
} |
|
|
"ServiceKey": "Administration Service", |
|
|
}, |
|
|
"DownstreamPathTemplate": "/api/abp/{everything}", |
|
|
"setting-management-route": { |
|
|
"DownstreamScheme": "{{ .Values.reRoutes.administrationService.schema }}", |
|
|
"ClusterId": "setting-management-cluster", |
|
|
"DownstreamHostAndPorts": [ |
|
|
"Match": { |
|
|
{ |
|
|
"Path": "/api/setting-management/{**everything}" |
|
|
"Host": "{{ .Values.reRoutes.administrationService.host }}", |
|
|
} |
|
|
"Port": "{{ .Values.reRoutes.administrationService.port }}", |
|
|
|
|
|
} |
|
|
} |
|
|
], |
|
|
}, |
|
|
"UpstreamPathTemplate": "/api/abp/{everything}", |
|
|
"Clusters": { |
|
|
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|
|
"account-cluster": { |
|
|
}, |
|
|
"Destinations": { |
|
|
{ |
|
|
"destination1": { |
|
|
"ServiceKey": "Administration Service", |
|
|
"Address": "{{ .Values.reRoutes.accountService.url }}" |
|
|
"DownstreamPathTemplate": "/api/feature-management/{everything}", |
|
|
} |
|
|
"DownstreamScheme": "{{ .Values.reRoutes.administrationService.schema }}", |
|
|
} |
|
|
"DownstreamHostAndPorts": [ |
|
|
}, |
|
|
{ |
|
|
"identity-cluster": { |
|
|
"Host": "{{ .Values.reRoutes.administrationService.host }}", |
|
|
"Destinations": { |
|
|
"Port": "{{ .Values.reRoutes.administrationService.port }}", |
|
|
"destination1": { |
|
|
} |
|
|
"Address": "{{ .Values.reRoutes.identityService.url }}" |
|
|
], |
|
|
} |
|
|
"UpstreamPathTemplate": "/api/feature-management/{everything}", |
|
|
} |
|
|
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|
|
}, |
|
|
}, |
|
|
"administration-cluster": { |
|
|
{ |
|
|
"Destinations": { |
|
|
"ServiceKey": "Administration Service", |
|
|
"destination1": { |
|
|
"DownstreamPathTemplate": "/api/permission-management/{everything}", |
|
|
"Address": "{{ .Values.reRoutes.administrationService.url }}" |
|
|
"DownstreamScheme": "{{ .Values.reRoutes.administrationService.schema }}", |
|
|
} |
|
|
"DownstreamHostAndPorts": [ |
|
|
} |
|
|
{ |
|
|
}, |
|
|
"Host": "{{ .Values.reRoutes.administrationService.host }}", |
|
|
"feature-management-cluster": { |
|
|
"Port": "{{ .Values.reRoutes.administrationService.port }}", |
|
|
"Destinations": { |
|
|
} |
|
|
"destination1": { |
|
|
], |
|
|
"Address": "{{ .Values.reRoutes.administrationService.url }}" |
|
|
"UpstreamPathTemplate": "/api/permission-management/{everything}", |
|
|
} |
|
|
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
"permission-management-cluster": { |
|
|
"ServiceKey": "Administration Service", |
|
|
"Destinations": { |
|
|
"DownstreamPathTemplate": "/api/setting-management/{everything}", |
|
|
"destination1": { |
|
|
"DownstreamScheme": "{{ .Values.reRoutes.administrationService.schema }}", |
|
|
"Address": "{{ .Values.reRoutes.administrationService.url }}" |
|
|
"DownstreamHostAndPorts": [ |
|
|
} |
|
|
{ |
|
|
} |
|
|
"Host": "{{ .Values.reRoutes.administrationService.host }}", |
|
|
}, |
|
|
"Port": "{{ .Values.reRoutes.administrationService.port }}", |
|
|
"setting-management-cluster": { |
|
|
|
|
|
"Destinations": { |
|
|
|
|
|
"destination1": { |
|
|
|
|
|
"Address": "{{ .Values.reRoutes.administrationService.url }}" |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
], |
|
|
} |
|
|
"UpstreamPathTemplate": "/api/setting-management/{everything}", |
|
|
} |
|
|
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
} |