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 ...@@ -3,5 +3,4 @@ kind: ConfigMap
metadata: metadata:
name: todo-app-config name: todo-app-config
data: data:
PORT: "3000"
MONGODB_URL: mongodb-service MONGODB_URL: mongodb-service
...@@ -22,9 +22,8 @@ spec: ...@@ -22,9 +22,8 @@ spec:
- image: {{image}} - image: {{image}}
name: todo-app-container name: todo-app-container
ports: ports:
- containerPort: 3000 - containerPort: 3000
# imagePullPolicy: IfNotPresent name: todo-app-container-port
# env for mongodb username and pass?
envFrom: envFrom:
- configMapRef: - configMapRef:
name: todo-app-config name: todo-app-config
......
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: todo-app-ingress name: todo-app-ingress
annotations: annotations:
kubernetes.io/ingress.class: "gce" # an external load-balancer 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 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 networking.gke.io/managed-certificates: todoapp-managed-cert # defined in the infrastructure repository
spec: spec:
...@@ -20,4 +20,4 @@ spec: ...@@ -20,4 +20,4 @@ spec:
service: service:
name: todo-app-service name: todo-app-service
port: port:
number: 8080 number: 80
...@@ -3,15 +3,15 @@ kind: Service ...@@ -3,15 +3,15 @@ kind: Service
metadata: metadata:
name: todo-app-service name: todo-app-service
annotations: 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: spec:
type: NodePort type: NodePort
selector: selector:
app: todo-app app: todo-app
ports: ports:
- name: https-port - name: todo-app-https-port
port: 443 port: 443
targetPort: 3000 targetPort: todo-app-container-port
- name: http-port - name: todo-app-http-port
port: 8080 port: 80
targetPort: 3000 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