MapProxy Installation

Introduction

MapProxy server is available for installation along side TileDB Cloud Enterprise in Kubernetes clusters though a helm chart. Installation of MapProxy assumes you have already configured and have a running instance of TileDB Cloud Enterprise. If you do not have TileDB Cloud Enterprise running please see Installation Instructions.

Accounts

In order to use MapProxy server with TileDB Cloud Enterprise Edition you will need to get access to the private docker registry and the private helm registry. Please contacts your TileDB, Inc account representative for credentials to these services.

Create Custom Values.yaml

Before you install MapProxy server it is important to setup and customize your installation. This involves creating a custom values file for helm. Below is a sample file you can save and edit.
Save this value as values.yaml . There are several required changes, all sections which require changes are prefixed with a comment of # REQUIRED:. Examples of the changes needed including setting access token for TileDB Cloud Enterprise, and setting the array URI.
values.yaml
1
# Default values for mapproxy
2
# This is a YAML-formatted file.
3
replicaCount: 1
4
5
serviceAccount:
6
# The name of the service account to use.
7
# If not set and create is true, a name is generated using the fullname template
8
name: "default"
9
10
# REQUIRED: set the TileDB Cloud Configuration. This should be a API token
11
# created in the TileDB Cloud UI and the hostname where TileDB Cloud REST API
12
# is exposed
13
tiledbConfig:
14
token: ""
15
host: "tiledb-cloud-rest"
16
17
# REQUIRED: Configure mapproxy settings, including setting array_uri
18
mapProxConfig:
19
services:
20
demo:
21
wms:
22
wmts:
23
24
layers:
25
- name: tiledb_prod
26
title: TileDB Production Source
27
sources: [tiledb_cache]
28
29
caches:
30
tiledb_cache:
31
sources: []
32
grids: [GLOBAL_WEBMERCATOR]
33
cache:
34
type: tiledb
35
# REQUIRED: Set the array_uri here
36
array_uri: tiledb_cache
37
38
ingress:
39
enabled: true
40
# Configure any needed annotations. For instance if you are using a different ingress besides nginx set that here
41
annotations:
42
kubernetes.io/ingress.class: nginx
43
# REQUIRED: set the mapproxy hostname
44
hosts:
45
- mapproxy.tiledb.example.com
46
# tls: []
47
# - secretName: chart-example-tls
48
# hosts:
49
# - chart-example.local
50
51
# By default we set limits to 2 CPUs and 2GB Memory
52
# resources:
53
# limits:
54
# cpu: 2000m
55
# memory: 2Gi
56
# requests:
57
# cpu: 2000m
58
# memory: 2Gi
59
Copied!

Installing MapProxy Server

Once you have created the values.yaml file you can install MapProxy by running the following helm command.
1
helm install \
2
--namespace tiledb-cloud \
3
--values values.yaml \
4
tiledb-cloud-mapproxy \
5
tiledb/mapproxy
Copied!

Upgrades

When new releases of MapProxy server are announced you can easily upgrade your installation by first updating the helm repository:
1
helm repo update tiledb
Copied!
After the repository is updated you can run the helm upgrade:
1
helm upgrade --install \
2
--namespace tiledb-cloud \
3
--values values.yaml \
4
tiledb-cloud-mapproxy \
5
tiledb/mapproxy
Copied!
Last modified 8mo ago