You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

70 lines
1.5 KiB

apiVersion: v1
kind: Service
metadata:
name: libros
spec:
type: NodePort
ports:
- name: http
port: 8000
nodePort: 30343
targetPort: libros
selector:
app: libros
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: libros
labels:
app: libros
spec:
replicas: 1
selector:
matchLabels:
app: libros
strategy:
type: Recreate
template:
metadata:
labels:
app: libros
spec:
containers:
#- args:
#- gunicorn
#- --bind
#- 0.0.0.0:5000
#- libros:create_app()
- name: libros
image: registry.reymota.es/libros:$IMG_VERSION
env:
- name: VERSION
value: "$IMG_VERSION"
- name: ENVIRONMENT
value: "Producción"
ports:
- containerPort: 8000
name: libros
resources: {}
volumeMounts:
- mountPath: /libros/media
name: libros-media
- mountPath: /libros/datos
name: libros-datos
- mountPath: /libros/gestion/migrations
name: libros-migrations
imagePullSecrets:
- name: myregistrykey
restartPolicy: Always
volumes:
- name: libros-media
persistentVolumeClaim:
claimName: libros-media
- name: libros-datos
persistentVolumeClaim:
claimName: libros-datos
- name: libros-migrations
persistentVolumeClaim:
claimName: libros-migrations
status: {}