apiVersion: apps/v1 kind: Deployment metadata: name: otp labels: app: otp spec: replicas: 1 selector: matchLabels: app: otp template: metadata: labels: app: otp spec: containers: - name: otp image: opentripplanner/opentripplanner:2.6.0 command: ["--load", "--serve"] ports: - containerPort: 8080 volumeMounts: - name: otp-data mountPath: /var/opentripplanner resources: requests: memory: "1Gi" cpu: "250m" limits: memory: "2Gi" cpu: "1000m" readinessProbe: httpGet: path: /otp/actuators/health port: 8080 initialDelaySeconds: 120 periodSeconds: 30 volumes: - name: otp-data persistentVolumeClaim: claimName: otp-data-pvc --- apiVersion: v1 kind: Service metadata: name: otp spec: selector: app: otp ports: - port: 8080 targetPort: 8080