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

Update to provide site-to-site VPN #1605

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

yunkon-kim
Copy link
Member

@yunkon-kim yunkon-kim commented Jun 5, 2024

  • Integrate and test with mc-terrarium v0.0.7
  • Enhance the sites info struct and extraction mechanism from an MCIS info
  • Change and provide a Site-to-site VPN instead of a GCP-AWS VPN
  • Specify stream-response in the API URL

Example

Sites 조회 API

: API - GET /ns/{nsId}/mcis/{mcisId}/site
image

: Responses

{
  "nsId": "kimy-ns01",
  "mcisId": "kimy-mcis01",
  "count": 3,
  "sites": {
    "aws": [
      {
        "csp": "aws",
        "region": "ap-northeast-2",
        "vnet": "vpc-0f67dcae95c1aa02b",
        "subnet": "subnet-04634eaad66653e24"
      }
    ],
    "azure": [
      {
        "csp": "azure",
        "region": "koreacentral",
        "vnet": "kimy-ns01-kimy-ns01-systemdefault-azure-kor-cpfb96gti87soliltnf0",
        "gatewaySubnetCidr": "10.47.128.0/18",
        "resourceGroup": "koreacentral"
      }
    ],
    "gcp": [
      {
        "csp": "gcp",
        "region": "asia-northeast3",
        "vnet": "kimy-ns01-kimy-ns01-systemdefault-gcp-asia-cpfb9aoti87soliltnhg"
      }
    ]
  }
}

Site-to-site VPN 생성 API (stream-response 적용)

: API - POST /stream-response/ns/{nsId}/mcis/{mcisId}/vpn/{vpnId}
image

: Responses (참고: Swagger UI 상에서는 JSON lines를 처리하지 못함, CURL 활용 시 정상 동작 확인)

can't parse JSON.  Raw result:

{"message":"mc-terrarium server is ready"}
{"message":"successully created a terrarium (trId: kimy-ns01-kimy-mcis01-kimy-vpn01)"}
{"message":"the infrastructure terrarium is successfully initialized"}
{"message":"the infracode to configure GCP to AWS VPN tunnels is Successfully created"}
{"message":"the infracode checking process is successfully completed"}
{"message":"the request (id: fXEYxoYaHRVglxkMfooblZoKbMfRzivZ) is successfully accepted and still deploying resource"}

* Integrate and test with mc-terrarium v0.0.7
* Enhance the sites info struct and extraction mechanism from an MCIS info
* Change and provide a Site-to-site VPN instead of a GCP-AWS VPN
* Specify stream-response in the API URL
@yunkon-kim
Copy link
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Jun 5, 2024
@cb-github-robot cb-github-robot merged commit adf56fd into cloud-barista:main Jun 5, 2024
4 checks passed
@seokho-son
Copy link
Member

/approve

LGTM! Thanks!

@yunkon-kim yunkon-kim deleted the 240604-15 branch June 10, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This PR is approved and will be merged soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants