apiVersion: v1 kind: Service metadata: name: reymotapy spec: type: NodePort ports: - name: http port: 5000 nodePort: 30338 targetPort: reymotapy selector: app: reymotapy --- apiVersion: apps/v1 kind: Deployment metadata: name: reymotapy labels: app: reymotapy spec: replicas: 1 selector: matchLabels: app: reymotapy strategy: type: Recreate template: metadata: labels: app: reymotapy spec: containers: - args: - gunicorn - --bind - 0.0.0.0:5000 - reymotapy:create_app() image: creylopez/reymotapy:1.0 name: reymotapy ports: - containerPort: 5000 name: reymotapy resources: {} volumeMounts: - mountPath: /reymotapy/instance name: reymotapy-prod restartPolicy: Always volumes: - name: reymotapy-prod persistentVolumeClaim: claimName: reymotapy-prod status: {}