fixed namespace, image, and added secret
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: flask-app
|
name: flask-app
|
||||||
namespace: production
|
namespace: prod
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
@@ -13,9 +13,11 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: flask-app
|
app: flask-app
|
||||||
spec:
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: gitlab-registry-secret
|
||||||
containers:
|
containers:
|
||||||
- name: flask-app
|
- name: flask-app
|
||||||
image: registry.gitlab.no/ikt206-g-26v-devops/group23/flask:latest
|
image: registry.internal.uia.no/ikt206-g-26v-devops/group23/flask:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5000
|
- containerPort: 5000
|
||||||
|
|||||||
Reference in New Issue
Block a user