|
|
|
@ -1,43 +1,43 @@ |
|
|
|
apiVersion: v1 |
|
|
|
kind: Service |
|
|
|
metadata: |
|
|
|
name: reymota |
|
|
|
namespace: reymota |
|
|
|
name: jugaralpadel |
|
|
|
namespace: jugaralpadel |
|
|
|
spec: |
|
|
|
ports: |
|
|
|
- name: "8000" |
|
|
|
port: 8000 |
|
|
|
targetPort: 8000 |
|
|
|
selector: |
|
|
|
app: reymota |
|
|
|
app: jugaralpadel |
|
|
|
--- |
|
|
|
apiVersion: apps/v1 |
|
|
|
kind: Deployment |
|
|
|
metadata: |
|
|
|
name: reymota |
|
|
|
namespace: reymota |
|
|
|
name: jugaralpadel |
|
|
|
namespace: jugaralpadel |
|
|
|
labels: |
|
|
|
app: reymota |
|
|
|
app: jugaralpadel |
|
|
|
spec: |
|
|
|
replicas: 1 |
|
|
|
selector: |
|
|
|
matchLabels: |
|
|
|
app: reymota |
|
|
|
app: jugaralpadel |
|
|
|
strategy: |
|
|
|
type: Recreate |
|
|
|
template: |
|
|
|
metadata: |
|
|
|
labels: |
|
|
|
app: reymota |
|
|
|
app: jugaralpadel |
|
|
|
spec: |
|
|
|
containers: |
|
|
|
- args: |
|
|
|
- gunicorn |
|
|
|
- reymota.wsgi:application |
|
|
|
- gestion_reservas.wsgi:application |
|
|
|
- --bind |
|
|
|
- 0.0.0.0:8000 |
|
|
|
name: reymota |
|
|
|
image: $REGISTRY/reymota-$ARQUITECTURA:$IMG_VERSION |
|
|
|
name: jugaralpadel |
|
|
|
image: $REGISTRY/jugaralpadel-$ARQUITECTURA:$IMG_VERSION |
|
|
|
env: |
|
|
|
- name: VERSION |
|
|
|
value: "$IMG_VERSION" |
|
|
|
@ -102,39 +102,39 @@ spec: |
|
|
|
- containerPort: 8000 |
|
|
|
protocol: TCP |
|
|
|
volumeMounts: |
|
|
|
- mountPath: /app/reymota/mediafiles |
|
|
|
name: reymota-media |
|
|
|
- mountPath: /app/jugaralpadel/mediafiles |
|
|
|
name: jugaralpadel-media |
|
|
|
|
|
|
|
- mountPath: /app/reymota/lyrics/migrations |
|
|
|
name: reymota-lyrics-migrations |
|
|
|
- mountPath: /app/reymota/repostajes/migrations |
|
|
|
name: reymota-repostajes-migrations |
|
|
|
- mountPath: /app/reymota/libros/migrations |
|
|
|
name: reymota-libros-migrations |
|
|
|
- mountPath: /app/reymota/reymotausers/migrations |
|
|
|
name: reymota-reymotausers-migrations |
|
|
|
- mountPath: /app/jugaralpadel/lyrics/migrations |
|
|
|
name: jugaralpadel-lyrics-migrations |
|
|
|
- mountPath: /app/jugaralpadel/repostajes/migrations |
|
|
|
name: jugaralpadel-repostajes-migrations |
|
|
|
- mountPath: /app/jugaralpadel/libros/migrations |
|
|
|
name: jugaralpadel-libros-migrations |
|
|
|
- mountPath: /app/jugaralpadel/jugaralpadelusers/migrations |
|
|
|
name: jugaralpadel-jugaralpadelusers-migrations |
|
|
|
|
|
|
|
- mountPath: /app/reymota/staticfiles |
|
|
|
- mountPath: /app/jugaralpadel/staticfiles |
|
|
|
name: static-volume |
|
|
|
imagePullSecrets: |
|
|
|
- name: myregistrykey |
|
|
|
restartPolicy: Always |
|
|
|
volumes: |
|
|
|
- name: reymota-media |
|
|
|
- name: jugaralpadel-media |
|
|
|
persistentVolumeClaim: |
|
|
|
claimName: reymota-media |
|
|
|
- name: reymota-lyrics-migrations |
|
|
|
claimName: jugaralpadel-media |
|
|
|
- name: jugaralpadel-lyrics-migrations |
|
|
|
persistentVolumeClaim: |
|
|
|
claimName: reymota-lyrics-migrations |
|
|
|
- name: reymota-repostajes-migrations |
|
|
|
claimName: jugaralpadel-lyrics-migrations |
|
|
|
- name: jugaralpadel-repostajes-migrations |
|
|
|
persistentVolumeClaim: |
|
|
|
claimName: reymota-repostajes-migrations |
|
|
|
- name: reymota-libros-migrations |
|
|
|
claimName: jugaralpadel-repostajes-migrations |
|
|
|
- name: jugaralpadel-libros-migrations |
|
|
|
persistentVolumeClaim: |
|
|
|
claimName: reymota-libros-migrations |
|
|
|
- name: reymota-reymotausers-migrations |
|
|
|
claimName: jugaralpadel-libros-migrations |
|
|
|
- name: jugaralpadel-jugaralpadelusers-migrations |
|
|
|
persistentVolumeClaim: |
|
|
|
claimName: reymota-reymotausers-migrations |
|
|
|
claimName: jugaralpadel-jugaralpadelusers-migrations |
|
|
|
- name: static-volume |
|
|
|
persistentVolumeClaim: |
|
|
|
claimName: static-volume |
|
|
|
|