diff --git a/deploy/G5k/K3S/config/deployement.yaml b/deploy/G5k/K3S/config/deployement.yaml index 47a62b4d71cb949d1512bd1418f6700e81050d32..51bb29e615e2480f2e0d7f3e8f6b20ae156bc1bf 100644 --- a/deploy/G5k/K3S/config/deployement.yaml +++ b/deploy/G5k/K3S/config/deployement.yaml @@ -9,9 +9,15 @@ spec: - protocol: TCP port: 9999 targetPort: 9999 + name: grpc + - protocol: TCP + port: 5000 + targetPort: 5000 + nodePort: 30000 + name: http selector: app: object-recognizer - type: ClusterIP + type: NodePort --- apiVersion: apps/v1 kind: Deployment @@ -29,15 +35,16 @@ spec: app: object-recognizer spec: nodeSelector: - pos: cloud # Node selector for cloud nodes + pos: cloud containers: - name: object-recognizer image: medkaddour/object_recognizer:latest imagePullPolicy: Always ports: - containerPort: 9999 + name: grpc imagePullSecrets: - - name: dockerhub-secret # Reference to the Docker registry secret + - name: dockerhub-secret --- apiVersion: apps/v1 kind: Deployment diff --git a/deploy/G5k/K3S/script.ipynb b/deploy/G5k/K3S/script.ipynb index c034fabdcd035ade857e78975b91a4b18703021c..2ae9f6ce9757cdda99b1ec7000555d3f8419f407 100644 --- a/deploy/G5k/K3S/script.ipynb +++ b/deploy/G5k/K3S/script.ipynb @@ -420,6 +420,9 @@ "metadata": {}, "outputs": [], "source": [ + "\n", + "urlfb = f\"http://{get_host('object-recognizer')}:30000/image\"\n", + "print(f\"object-recognizer web page host: {urlfb}\")\n", "\n", "url = f\"http://{get_host('prometheus')}:30090\"\n", "print(f\"prometheus web page host: {url}\")\n",