apiVersion: apps/v1 kind: Deployment metadata: name: tileserver-gl namespace: maps spec: replicas: 1 selector: matchLabels: app: tileserver-gl template: metadata: labels: app: tileserver-gl spec: containers: - name: tileserver image: maptiler/tileserver-gl:latest imagePullPolicy: IfNotPresent env: - name: UPLOAD_DIR value: /data ports: - containerPort: 8080 name: http volumeMounts: - name: tiles-data mountPath: /data readinessProbe: httpGet: path: / port: http initialDelaySeconds: 10 periodSeconds: 10 livenessProbe: httpGet: path: / port: http initialDelaySeconds: 30 periodSeconds: 20 resources: requests: cpu: "250m" memory: "512Mi" limits: cpu: "2" memory: "2Gi" volumes: - name: tiles-data persistentVolumeClaim: claimName: tiles-data