Skip to content

Commit

Permalink
misc: use hubble command rather than port-forwards
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Busseneau <[email protected]>
  • Loading branch information
nbusseneau authored and tklauser committed Jun 24, 2021
1 parent dd0df19 commit fb540d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ jobs:
- name: Relay Port Forward
run: |
pkill -f "kubectl port-forward.*hubble-relay" || true
pkill -f "cilium hubble port-forward|kubectl port-forward.*hubble-relay"
sleep 1s
kubectl port-forward -n kube-system deployment/hubble-relay 4245:4245&
cilium hubble port-forward&
sleep 5s
- name: Connectivity test
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ To install Cilium while automatically detected:

### Hubble

./cilium hubble enable
cilium hubble enable
🔑 Generating certificates for Relay...
2021/01/06 14:40:21 [INFO] generate received request
2021/01/06 14:40:21 [INFO] received CSR
Expand Down Expand Up @@ -132,7 +132,7 @@ To install Cilium while automatically detected:

#### With Flow Validation

kubectl port-forward -n kube-system deployment/hubble-relay 4245:4245&
cilium hubble port-forward&
cilium connectivity test --single-node
⌛ Waiting for deployments to become ready
🔭 Enabling Hubble telescope...
Expand Down
5 changes: 4 additions & 1 deletion connectivity/check/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@ func (ct *ConnectivityTest) enableHubbleClient(ctx context.Context) error {
status, err := ct.hubbleClient.ServerStatus(ctx, &observer.ServerStatusRequest{})
if err != nil {
ct.Warn("Unable to contact Hubble Relay, disabling Hubble telescope and flow validation:", err)
ct.Info("Expose Relay locally with: kubectl port-forward -n kube-system deployment/hubble-relay 4245:4245")
ct.Info(`Expose Relay locally with:
cilium hubble enable
cilium status --wait
cilium hubble port-forward&`)
ct.hubbleClient = nil
ct.params.Hubble = false

Expand Down

0 comments on commit fb540d0

Please sign in to comment.