|
|
@@ -4,9 +4,11 @@ metadata:
|
|
|
name: reymota
|
|
|
namespace: reymota
|
|
|
spec:
|
|
|
+ type: NodePort
|
|
|
ports:
|
|
|
- name: "8000"
|
|
|
port: 8000
|
|
|
+ nodePort: 30347
|
|
|
targetPort: 8000
|
|
|
selector:
|
|
|
app: reymota
|
|
|
@@ -31,13 +33,8 @@ spec:
|
|
|
app: reymota
|
|
|
spec:
|
|
|
containers:
|
|
|
- - args:
|
|
|
- - gunicorn
|
|
|
- - reymota.wsgi:application
|
|
|
- - --bind
|
|
|
- - 0.0.0.0:8000
|
|
|
- name: reymota
|
|
|
- image: $REGISTRY/reymota-$ARQUITECTURA:$IMG_VERSION
|
|
|
+ - name: reymota
|
|
|
+ image: registry.reymota.es/reymota:<TAG>
|
|
|
env:
|
|
|
- name: IMG_VERSION
|
|
|
value: "$IMG_VERSION"
|
|
|
@@ -77,16 +74,16 @@ spec:
|
|
|
- containerPort: 8000
|
|
|
protocol: TCP
|
|
|
volumeMounts:
|
|
|
- - mountPath: /app/src/mediafiles
|
|
|
+ - mountPath: /app/mediafiles
|
|
|
name: reymota-media
|
|
|
- - mountPath: /app/src/lyrics/migrations
|
|
|
+ - mountPath: /app/lyrics/migrations
|
|
|
name: reymota-lyrics-migrations
|
|
|
- - mountPath: /app/src/repostajes/migrations
|
|
|
+ - mountPath: /app/repostajes/migrations
|
|
|
name: reymota-repostajes-migrations
|
|
|
- - mountPath: /app/src/reymotausers/migrations
|
|
|
+ - mountPath: /app/reymotausers/migrations
|
|
|
name: reymota-reymotausers-migrations
|
|
|
|
|
|
- - mountPath: /app/src/staticfiles
|
|
|
+ - mountPath: /app/staticfiles
|
|
|
name: static-volume
|
|
|
imagePullSecrets:
|
|
|
- name: myregistrykey
|