|
| 1 | +apiVersion: apps/v1 |
| 2 | +kind: Deployment |
| 3 | +metadata: |
| 4 | + labels: |
| 5 | + app.kubernetes.io/instance: overpass-api |
| 6 | + app.kubernetes.io/name: overpass-api |
| 7 | + app.kubernetes.io/version: 0.7.62 |
| 8 | + name: overpass-api |
| 9 | +spec: |
| 10 | + progressDeadlineSeconds: 600 |
| 11 | + replicas: 1 |
| 12 | + revisionHistoryLimit: 10 |
| 13 | + selector: |
| 14 | + matchLabels: |
| 15 | + app.kubernetes.io/instance: overpass-api |
| 16 | + app.kubernetes.io/name: overpass-api |
| 17 | + strategy: |
| 18 | + rollingUpdate: |
| 19 | + maxSurge: 25% |
| 20 | + maxUnavailable: 25% |
| 21 | + type: RollingUpdate |
| 22 | + template: |
| 23 | + metadata: |
| 24 | + labels: |
| 25 | + app.kubernetes.io/instance: overpass-api |
| 26 | + app.kubernetes.io/name: overpass-api |
| 27 | + spec: |
| 28 | + automountServiceAccountToken: false |
| 29 | + containers: |
| 30 | + - env: |
| 31 | + - name: OVERPASS_PLANET_PREPROCESS |
| 32 | + value: mv /db/planet.osm.bz2 /db/planet.osm.pbf && osmium cat -o /db/planet.osm.bz2 |
| 33 | + /db/planet.osm.pbf && rm /db/planet.osm.pbf |
| 34 | + - name: OVERPASS_MODE |
| 35 | + value: init |
| 36 | + - name: OVERPASS_META |
| 37 | + value: "no" |
| 38 | + - name: OVERPASS_FASTCGI_PROCESSES |
| 39 | + value: "4" |
| 40 | + - name: OVERPASS_RATE_LIMIT |
| 41 | + value: "1024" |
| 42 | + - name: OVERPASS_TIME |
| 43 | + value: "1000" |
| 44 | + - name: OVERPASS_SPACE |
| 45 | + value: "8589934592" |
| 46 | + - name: OVERPASS_MAX_TIMEOUT |
| 47 | + value: "1000" |
| 48 | + - name: OVERPASS_UPDATE_SLEEP |
| 49 | + value: "3600" |
| 50 | + - name: OVERPASS_PLANET_URL |
| 51 | + value: https://download.geofabrik.de/europe/germany/nordrhein-westfalen/muenster-regbez-latest.osm.pbf |
| 52 | + - name: OVERPASS_DIFF_URL |
| 53 | + value: http://download.geofabrik.de/europe/germany/nordrhein-westfalen/muenster-regbez-updates |
| 54 | + - name: OVERPASS_USE_AREAS |
| 55 | + value: "true" |
| 56 | + - name: OVERPASS_STOP_AFTER_INIT |
| 57 | + value: "false" |
| 58 | + image: docker.io/wiktorn/overpass-api:0.7.62 |
| 59 | + imagePullPolicy: IfNotPresent |
| 60 | + name: overpass-api |
| 61 | + ports: |
| 62 | + - containerPort: 80 |
| 63 | + name: http |
| 64 | + protocol: TCP |
| 65 | + resources: |
| 66 | + requests: |
| 67 | + cpu: 500m |
| 68 | + memory: 1Gi |
| 69 | + terminationMessagePath: /dev/termination-log |
| 70 | + terminationMessagePolicy: File |
| 71 | + volumeMounts: |
| 72 | + - mountPath: /db |
| 73 | + name: data |
| 74 | + dnsPolicy: ClusterFirst |
| 75 | + restartPolicy: Always |
| 76 | + schedulerName: default-scheduler |
| 77 | + securityContext: {} |
| 78 | + serviceAccount: overpass-api-sa |
| 79 | + serviceAccountName: overpass-api-sa |
| 80 | + terminationGracePeriodSeconds: 30 |
| 81 | + volumes: |
| 82 | + - name: data |
| 83 | + persistentVolumeClaim: |
| 84 | + claimName: overpass-api-data |
0 commit comments