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

Feature: Expose Devportal #969

Merged
merged 22 commits into from
Nov 30, 2022
Merged

Feature: Expose Devportal #969

merged 22 commits into from
Nov 30, 2022

Conversation

jasmingacic
Copy link
Contributor

@jasmingacic jasmingacic commented Nov 15, 2022

Signed-off-by: jasmingacic jasmin.gacic@gmail.com

This PR addresses definition of DevPortal specs for backend as described here #654

closes #654

Changes

  • Add manifests for spinning up devportal (deployment, service, envoyfleet, and staticroute)
  • Allow devportal to be installed and upgraded via kusk

Signed-off-by: jasmingacic <jasmin.gacic@gmail.com>
@netlify
Copy link

netlify bot commented Nov 15, 2022

Deploy Preview for kusk-docs-preview ready!

Name Link
🔨 Latest commit 7cdcc22
🔍 Latest deploy log https://app.netlify.com/sites/kusk-docs-preview/deploys/638727efbfebfd00088f640d
😎 Deploy Preview https://deploy-preview-969--kusk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Signed-off-by: jasmingacic <jasmin.gacic@gmail.com>
//add devportal cluster
hostPortPair, err := getUpstreamHost(&options.UpstreamOptions{
Service: &options.UpstreamService{
Name: "kusk-gateway-devportal",
Copy link
Contributor

Choose a reason for hiding this comment

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

We should get this from some config somewhere instead of hard coding it

@kylehodgetts kylehodgetts changed the title devportal options Feature: Expose Devportal Nov 16, 2022
@kylehodgetts kylehodgetts marked this pull request as ready for review November 21, 2022 13:56
@jasmingacic
Copy link
Contributor Author

I can't approve this through GH since it was me who opened this PR.
Consider it approved by me.
@mbana do you want to chime in here?

@jasmingacic
Copy link
Contributor Author

jasmingacic commented Nov 24, 2022

I tested the setup with images i built from this PR
jasmingacic/kusk-gateway:latest
And from dashboard PR kubeshop/kusk-gateway-dashboard#347
jasmingacic/kusk-gateway-dashboard
and from API Server PR kubeshop/kuskgateway-api-server#80
jasmingacic/kusk-gateway-api-websocket

it resulted in having this nice presentation
image
image

For testing you can use this diff
https://gist.github.com/jasmingacic/6514f25ee53e54db9dd0de49820d3ad4
just apply it to this branch

Copy link
Contributor

@mbana mbana left a comment

Choose a reason for hiding this comment

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

Just some general feedback whilst I try it out.

reportError(err)
return err
}
devPortalSpinner.Success("Installing Kusk Developer Portal")
Copy link
Contributor

Choose a reason for hiding this comment

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

Installing to Installed.

}

kuskDevportalSpinner := utils.NewSpinner("Upgrading Kusk Devportal...")
if err := applyf(filepath.Join(dir, manifests_dir, "devportal.yaml")); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor point but devportal.yaml is repeated.

- containerPort: 80
name: http
protocol: TCP
resources:
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these strictly necessary? resources limits, that is.

Copy link
Contributor

Choose a reason for hiding this comment

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

For us, not really
but for a user who will install this, it's being a good citizen as it were in kubernetes

Copy link
Contributor

@mbana mbana left a comment

Choose a reason for hiding this comment

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

LGTM.

I saw the logs arriving via a WebSocket to the dashboard.

@kylehodgetts kylehodgetts merged commit 96eda07 into main Nov 30, 2022
@kylehodgetts kylehodgetts deleted the devportal_options branch November 30, 2022 10:15
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 this pull request may close these issues.

Expose Developer Portal from Kusk
3 participants