[[2021-06-18_Fri]] #argo #sockshop
Argo WorkflowのGUIビューをみるために、argo-serverをNodePortに変更する。
```shell-session
$ kubectl patch svc argo-server -n argo -p '{"spec": {"type": "NodePort"}}'
$ kubectl get svc -n argo
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
argo-server NodePort 10.0.13.153 <none> 2746:30964/TCP 20h
workflow-controller-metrics ClusterIP 10.0.3.105 <none> 9090/TCP 20h
```
[Chaos Workflows with Argo and LitmusChaos · Litmus Docs](https://docs.litmuschaos.io/docs/chaos-workflows/#visualize-the-chaos-workflow)
argo-serverへport forward (どうせport-forwardにするなら、NodePort化はいらなかったかも)
```shell-session
$ kubectl port-forward deployment/argo-server -n argo --address 0.0.0.0 2746:9100
Forwarding from 0.0.0.0:2746 -> 9100
```
なぜか接続できない。
Deploymentではなく、Serviceへport-forwardするも、なぜか接続できない。
```shell-session
kubectl port-forward svc/argo-server -n argo --address 0.0.0.0 2746:2746 -1- 11:12:40
Forwarding from 0.0.0.0:2746 -> 2746
Handling connection for 2746
Handling connection for 2746
Handling connection for 2746
Handling connection for 2746
Handling connection for 2746
Handling connection for 2746
Handling connection for 2746
Handling connection for 2746
Handling connection for 2746
```