Skip to content

Commit daefa3f

Browse files
committed
fixes
1 parent d55e760 commit daefa3f

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed

articles/energy-data-services/includes/how-to/how-to-deploy-gcz/deploy-gcz-on-aks.md

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ ms.date: 05/30/2024
1313

1414
Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Service (AKS).
1515

16-
> [!IMPORTANT]
17-
> The current deployment of GCZ using AKS is limited to a default configuration of included schemas, please see [OSDU GitLab](https://community.opengroup.org/osdu/platform/consumption/geospatial/-/blob/master/devops/azure/transformer/application.yml) for information regarding the supported schemas. To add or change schemas (i.e. newer versions) a custom container image will need to be created.
18-
1916
## Prerequisites
2017

2118
- Azure Subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free).
@@ -116,8 +113,8 @@ Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Servic
116113
tag: latest
117114
service:
118115
type: LoadBalancer
119-
annotations:
120-
service.beta.kubernetes.io/azure-load-balancer-internal: "$PRIVATE_NETWORK"
116+
configuration:
117+
privateNetwork: "$PRIVATE_NETWORK"
121118
transformer:
122119
namespace: $NAMESPACE
123120
image:
@@ -126,9 +123,8 @@ Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Servic
126123
tag: latest
127124
service:
128125
type: LoadBalancer
129-
annotations:
130-
service.beta.kubernetes.io/azure-load-balancer-internal: "$PRIVATE_NETWORK"
131126
configuration:
127+
privateNetwork: "$PRIVATE_NETWORK"
132128
datapartitionid: $DATA_PARTITION_ID
133129
clientId: $AZURE_CLIENT_ID
134130
tenantId: $AZURE_TENANT_ID
@@ -175,8 +171,8 @@ Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Servic
175171
tag: latest
176172
service:
177173
type: LoadBalancer
178-
annotations:
179-
service.beta.kubernetes.io/azure-load-balancer-internal: "$PRIVATE_NETWORK"
174+
configuration:
175+
privateNetwork: "$PRIVATE_NETWORK"
180176
transformer:
181177
namespace: $NAMESPACE
182178
image:
@@ -185,9 +181,8 @@ Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Servic
185181
tag: latest
186182
service:
187183
type: LoadBalancer
188-
annotations:
189-
service.beta.kubernetes.io/azure-load-balancer-internal: "$PRIVATE_NETWORK"
190184
configuration:
185+
privateNetwork: "$PRIVATE_NETWORK"
191186
datapartitionid: $DATA_PARTITION_ID
192187
clientId: $AZURE_CLIENT_ID
193188
tenantId: $AZURE_TENANT_ID
@@ -218,9 +213,7 @@ Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Servic
218213
name: gcz-provider
219214
namespace: {{ $.Values.global.provider.namespace }}
220215
annotations:
221-
{{- range \$key, \$value := $.Values.global.provider.service.annotations }}
222-
{{ \$key }}: {{ \$value | quote }}
223-
{{- end }}
216+
service.beta.kubernetes.io/azure-load-balancer-internal: "{{ $.Values.global.provider.configuration.privateNetwork }}"
224217
spec:
225218
selector:
226219
app: provider
@@ -238,9 +231,7 @@ Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Servic
238231
name: gcz-transformer
239232
namespace: {{ $.Values.global.transformer.namespace }}
240233
annotations:
241-
{{- range \$key, \$value := $.Values.global.transformer.service.annotations }}
242-
{{ \$key }}: {{ \$value | quote }}
243-
{{- end }}
234+
service.beta.kubernetes.io/azure-load-balancer-internal: "{{ $.Values.global.transformer.configuration.privateNetwork }}"
244235
spec:
245236
selector:
246237
app: transformer
@@ -262,9 +253,7 @@ Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Servic
262253
name: gcz-provider
263254
namespace: {{ $.Values.global.provider.namespace }}
264255
annotations:
265-
{{- range `$key, `$value := $.Values.global.provider.service.annotations }}
266-
{{ `$key }}: {{ `$value | quote }}
267-
{{- end }}
256+
service.beta.kubernetes.io/azure-load-balancer-internal: "{{ $.Values.global.provider.configuration.privateNetwork }}"
268257
spec:
269258
selector:
270259
app: provider
@@ -282,9 +271,7 @@ Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Servic
282271
name: gcz-transformer
283272
namespace: {{ $.Values.global.transformer.namespace }}
284273
annotations:
285-
{{- range `$key, `$value := $.Values.global.transformer.service.annotations }}
286-
{{ `$key }}: {{ `$value | quote }}
287-
{{- end }}
274+
service.beta.kubernetes.io/azure-load-balancer-internal: "{{ $.Values.global.transformer.configuration.privateNetwork }}"
288275
spec:
289276
selector:
290277
app: transformer
@@ -347,3 +334,6 @@ Learn how to deploy Geospatial Consumption Zone (GCZ) on Azure Kubernetes Servic
347334
```
348335
349336
These IPs are used to connect to the GCZ API endpoints.
337+
338+
> [!IMPORTANT]
339+
> If you wish to update the configuration files (e.g., `application.yml` or `koop-config.json`), you must update the AKS configuration (configmap) and then delete the existing pods for the `provider` and `transformer` services. The pods will be recreated with the new configuration. If you change the configuration using the GCZ APIs, the changes **will not** persist after a pod restart.

0 commit comments

Comments
 (0)