Created
June 18, 2021 14:09
-
-
Save welshstew/c38fc9197436a668ae6e58fc24e16fe4 to your computer and use it in GitHub Desktop.
nominatim-openshift - note you need `oc adm policy add-scc-to-user anyuid system:serviceaccount:$NAMESPACE:default`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: nominatim | |
name: nominatim | |
namespace: nominatim | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: nominatim | |
template: | |
metadata: | |
labels: | |
app: nominatim | |
spec: | |
containers: | |
- env: | |
- name: PBF_URL | |
value: https://download.geofabrik.de/europe/monaco-latest.osm.pbf | |
- name: REPLICATION_URL | |
value: https://download.geofabrik.de/europe/monaco-updates/ | |
image: docker.io/mediagis/nominatim:3.7 | |
imagePullPolicy: IfNotPresent | |
name: nominatim | |
ports: | |
- containerPort: 8080 | |
protocol: TCP | |
volumeMounts: | |
- mountPath: /var/lib/postgresql/12/main | |
name: nominatim-data | |
subPath: postgres | |
- mountPath: /dev/shm | |
name: dshm | |
priority: 0 | |
restartPolicy: Always | |
serviceAccount: default | |
serviceAccountName: default | |
terminationGracePeriodSeconds: 30 | |
volumes: | |
- name: nominatim-data | |
persistentVolumeClaim: | |
claimName: nominatim-pvc | |
- name: dshm | |
emptyDir: | |
medium: Memory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
labels: | |
app: nominatim | |
name: nominatim-pvc | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 8Gi | |
storageClassName: gp2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: example | |
namespace: nominatim | |
spec: | |
ports: | |
- port: 8080 | |
protocol: TCP | |
targetPort: 8080 | |
selector: | |
app: nominatim | |
sessionAffinity: None | |
type: ClusterIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment