Commit graph

184 commits

Author SHA1 Message Date
Nick Sardo
b01dc68e30 [GLBC] Specify balancing mode for backends being added to existing backend service (#652)
Add backends of proper type to backend service
2017-04-26 16:02:17 -07:00
Nick Sardo
14054be571 [GLBC] Fix problem surfacing error (#658)
* use syncError in defer GC

* surface other err as well
2017-04-26 15:30:33 -07:00
Nick Sardo
cd3e546c80 [GLBC] Better certificate handling (#639)
* Harden ssl cert logic to handle unknown state

* Do not delete non-controller-created certificates (pre-shared certs)

* Remove unnecessary variable

* Added three tests to check ssl certificate naming

* Address review comments

* Early return instead of large code block
2017-04-26 11:15:19 -07:00
Manuel de Brito Fontes
786d977a90 Fix lint errors 2017-04-20 16:48:14 -03:00
Nick Sardo
893a828587 Revert "Remove the code which get same resources twice" 2017-04-19 15:00:27 -07:00
Nick Sardo
74aff2eb7e Merge pull request #511 from FengyunPan/fix-backend
Ignore err when delete a NotFound backends
2017-04-18 22:17:07 -07:00
FengyunPan
e913c37651 Ignore err when delete a NotFound backend
1. add() should return nil at last
2. do not return err when delete a notFound backend
2017-04-19 12:07:51 +08:00
FengyunPan
d42f4942bc Remove the code which get same resources twice
There is no need to get the same ingress resources from
ingressclient twice.
2017-04-19 09:46:06 +08:00
Nick Sardo
642cb74cc7 [GLBC] Support backside re-encryption (#519)
Support backside re-encryption
2017-04-18 12:44:17 -07:00
Nick Sardo
987540f8f6 [GLBC] Update firewall source ranges if outdated (#574)
check firewall rule source ranges
2017-04-11 09:01:42 -07:00
Nick Sardo
5b37d2b315 Rename packages from api to api_v1 2017-04-06 22:27:50 -07:00
Manuel de Brito Fontes
e492a4b396 Add flag to specify the api server url 2017-04-05 10:10:34 -03:00
Manuel de Brito Fontes
c7c2a564a9 Update gce controller 2017-04-04 11:51:50 -03:00
Nick Sardo
116fbe8c33 Merge pull request #477 from nicksardo/glbc-service-watch
[GLBC] Sync ingress when default backend service is modified.
2017-03-22 13:08:30 -07:00
Nick Sardo
a94d31e87d glbc: watch backend service 2017-03-22 13:07:37 -07:00
Matthew Sachs
04b87d5945 Add 35.191.0.0/16 range to GCE firewalls (issue #478) 2017-03-22 00:18:26 -07:00
Nick Sardo
509aaf10c6 Merge pull request #472 from nicksardo/git-ignore-glbc
[gce] Add .gitignore
2017-03-21 12:43:19 -07:00
Nick Sardo
3706f32639 git ignore glbc 2017-03-20 16:36:18 -07:00
chentao1596
37bdb3952e fix all go style mistakes about fmt.Errorf 2017-03-17 08:35:55 +08:00
Lee Calcote
c10c0fb196 Update README.md
Missing 'e' in achieve
2017-03-13 22:10:29 -05:00
Nick Sardo
db96c9d574 Merge pull request #406 from tonglil/static-ip-debug
Add debug info and fix spelling
2017-03-09 09:41:48 -08:00
chentao1596
468815e986 add unit test cases for controllers/gce/healthchecks 2017-03-09 10:16:41 +08:00
Tony Li
62fcc400b8 add debug info and fix spelling 2017-03-08 12:55:33 -05:00
Nick Sardo
31eab3880b Merge pull request #384 from timstclair/busybox
Rebase GLBC on alpine:3.5
2017-03-07 17:19:17 -08:00
Nick Sardo
61a03033f7 Merge pull request #386 from itamaro/patch-1
Fix glbc usage string
2017-03-07 15:08:17 -08:00
Tony Li
7000924dc5 GCE pre-shared cert fixes (#395)
* pick up changes to the external cert referenced by lb

* less prone way to check if cert should be deleted
2017-03-07 15:05:21 -08:00
Tim St. Clair
1023056c3b
Rebase GLBC on busybox 2017-03-07 13:49:43 -08:00
Tony Li
e1d1445370 GCE/GKE "pre-shared" TLS cert (#291)
* add allow-named-tls annotation

* works for setting tls

* fix logs (mostly)

* add ssl cert annotation

* return an error when cert not found

* use annotation if specified, otherwise use spec

* add TODO on naming

* use the annotation key from k8s

* add unit test for HTTPS LB w/ cert annotation

* refactor logic and check for error

* move annotation to controller package

* remove todo for function naming
2017-03-07 13:42:41 -08:00
Itamar Ostricher
6f3139a79e Fix glbc usage string
1. Typo in `glbc` binary name
2. Typo in `running-in-cluster` flag
3. Remove non-existing flag `--default-backend-node-port`
2017-03-07 12:09:12 +02:00
Christian Bell
68097e96dc Better logging and address review comments 2017-03-02 10:54:32 -08:00
Christian Bell
b259c9b349 First stab at extending the "uid" configmap to store firewall
rule information.
2017-02-28 10:49:31 -08:00
Piotr Szczesniak
fd7990de67 Expose Prometheus metrics in glbc controller 2017-02-25 18:30:00 +01:00
Manuel Alejandro de Brito Fontes
8f23451c24 Merge pull request #221 from tonglil/typos
Typo: unittesting -> unit testing
2017-02-25 08:12:53 -03:00
Manuel Alejandro de Brito Fontes
712b60f197 Merge pull request #222 from tonglil/fix-log-message
Change arg ordering in log message
2017-02-25 08:12:41 -03:00
Manuel Alejandro de Brito Fontes
3f2592128c Merge pull request #224 from tonglil/check-error
Check for error getting cert
2017-02-25 08:12:25 -03:00
bprashanth
7e02e9adaa Add more assignees and approvers 2017-02-17 10:47:56 -08:00
Tony Li
5f8a40d392 update makefile docker command 2017-02-16 14:49:35 -08:00
bprashanth
9b305f1954 Flip version to 0.9.1 2017-02-08 19:31:59 -08:00
bprashanth
3f618d7dca Add unittest 2017-02-08 19:31:55 -08:00
bprashanth
bc8b658a5c Be more specific about the type of error to retry on 2017-02-08 17:27:53 -08:00
bprashanth
24d9aada11 Set balancing mode 2017-02-08 15:15:48 -08:00
Tony Li
fbdacb2a67 comment on skipping the error check 2017-02-03 18:23:07 -05:00
Tony Li
404e0712db check for error getting cert 2017-02-03 17:24:24 -05:00
Tony Li
881ddba90d change arg ordering in log message 2017-02-03 15:13:08 -05:00
Jeff Grafton
bc020f1370 Always docker --pull when building to fetch latest base images 2017-02-01 19:04:23 -08:00
bprashanth
7d709d5e93 Match named port between container and probe
We were previous matching the target port with the readiness probe, and
hence dropping the case where the container port and the probe had the
same name, but the target port did not.
2017-01-27 14:22:44 -08:00
Tony Li
0278034bcf unittesting -> unit testing 2017-01-26 15:17:12 -05:00
Justin Ryan
96df5b3d55 Clarify usage of Ingress backend.servicePort 2017-01-25 09:52:50 -05:00
fate-grand-order
0cd3663def fix typo
Signed-off-by: fate-grand-order <chenjg@harmonycloud.cn>
2017-01-16 13:58:54 +08:00
Tim Hockin
717594ae2a Merge pull request #124 from bprashanth/default_backend_ig_delete
Only delete default backend when there are no loadbalancers
2017-01-10 22:55:41 -08:00
bprashanth
a6b0405480 Move IG GC out of backend pool and into cluster manager 2017-01-10 03:49:08 -08:00
bprashanth
9d85c9b163 Send an event if default backend doesn't have a NodePort 2017-01-10 03:49:05 -08:00
Prashanth B
f90e9eeb7c Merge pull request #117 from thockin/dont-sync-unchanged-urlmaps
GCE: Don't update URL Map if unchanged
2017-01-09 20:25:48 -08:00
Tim Hockin
0950910e29 GCE: Don't update URL Map if unchanged 2017-01-09 11:41:50 -08:00
Tim Hockin
c3b7631b01 Log node-sync details 2017-01-04 16:59:03 -08:00
Tim Hockin
d1f13a3ad4 Fix a typo in logs 2017-01-04 16:58:47 -08:00
Tim Hockin
4e5efe56de rename for clarity 2017-01-04 13:13:02 -08:00
Manuel de Brito Fontes
61dad19f8e Fix lint errors 2016-12-28 07:30:58 -03:00
bprashanth
5fcd42f7dc Bump up glbc version to match release 2016-12-12 19:16:33 -08:00
bprashanth
5fde50d3c9 Fix unittests 2016-12-07 11:53:16 -08:00
Prashanth B
cd07b0b06d Merge pull request #21 from bprashanth/default_backend_retry
Refactor default backend handling and add better events
2016-12-07 11:26:07 -08:00
Manuel de Brito Fontes
f7011d22f8 Update godeps 2016-11-29 18:10:06 -03:00
Manuel de Brito Fontes
ed9a416b01 Split implementations from generic code 2016-11-23 21:17:49 -03:00
bprashanth
8c4d951df3 Bump up glbc version 2016-11-22 18:42:00 -08:00
bprashanth
d2312229dd Don't retry on instance group not found 2016-11-22 18:31:34 -08:00
bprashanth
d7fb15d972 Better events and timeouts for health checks 2016-11-22 18:31:07 -08:00
bprashanth
b789b78837 Log urlmap 2016-11-22 16:44:08 -08:00
bprashanth
6260eeeed4 Re-order default backend deletion calls 2016-11-22 16:39:08 -08:00
Manuel de Brito Fontes
0dbe499a3b Fix lint errors 2016-11-11 19:46:09 -03:00
Manuel de Brito Fontes
96f8ec419d Remove gce data race in tests 2016-11-11 18:25:42 -03:00
Manuel de Brito Fontes
827fcf10dd Fix lint errors 2016-11-11 18:23:02 -03:00
Manuel de Brito Fontes
4d1887310b Update GCE ingress controller 2016-11-11 18:22:35 -03:00
bprashanth
294ff58f63 Clarify ingress docs 2016-11-08 10:25:35 -08:00
bprashanth
190c9a277a Bump glbc version in Makefile 2016-10-03 10:12:25 -07:00
bprashanth
98af96514e Don't index ingress.status.ip if empty. 2016-10-03 10:11:43 -07:00
bprashanth
e30bbdfe2c Don't reconcile health checks after first create. 2016-09-23 14:22:22 -07:00
bprashanth
d99efea804 Don't consider pods cross namespace for health checks 2016-09-22 14:56:50 -07:00
bprashanth
3c703356ee Fix log level so we log debug output by default. 2016-09-21 18:37:52 -07:00
bprashanth
8c770ba384 Bump glbc version to 0.8.0 2016-09-21 17:33:14 -07:00
bprashanth
5d653fc10c Clarify ingress limitation around large clusters. 2016-09-09 13:28:32 -07:00
Jan Chaloupka
8053699360 Remove "All rights reserved" from all the headers 2016-09-08 13:02:39 +02:00
Manuel de Brito Fontes
d43021b3f1 Update gce node return types 2016-08-25 14:08:29 -03:00
Kubernetes Submit Queue
01cf346b6f Merge pull request #1435 from mml/k8s-ig-dead-code
Automatic merge from submit-queue

Delete dead code in cluster_manager.



<!-- Reviewable:start -->
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/contrib/1435)
<!-- Reviewable:end -->
2016-08-12 14:13:33 -07:00
Kubernetes Submit Queue
34a469fa1b Merge pull request #1363 from bprashanth/ing_uid
Automatic merge from submit-queue

Use existing uid if one is found

Without this if we create some ingresses we will get eg: a forwarding rule like "foo-uid". Now if we restart 
the ingress controller, and while it's down delete the configmap where it stores its uid, it will come back, see an existing ingress, but wrongly record the uid as "empty string". This will cause the ingress to ignore the old forwarding rule, backends etc.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/contrib/1363)
<!-- Reviewable:end -->
2016-08-12 11:03:58 -07:00
bprashanth
fc50762257 Poll and notice changes to cluster UID 2016-08-11 18:03:00 -07:00
Kubernetes Submit Queue
dfc322c2a2 Merge pull request #1503 from bprashanth/backends
Automatic merge from submit-queue

Don't clobber backends.

If a parallel ingress controller updates the backend service with another instance group, don't clobber it, just make sure the instance group you put in is there.
2016-08-11 17:13:50 -07:00
bprashanth
114dbd3575 Don't clobber backends inserted by other controllers. 2016-08-10 19:23:31 -07:00
Matt Liggett
1b5d8fe011 Delete dead code in cluster_manager. 2016-08-10 15:50:25 -07:00
bprashanth
7e674d5f24 Bump glbc image. 2016-08-10 14:09:08 -07:00
Prashanth Balasubramanian
c479d3e261 Bump glbc version 2016-08-08 19:10:09 -07:00
bprashanth
1a890fe7db Continue to ingore non-gce ingress in lister. 2016-08-08 12:47:37 -07:00
Siva Manivannan
c2d56dc685 GCE ingress http-only annotation naming fix 2016-08-02 00:10:24 -05:00
Prashanth Balasubramanian
632d4ae45c Fix health check link 2016-07-29 14:54:01 -07:00
Prashanth B
1aaa63e0be Merge pull request #1350 from aledbf/nginx-backlog
[nginx-ingress-controller]: Improve performance (listen backlog=net.core.somaxconn)
2016-07-12 08:18:53 -07:00
Manuel de Brito Fontes
a34124be9d Update gce NodeCondition parameter 2016-07-11 23:43:36 -04:00
Prashanth Balasubramanian
94ea4ab247 GCE Ingress docs update 2016-07-08 11:15:27 -07:00
Prashanth Balasubramanian
8bbf869030 Add an annotation to ignore non-gce ingresses 2016-06-29 15:49:02 -07:00
Prashanth Balasubramanian
cb05e7b18e Don't adopt complex http probes for health checks 2016-06-29 15:02:27 -07:00
Prashanth Balasubramanian
58d5638888 Firewall updates only on port change 2016-06-29 15:02:27 -07:00
Prashanth Balasubramanian
5db8389fb3 Rate limit requeues on error 2016-06-29 15:02:27 -07:00