cluster-api-provider-gcp icon indicating copy to clipboard operation
cluster-api-provider-gcp copied to clipboard

Custom V-Net addition to docs

Open sayantani11 opened this issue 4 years ago • 18 comments

/kind documentation

Describe the solution you'd like [A clear and concise description of what you want to happen.] Adding a Custom Virtual Network documentation GCP

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.] Refer to https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/docs/book/src/topics/custom-vnet.md for better understanding Also: https://cloud.google.com/vpc/docs/vpc https://cloud.google.com/vpc/docs/using-vpc

sayantani11 avatar Sep 22 '21 06:09 sayantani11

/good-first-issue

sayantani11 avatar Sep 22 '21 06:09 sayantani11

@sayantani11: This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Sep 22 '21 06:09 k8s-ci-robot

/assign

daemon1024 avatar Sep 22 '21 06:09 daemon1024

@daemon1024 Updates?

sayantani11 avatar Oct 22 '21 16:10 sayantani11

@daemon1024 Any updates? Stuck somewhere?

sayantani11 avatar Nov 02 '21 16:11 sayantani11

@sayantani11 Apologies for the delay and missing providing updates here.

So I went through the shared resources and the spec provided here https://github.com/kubernetes-sigs/cluster-api-provider-gcp/blob/main/config/crd/bases/infrastructure.cluster.x-k8s.io_gcpclusters.yaml

I came with a rough configuration...


Existing subnet

```yaml
apiVersion: infrastructure.cluster.x-k8s.io/v1Alpha4
kind: GCPCluster
spec:
    network:
        autoCreateSubnetworks: false
        name: my-vpc
        subnets:
            - name: my-subnet
            cidrBlock: 10.0.32.0/20
    project: xyz
    region: us-easta
```

New subnet, provide cidrblock

```yaml
apiVersion: infrastructure.cluster.x-k8s.io/v1Alpha4
kind: GCPCluster
spec:
    network:
        autoCreateSubnetworks: false
        name: my-vpc
        subnets:
            - name: my-subnet
            cidrBlock: 10.0.32.0/20
            region: ? # do we need it when we have region specified in spec?
    project: xyz
    region: us-easta
```

Auto cidr block ranges - https://cloud.google.com/vpc/docs/vpc#ip-ranges

But I am not sure how do I test it out! I don't have GCP instance 😓

daemon1024 avatar Nov 02 '21 17:11 daemon1024

@daemon1024 You can try creating a gcp account and I guess you get a 250$ credit in the start that you can use or you can try using qwicklabs I believe

sayantani11 avatar Nov 03 '21 03:11 sayantani11

@daemon1024 And yes I think we need to specify region in the subnet as well

sayantani11 avatar Nov 05 '21 06:11 sayantani11

@daemon1024 or you can try reaching me on slack... I will try testing it... But will need some time with that😅

sayantani11 avatar Nov 11 '21 21:11 sayantani11

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Feb 09 '22 21:02 k8s-triage-robot

Hey @sayantani11 is this still up for grab, maybe I can give a try

AvineshTripathi avatar Mar 01 '22 18:03 AvineshTripathi

Yes! /assign @AvineshTripathi

sayantani11 avatar Mar 01 '22 18:03 sayantani11

/remove-lifecycle stale

sayantani11 avatar Mar 01 '22 18:03 sayantani11

@sayantani11 I did go through the resources but being new to kubernetes I need some time and more resource to get a better idea so I was wondering if you can help me with resources with more basics to clear my fundamentals

AvineshTripathi avatar Mar 04 '22 07:03 AvineshTripathi

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jun 02 '22 08:06 k8s-triage-robot

/lifecycle frozen /help

sayantani11 avatar Jul 02 '22 02:07 sayantani11

/remove-lifecycle stale

sayantani11 avatar Jul 02 '22 02:07 sayantani11

/lifecycle frozen

sayantani11 avatar Jul 02 '22 02:07 sayantani11