Commit Graph

54 Commits

Author SHA1 Message Date
Kubernetes Submit Queue 2b2b5971b5
Merge pull request #3859 from justinsb/upsert_dns_records
Automatic merge from submit-queue.

Use upsert when applying DNS records
2017-11-15 08:39:38 -08:00
Justin Santa Barbara 97d2546dda Use upsert when applying DNS records
Will use half the operations vs REMOVE + ADD.

Issue #3121
2017-11-15 02:15:25 -05:00
Justin Santa Barbara 14fd2d2d64 Verify that no extra records remain after a reconnection
Otherwise there's a chance that we have have extra records, particularly
in the case of a master restart and reconnect.

Fix #2572
2017-11-15 01:56:37 -05:00
chrislovecnm 609e268a1d gazelle updates with new bazel version 2017-11-05 17:41:53 -07:00
chrislovecnm 1e418c3e13 more goimport updates 2017-11-04 10:03:02 -06:00
Justin Santa Barbara 0143be7c4f autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
Justin Santa Barbara 544990842a More fixes for 1.8 API changes 2017-10-01 23:02:32 -04:00
Justin Santa Barbara 3478031533 API types changed package 2017-10-01 14:03:56 -04:00
Rohith b64795673d DNS Controller Limitation
The current implementation does not place any limitation on the dns annontation which the dns-controller can consume. In a multi-tenented environment was have to ensure certain safe guards are met, so users can't byt accident or intentionally alter our internal dns. Note; the current behaviour has not been changed;

- added the --watch-namespace option to the dns controller and WatchNamespace to the spec
- cleaned up area of the code where possible or related
- fixed an vetting issues that i came across on the journey
- renamed the dns-controller watcher files
2017-09-22 11:37:00 +01:00
Mike Splain 84daad4c78 Fix Wildcards returned as ASCII 2017-08-01 13:19:57 -04:00
chrislovecnm fc0f20a020 raising logging levels and removing dead code 2017-07-25 15:01:37 -06:00
Hanfei Shen fc50984f09 support china region 2017-07-16 00:57:38 +08:00
Justin Santa Barbara 9c1ef822ab Merge pull request #2686 from rk295/rk-dns-controller-doc
Trivial doc tidying.
2017-07-13 23:13:06 -04:00
Justin Santa Barbara 7c8dcc4a0d Code changes for 1.7 2017-07-02 13:10:28 -04:00
Robin Kearney d638f511b1 Keeping this file <=72 2017-06-08 11:06:56 +01:00
Robin Kearney 67d3d3204e mistakenly indented. 2017-06-08 11:01:11 +01:00
Robin Kearney 85bbe7df36 fixing up the line length 2017-06-08 11:00:33 +01:00
Robin Kearney bb9984d7d2 fixing up line length 2017-06-08 10:56:08 +01:00
Robin Kearney 28e6a4b776 Trivial doc tidying.
I pulled the command line options out of the source and into this doc to
save other people the trouble of digging into the source. Hope nobody
minds!
2017-06-06 09:16:04 +01:00
Justin Santa Barbara 85f13a42ab gossipdns: More comments and better error handling 2017-04-25 14:00:30 -04:00
Justin Santa Barbara c8b18be9dd Gossip backed DNS 2017-04-25 01:32:21 -04:00
Miao Luo aed9f154ad Fix minor errors due to rebase. 2017-04-21 11:03:13 -07:00
Miao Luo b15014f9a3 Address review comments and add installing instructions. 2017-04-20 23:37:41 -07:00
Miao Luo c5519c0009 Add CoreDNS support into DNS controller addon image. 2017-04-20 23:33:21 -07:00
Miao Luo 6b010c4c5e Enable CoreDNS in nodeup/protokube (#6)
* Enable CoreDNS in nodeup/protokube.

* Address comments.
2017-04-20 23:33:21 -07:00
Justin Santa Barbara 781a746aaf Fix typo: changset -> changeset 2017-04-08 02:14:21 -04:00
Justin Santa Barbara 115a4ffffc dns-controller: skip over duplicate records
Route53 considers this an error
2017-03-28 02:16:24 -04:00
Justin Santa Barbara 4006741a5d Update for new taints / labels names 2017-03-27 23:13:39 -04:00
Justin Santa Barbara cb4641fea3 Code updates 2017-03-16 02:40:50 -04:00
Justin Santa Barbara cc5a393814 More verbose error messages on DNS errors 2017-03-14 10:26:01 -04:00
Justin Santa Barbara 31394aedfa dns-controller: include namespace in keys
Avoids collisions when two services are named the same (for example).

Fix #1788
2017-02-15 23:58:25 -05:00
Justin Santa Barbara 4504028b9b dns-controller optimizations
* Cache list of zones
* Combine DNS changesets
* If we have to list records for a zone, cache them in the dns operation
2017-01-16 23:39:25 -05:00
Justin Santa Barbara cd2fc839f3 DNS logging tweaks 2017-01-10 11:26:25 -05:00
Justin Santa Barbara 58621dceb1 Turn down no-change logging in dns-controller 2017-01-09 20:51:49 -05:00
Chris Love 2dbda04f0d Merge pull request #1397 from justinsb/fix_1391
dns-controller: don't make spurious updates in buffer
2017-01-08 20:19:33 -07:00
Justin Santa Barbara 537085d94c dns-controller: don't make spurious updates in buffer
These will be caught later anyway, but we can save a false invalidation
and a spurious log message.
2017-01-08 21:37:12 -05:00
Justin Santa Barbara 43eb686f7c Add diagnostic message when updating DNS
In debugging, it would have been useful to see the old & new values
sometimes
2017-01-08 09:39:59 -05:00
Justin Santa Barbara 84fad6e2b2 Merge pull request #697 from justinsb/unify_dns
Rework protokube dns so it shares code with dns-controller
2017-01-04 23:20:56 -05:00
Justin Santa Barbara 22a963d5af Rework protokube dns so it shares code with dns-controller 2017-01-03 22:33:40 -05:00
Justin Santa Barbara a375b1af82 Updates for k8s 1.6 code 2017-01-03 20:32:48 -05:00
chrislovecnm c3d1b2b26b updating headers, OMG we need this in the ci 2016-12-03 13:09:58 -07:00
Justin Santa Barbara 9cee0eaccd Apply gofmt 2016-12-02 11:20:41 -05:00
Aman f93219eae3
Update dns-controller README 2016-12-01 15:06:02 +05:30
Aman 7cd7eea2d5
Add unit tests 2016-11-29 16:09:45 +05:30
Aman 48aba161a0
Add support for annotation "internal" on services
- it adds node private IPs as DNS A records in route53
2016-11-21 12:08:20 +05:30
Kris Childress 77d42b39f6 Merge pull request #720 from justinsb/aliases_for_nodes
Support aliases for NodePort services
2016-11-20 19:27:57 -07:00
Justin Santa Barbara 5d8ebcd34f Fixes per code review 2016-11-19 15:22:18 -05:00
Justin Santa Barbara b8729f2738 Support aliases for NodePort services
Fixes #718
2016-11-19 15:22:18 -05:00
Justin Santa Barbara 27026ff110 Misc build fixes for dns-controller 2016-11-19 15:01:00 -05:00
chrislovecnm 8fa2aac99f fixing more headers 2016-10-15 19:20:56 -06:00