Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kind on CloudBuild port forwarding is hard to follow #24

Closed
Goodwine opened this issue Jul 19, 2020 · 2 comments · Fixed by #25
Closed

kind on CloudBuild port forwarding is hard to follow #24

Goodwine opened this issue Jul 19, 2020 · 2 comments · Fixed by #25

Comments

@Goodwine
Copy link
Contributor

On the gcb.md file we have an awk command that is hard to follow:

port="$( awk -F: '/server:/{ print $4 }' "$$KUBECONFIG" )"

I understand this is getting the 4th element on the line that matches server: within the file $KUBECONFIG, but this requires that I should know what the contents of that file are, could you add an example of what this specific line is meant to be?

@Goodwine
Copy link
Contributor Author

An based on the kind repo I noticed this would be configured somewhat like:

# ...
clusters:
- cluster:
    server: https://123.456.789.012:3456
# ...

And this will match 3456
[source]

@Goodwine
Copy link
Contributor Author

I also noticed that kind configuration supposedly looks like (source):

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
  apiServerAddress: "127.0.0.1"
  apiServerPort: 1234

I've sent a PR updating the instructions to read this value instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant