Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dummy-vue-grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vig
provee
dummy-vue-grpc
Commits
b41ef30f
Commit
b41ef30f
authored
4 years ago
by
IsolatedSushi
Browse files
Options
Downloads
Patches
Plain Diff
Service discovery
parent
5ffc5734
No related branches found
Branches containing commit
No related tags found
1 merge request
!13
Major update
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/deploymentNew.yaml
+84
-0
84 additions, 0 deletions
backend/deploymentNew.yaml
backend/webSocketGateway/src/webSocketGateway.js
+1
-0
1 addition, 0 deletions
backend/webSocketGateway/src/webSocketGateway.js
with
85 additions
and
0 deletions
backend/deploymentNew.yaml
0 → 100644
+
84
−
0
View file @
b41ef30f
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
proveespace
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
proveegatewaydeployment
namespace
:
proveespace
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
gateway
strategy
:
{}
template
:
metadata
:
labels
:
app
:
gateway
spec
:
containers
:
-
image
:
isolatedsushi/gateway
name
:
gateway
ports
:
-
containerPort
:
9898
name
:
gateway
resources
:
{}
status
:
{}
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
proveegatewayservice
namespace
:
proveespace
spec
:
selector
:
app
:
gateway
ports
:
-
name
:
grpc
protocol
:
TCP
port
:
9898
targetPort
:
9898
type
:
LoadBalancer
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
proveeprojectordeployment
namespace
:
proveespace
spec
:
replicas
:
5
selector
:
matchLabels
:
app
:
grpcprojector
strategy
:
{}
template
:
metadata
:
labels
:
app
:
grpcprojector
spec
:
containers
:
-
name
:
grpcprojector
image
:
isolatedsushi/grpcprojector
ports
:
-
containerPort
:
50051
resources
:
{}
status
:
{}
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
proveeprojectorservice
namespace
:
proveespace
spec
:
selector
:
app
:
grpcprojector
ports
:
-
name
:
grpcprojector
protocol
:
TCP
port
:
50051
targetPort
:
50051
type
:
LoadBalancer
\ No newline at end of file
This diff is collapsed.
Click to expand it.
backend/webSocketGateway/src/webSocketGateway.js
+
1
−
0
View file @
b41ef30f
...
...
@@ -4,6 +4,7 @@ const webSocketPort = 9898
const
wsServer
=
new
WebSocket
.
Server
({
host
:
webSocketHost
,
port
:
webSocketPort
});
const
http
=
require
(
"
http
"
);
var
target
=
process
.
env
.
PROJECTOR_ADDRESS
||
'
127.0.0.1:50051
'
;
var
target
=
"
proveeprojectorservice:50051
"
console
.
log
(
"
Target is:
"
+
target
);
var
PROTO_PATH
=
__dirname
+
'
/../protos/v3/projector.proto
'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment