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

Add Ambassador Ingress controller as an addon #8161

Merged
merged 2 commits into from
May 28, 2020

Conversation

concaf
Copy link
Contributor

@concaf concaf commented May 15, 2020

This PR adds Ambassador (https://www.getambassador.io/) as an addon to Minikube. Also, a tutorial has been added on how to use the same.

The motivation behind adding Ambassador as an addon is mostly around improving the UX around installing and configuring Ambassador. Ambassador is installed via our operator which makes sure than the Ambassador installation is healthy and up to date at all times.

CC: @brucehorn @inercia

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 15, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @concaf. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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
Copy link
Contributor

Welcome @concaf!

It looks like this is your first PR to kubernetes/minikube 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/minikube has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 15, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: concaf
To complete the pull request process, please assign josedonizetti
You can assign the PR to them by writing /assign @josedonizetti in a comment when ready.

The full list of commands accepted by this bot can be found 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

@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@medyagh
Copy link
Member

medyagh commented May 15, 2020

@concaf this looks great ! thank you for adding this addon. do you mind sharing which driver and os did you try this on ?

have you tried it on the docker driver ?
I wonder if we need t open a port for it during container creation time for docker/podman drivers

Copy link

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

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

Hey @concaf -- thanks for submitting this PR! Any update on medya's questions?

@codecov-commenter
Copy link

codecov-commenter commented May 19, 2020

Codecov Report

Merging #8161 into master will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8161      +/-   ##
==========================================
- Coverage   34.60%   34.59%   -0.02%     
==========================================
  Files         147      147              
  Lines        9378     9381       +3     
==========================================
  Hits         3245     3245              
- Misses       5736     5739       +3     
  Partials      397      397              
Impacted Files Coverage Δ
cmd/minikube/cmd/node_start.go 9.37% <0.00%> (-0.63%) ⬇️
cmd/minikube/cmd/node_stop.go 13.33% <0.00%> (-0.96%) ⬇️

@concaf
Copy link
Contributor Author

concaf commented May 19, 2020

@medyagh @priyawadhwa sorry for the late reply!

do you mind sharing which driver and os did you try this on ?
have you tried it on the docker driver ?

I've tested this on the docker driver, on Fedora 30.

I wonder if we need t open a port for it during container creation time for docker/podman drivers

Nope, no such requirement. This pretty much requires the same stuff as the ingress addons.

(The force pushes are due to a rebase and updating the image, nothing major)

Copy link

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

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

@concaf thanks! I think this change is big enough to warrant an integration test -- would you mind writing one?

The test would:

  1. Start a minikube cluster, and enable the addon by adding the --addons=<addon name> flag (Sample code here)
  2. Makes sure the installation was successful (as in, some expected pod came up as Running) (sample code here)
  3. Try to configure Ambassador via an Ingress resource and make sure it works

You can add TestAmbassadorAddon to our addons_test.go file.

A lot of the code from TestAddons can be copied into TestAmbassadorAddon (I linked some key lines above).

Docs for quickly running an integration test locally can be found here. Please let me know if you have any questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants