Skip to content

Commit cb50c54

Browse files
committed
use nodeport to expose circuit breaker UI
1 parent da1cb41 commit cb50c54

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: {{ include "mychart.fullname" . }}-service
5+
labels:
6+
app: {{ include "mychart.name" . }}
7+
spec:
8+
type: NodePort
9+
ports:
10+
- port: 9235
11+
targetPort: 9235
12+
nodePort: 30000 # Choose a port between 30000-32767
13+
selector:
14+
app: {{ include "mychart.name" . }}

resources/plugins/circuitbreaker/plugin.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ def _launch_pod(ctx,
197197
f"--set podName={podName} --set rpcserver={rpcserver} --set httplisten={httplisten}"
198198
)
199199

200-
# Use this to port-forward the circuitbreaker pod to localhost
201-
# kubectl port-forward pod/circuitbreaker-circuitbreaker 9235:9235
202-
203200
log.info(command)
204201
log.info(run_command(command))
205202

0 commit comments

Comments
 (0)