| @ -0,0 +1 @@ | |||||
| kubectl exec -ti deployment.apps/lyrics -- /bin/bash | |||||
| @ -0,0 +1,14 @@ | |||||
| apiVersion: v1 | |||||
| kind: PersistentVolume | |||||
| metadata: | |||||
| name: reymotapy-app-folder | |||||
| labels: | |||||
| app: reymotapy | |||||
| spec: | |||||
| capacity: | |||||
| storage: 100Mi | |||||
| accessModes: | |||||
| - ReadWriteOnce | |||||
| hostPath: | |||||
| path: "/mnt/Externo/reymotapy" | |||||
| @ -0,0 +1,53 @@ | |||||
| 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: {} | |||||
| @ -0,0 +1,14 @@ | |||||
| apiVersion: v1 | |||||
| kind: PersistentVolumeClaim | |||||
| metadata: | |||||
| creationTimestamp: null | |||||
| labels: | |||||
| io.kompose.service: reymotapy-prod | |||||
| name: reymotapy-prod | |||||
| spec: | |||||
| accessModes: | |||||
| - ReadWriteOnce | |||||
| resources: | |||||
| requests: | |||||
| storage: 100Mi | |||||
| status: {} | |||||
| @ -0,0 +1 @@ | |||||
| docker run -it creylopez/lyrics:5.3 bash | |||||
| @ -0,0 +1,14 @@ | |||||
| blinker==1.8.2 | |||||
| click==8.1.7 | |||||
| Flask==3.0.3 | |||||
| Flask-Login==0.6.3 | |||||
| Flask-SQLAlchemy==3.1.1 | |||||
| greenlet==3.0.3 | |||||
| gunicorn==22.0.0 | |||||
| itsdangerous==2.2.0 | |||||
| Jinja2==3.1.4 | |||||
| MarkupSafe==2.1.5 | |||||
| packaging==24.1 | |||||
| SQLAlchemy==2.0.31 | |||||
| typing_extensions==4.12.2 | |||||
| Werkzeug==3.0.3 | |||||
| @ -0,0 +1 @@ | |||||
| docker run -it creylopez/reymotapy:1.0 bash | |||||