75-nginx-deployment.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. kompose.cmd: kompose convert
  6. kompose.version: 1.34.0 (cbf2835db)
  7. labels:
  8. io.kompose.service: nginx
  9. name: nginx
  10. namespace: finanzas
  11. spec:
  12. replicas: 1
  13. selector:
  14. matchLabels:
  15. io.kompose.service: nginx
  16. strategy:
  17. type: Recreate
  18. template:
  19. metadata:
  20. annotations:
  21. kompose.cmd: kompose convert
  22. kompose.version: 1.34.0 (cbf2835db)
  23. labels:
  24. io.kompose.service: nginx
  25. spec:
  26. containers:
  27. - image: registry.reymota.es/nginx-finanzas-x86_64:1.4
  28. name: nginx
  29. ports:
  30. - containerPort: 80
  31. protocol: TCP
  32. volumeMounts:
  33. - mountPath: /app/src/staticfiles
  34. name: static-volume
  35. - mountPath: /app/src/mediafiles
  36. name: finanzas-media
  37. imagePullSecrets:
  38. - name: myregistrykey
  39. restartPolicy: Always
  40. volumes:
  41. - name: static-volume
  42. persistentVolumeClaim:
  43. claimName: static-volume
  44. - name: finanzas-media
  45. persistentVolumeClaim:
  46. claimName: finanzas-media