Skip to content
Snippets Groups Projects
Commit 1421bf10 authored by Dobromir Palushev's avatar Dobromir Palushev
Browse files

Merge branch 'just-a-test' into 'staging'

updated logic of the test-job

See merge request !48
parents cb352c46 d67ee5f6
No related branches found
No related tags found
12 merge requests!72Production update,!70Production update,!67Workflow updates,!66Css test change,!64Pipeline fix,!62Main update,!60Getting staging's latest state,!58Updating Main,!56Main updates,!52Staging->Main,!50Production updates,!48updated logic of the test-job
Pipeline #19178 failed
......@@ -3,5 +3,4 @@ kind: ConfigMap
metadata:
name: todo-app-config
data:
PORT: "3000"
MONGODB_URL: mongodb-service
......@@ -22,9 +22,8 @@ spec:
- image: {{image}}
name: todo-app-container
ports:
- containerPort: 3000
# imagePullPolicy: IfNotPresent
# env for mongodb username and pass?
- containerPort: 3000
name: todo-app-container-port
envFrom:
- configMapRef:
name: todo-app-config
......
......@@ -4,7 +4,7 @@ metadata:
name: todo-app-ingress
annotations:
kubernetes.io/ingress.class: "gce" # an external load-balancer
kubernetes.io/ingress.allow-http: "false" # disabling HTTP
# kubernetes.io/ingress.allow-http: "false" # disabling HTTP
kubernetes.io/ingress.global-static-ip-name: {{static-ip-name}} # staging-todoapp-ip for staging
networking.gke.io/managed-certificates: todoapp-managed-cert # defined in the infrastructure repository
spec:
......@@ -20,4 +20,4 @@ spec:
service:
name: todo-app-service
port:
number: 8080
number: 80
......@@ -3,15 +3,15 @@ kind: Service
metadata:
name: todo-app-service
annotations:
cloud.google.com/app-protocols: '{"https-port":"HTTPS","http-port":"HTTP"}'
cloud.google.com/app-protocols: '{"todo-app-https-port":"HTTPS","todo-app-http-port":"HTTP"}'
spec:
type: NodePort
selector:
app: todo-app
ports:
- name: https-port
- name: todo-app-https-port
port: 443
targetPort: 3000
- name: http-port
port: 8080
targetPort: 3000
targetPort: todo-app-container-port
- name: todo-app-http-port
port: 80
targetPort: todo-app-container-port
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment