Commit d0d422dd authored by Alberto Pascual's avatar Alberto Pascual
Browse files

k8s deployment changes

parent dd425322
Pipeline #731 failed with stages
in 6 minutes and 39 seconds
......@@ -8,7 +8,7 @@ include .makefiles/base.mk
include .makefiles/k8s.mk
build-web: ## Build a specific version (e.g. build-2.7)
docker build -t '$(IMAGENAMEWEB):$(VERSION)' -f demo/Dockerfile demo/;
docker build -t '$(IMAGENAMEWEB):$(VERSION)' -f dashboard/Dockerfile dashboard/;
push-web: build-web ## Push the "latest" tag to dockerhub
docker push '$(IMAGENAMEWEB):$(VERSION)'
......
......@@ -461,4 +461,4 @@
});
</script>
</dom-module>
</dom-module>
\ No newline at end of file
......@@ -454,7 +454,6 @@
//console.log(that.ids)
that.data = resp;
//console.log(that.data);
});
}
}
......
......@@ -2,28 +2,19 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ${NAME}-crawler
name: ${NAME}-web
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: ${NAME}.cluster.gsi.dit.upm.es
- host: somedi.cluster.gsi.dit.upm.es
http:
paths:
- path: /
backend:
serviceName: ${NAME}-crawler
servicePort: 8082
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ${NAME}-web
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: $ENDPOINT_EXTERNAL
serviceName: ${NAME}-web
servicePort: 8080
- host: unstable.somedi.cluster.gsi.dit.upm.es
http:
paths:
- path: /
......
---
apiVersion: v1
kind: Service
metadata:
name: ${NAME}-crawler
spec:
type: ClusterIP
ports:
- name: luigiweb
port: 8082
protocol: TCP
selector:
role: ${NAME}-crawler
---
apiVersion: v1
kind: Service
metadata:
name: ${NAME}-web
spec:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment