--- apiVersion: apps/v1 kind: Deployment metadata: name: ytd-api namespace: ytd labels: app: ytd-api spec: replicas: 1 selector: matchLabels: app: ytd-api template: metadata: labels: app: ytd-api spec: containers: - name: ytd image: guipguia/dmb:ytd ports: - containerPort: 8080 volumeMounts: - name: downloads mountPath: /tmp/downloads resources: requests: memory: "128Mi" cpu: "100m" limits: memory: "512Mi" cpu: "500m" volumes: - name: downloads persistentVolumeClaim: claimName: ytd-data --- apiVersion: v1 kind: Service metadata: name: ytd-api namespace: ytd spec: selector: app: ytd-api ports: - port: 8080 targetPort: 8080