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

Convert gcsweb to VPC native LB #2080

Merged
merged 1 commit into from
May 24, 2021
Merged

Convert gcsweb to VPC native LB #2080

merged 1 commit into from
May 24, 2021

Conversation

thockin
Copy link
Member

@thockin thockin commented May 21, 2021

I did this the scary way. Apparently there's a safer way when we do others. Anyway, this much is done already :)

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. wg/k8s-infra labels May 21, 2021
@k8s-ci-robot k8s-ci-robot requested review from ixdy and nikhita May 21, 2021 23:48
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 21, 2021
Copy link
Member

@spiffxp spiffxp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this the scary way. Apparently there's a safer way when we do others.

A few non-blocking questions, since this is live:

  • why?
  • was the scary way applying these changes all once? or were there some steps involved?
  • is there a link to the safer way?

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 24, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: spiffxp, thockin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 607d571 into kubernetes:main May 24, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.22 milestone May 24, 2021
@spiffxp
Copy link
Member

spiffxp commented May 24, 2021

Verified via

# $ k --context=aaa get services -n gcsweb -o=yaml \
# | yq -y '.items[] | {annotations: (.metadata.annotations | with_entries(select(.key | contains("cloud.google.com")))), type: .spec.type, status: .status}'
annotations:
  cloud.google.com/neg: '{"ingress": true}'
  cloud.google.com/neg-status: '{"network_endpoint_groups":{"80":"k8s1-ea949c44-gcsweb-gcsweb-80-15e79f37"},"zones":["us-central1-a","us-central1-c","us-central1-f"]}'
type: ClusterIP
status:
  loadBalancer: {}

@thockin
Copy link
Member Author

thockin commented May 24, 2021

why?

Why make this change: because we have VPC-native and I thought that was required to enable GCP certificates. It turns out that it is NOT required.

Why I did it the scary way: because it seemed obvious and gcsweb seemed like a low-risk target. Since then I learned that there's a safer way, which I will pay attention to :)

was the scary way applying these changes all once? or were there some steps involved?

Step 1: Add annotation and wait for the NEG to be created.
Step 2: Verify the LB was pointing to the NEG
Step 3: Change type to "ClusterIP"

is there a link to the safer way?

It's pending docs review internally :( As I look at the next one, I will write down the steps I take.

@thockin
Copy link
Member Author

thockin commented May 24, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants