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

Ability to use a custom TLS certificate with the Ingress #9797

Merged
merged 1 commit into from
Dec 4, 2020
Merged

Ability to use a custom TLS certificate with the Ingress #9797

merged 1 commit into from
Dec 4, 2020

Conversation

msedzins
Copy link
Contributor

@msedzins msedzins commented Nov 28, 2020

Description of functionality can be found here: #9335

How to use it
$ minikube addons configure ingress
-- Enter custom cert(format is "namespace/secret"): kube-system/mkcert
✅ ingress was successfully configured

Enable addons plugin (or disable and then enable if already enabled):
$ minikube addons disable ingress
$ minikube addons enable ingress

Expected result
After running:
$ kubectl -n kube-system get deployment ingress-nginx-controller -o yaml

There will be one extra parameter added to nginx (the last one):
spec:
containers:
- args:
- /nginx-ingress-controller
- --configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf
- --report-node-internal-ip-address
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
- --validating-webhook=:8443
- --validating-webhook-certificate=/usr/local/certificates/cert
- --validating-webhook-key=/usr/local/certificates/key
- --default-ssl-certificate=kube-system/mkcert

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 28, 2020
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 28, 2020
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@k8s-ci-robot
Copy link
Contributor

@msedzins: cat image

In response to this:

/meow

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.

@msedzins
Copy link
Contributor Author

/test ?

@k8s-ci-robot
Copy link
Contributor

@msedzins: The following commands are available to trigger jobs:

  • /test pull-minikube-platform-tests

In response to this:

/test ?

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.

@msedzins
Copy link
Contributor Author

/test pull-minikube-platform-tests

@msedzins
Copy link
Contributor Author

/test all

@k8s-ci-robot
Copy link
Contributor

@msedzins: No jobs can be run with /test all.
The following commands are available to trigger jobs:

  • /test pull-minikube-platform-tests

In response to this:

/test all

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.

@msedzins
Copy link
Contributor Author

/retest

@k8s-ci-robot
Copy link
Contributor

@msedzins: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-minikube-platform-tests f4f3077 link /test pull-minikube-platform-tests

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@msedzins
Copy link
Contributor Author

Hi, there are 4 tests failing, completely not related to the functionality introduced in this PR,

Could someone tell me if I should do anything about this?

Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

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

thanks for this PR @msedzins
do you mind adding in the PR description the output after this PR using this new feature?

add a short tutotiral in our website
"how to use custom TLS cert with ingress addon on minikube"
with an example usage of this feature

https://minikube.sigs.k8s.io/docs/tutorials/

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 30, 2020
@msedzins
Copy link
Contributor Author

@medyagh Hi, I've added tutorial and extended PR description.

@msedzins msedzins requested a review from medyagh December 1, 2020 20:49
Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

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

thank you @msedzins for this PR and adding docs for it

@medyagh medyagh merged commit 114faa7 into kubernetes:master Dec 4, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh, msedzins

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 4, 2020
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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants