-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Simplify installation and e2e manifests #2515
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf 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 |
e80e893
to
ab14771
Compare
This can be merged after we release 0.15 |
c9e21e0
to
15b70bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @aledbf thanks for the PR, makes it a lot easier to follow. I just have a few thoughts.
@@ -101,25 +58,8 @@ For development: | |||
$ minikube addons disable ingress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add minikube addons disable addon-manager
to this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should just have everything enabled and then just edit the deployment?
``` | ||
|
||
7. Confirm the `nginx-ingress-controller` deployment exists: | ||
2. Execute `make dev-env` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we perform the following:
kubectl set image \
deployments \
--namespace ingress-nginx \
--selector app=ingress-nginx \
nginx-ingress-controller=${REGISTRY}/nginx-ingress-controller:${TAG}
but in the future minikube will already have this deployment in the kube-system namespace and once that happens we can just edit the deployment on the kube-system namespace instead of creating a new one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to assume minikube is only way to run tests
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: ingress-nginx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just use the kube-system namespace that minikube already provides.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is to use the manifest we provide to the users in this repository and also be able to run e2e tests in any kubernetes cluster
@@ -26,6 +26,7 @@ spec: | |||
- --configmap=$(POD_NAMESPACE)/nginx-configuration | |||
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services | |||
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services | |||
- --publish-service=$(POD_NAMESPACE)/ingress-nginx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, whats this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flag --publish-service
is used to extract information about the Service fronting the ingress controllers. The controller will set the endpoint records on the ingress objects to reflect those on the service. If you don't use this flag the controller uses the IP address of the node
15b70bc
to
aaa3820
Compare
@diazjf also, at some point a migration to prow.k8s.io could be requested and that do not runs minikube. |
@aledbf makes sense to me. The user shouldn't be forced to minikube for development and testing. I mean in the case where |
ed8d7bc
to
2a34091
Compare
deploy/configmap.yaml
Outdated
@@ -5,3 +5,5 @@ metadata: | |||
namespace: ingress-nginx | |||
labels: | |||
app: ingress-nginx | |||
|
|||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the YAML spec, this marks the beginning of a document, not the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
2a34091
to
4f4b0c5
Compare
4f4b0c5
to
7b29a0c
Compare
Codecov Report
@@ Coverage Diff @@
## master #2515 +/- ##
=======================================
Coverage 40.73% 40.73%
=======================================
Files 73 73
Lines 5015 5015
=======================================
Hits 2043 2043
Misses 2700 2700
Partials 272 272 Continue to review full report at Codecov.
|
Also, use RBAC by default.