Commit graph

1181 commits

Author SHA1 Message Date
Manuel Alejandro de Brito Fontes
eb61873730 Merge pull request #850 from aledbf/fix-udp
Fix IPv6 UDP stream section
2017-06-13 08:46:46 -04:00
Manuel de Brito Fontes
51b2e0f2cb Fix IPv6 UDP stream section 2017-06-13 08:45:30 -04:00
Manuel Alejandro de Brito Fontes
2ebd98fa02 Merge pull request #848 from gianrubio/ssl-expire-metric
Add metric "ssl certificate expiration"
2017-06-13 08:16:08 -04:00
Manuel Alejandro de Brito Fontes
5d7a938c6a Merge pull request #847 from gianrubio/patch-2
fix semicolon
2017-06-13 08:14:34 -04:00
Giancarlo Rubio
d9cf043552 Instrument nginx to expose metric "ssl certficate expiration time "
Add a console warning message 10 days before the certificate expire
2017-06-13 13:44:00 +02:00
Giancarlo Rubio
fffddebdf8 add semicolon 2017-06-13 13:05:43 +02:00
Manuel Alejandro de Brito Fontes
e258ee19d1 Merge pull request #846 from justinsb/serviceport
Match ServicePort to Endpoints by Name
2017-06-12 23:58:49 -04:00
Justin Santa Barbara
cacc7bc21e Match ServicePort to Endpoints by Name
We can never match on the EndpointPort.Port; that is the container port.
2017-06-12 23:02:28 -04:00
Manuel Alejandro de Brito Fontes
cdbf2aad37 Merge pull request #824 from aledbf/update-nginx-controller
Update nginx-slim to 0.18
2017-06-12 18:39:15 -04:00
Nick Sardo
a5aaf45926 Merge pull request #823 from aledbf/update-nginx
Release nginx-slim 0.18
2017-06-12 15:08:48 -07:00
Manuel Alejandro de Brito Fontes
ff6b713caf Merge pull request #843 from aledbf/low-fs-max
Avoid setting maximum number of open file descriptors lower than 1024
2017-06-12 16:42:36 -04:00
Manuel de Brito Fontes
d5d958a332 Avoid setting maximum number of open file descriptors lower than 1024 2017-06-12 16:20:40 -04:00
Manuel Alejandro de Brito Fontes
9c395cd861 Merge pull request #822 from aledbf/master
Release ubuntu-slim 0.11
2017-06-12 15:47:59 -04:00
Manuel Alejandro de Brito Fontes
72f484e72f Merge pull request #837 from aledbf/cleanup-interface
Cleanup interface
2017-06-12 15:41:46 -04:00
Manuel de Brito Fontes
8a8e955b64 Update dummy controller interface 2017-06-11 15:59:44 -04:00
Manuel de Brito Fontes
748f686eca Update nginx interface 2017-06-11 15:56:40 -04:00
Manuel de Brito Fontes
dca6de883c Simplify controller interface 2017-06-11 15:56:30 -04:00
Manuel Alejandro de Brito Fontes
ecb95156ca Merge pull request #836 from coryfklein/master
Make log format json escaping configurable
2017-06-11 14:12:00 -04:00
Cory Klein
fa70e5e905 Make log format json escaping configurable
This will allow json logging in nginx ingress controllers which greatly
improves ease of log indexing and searching via elasticsearch.

After this change is made, users could set the following property in the
ingress configmap to enable json logging:

log-format-upstream: '{"proxy_protocol_addr": "$proxy_protocol_addr", "proxy_add_x_forwarded_for": "$proxy_add_x_forwarded_for", "remote_user": "$remote_user", "time_iso8601": "$time_iso8601", "request": "$request", "status": "$status", "body_bytes_sent": "$body_bytes_sent", "http_referer": "$http_referer", "http_user_agent": "$http_user_agent", "request_length": "$request_length", "request_time": "$request_time", "proxy_upstream_name": "$proxy_upstream_name", "upstream_addr": "$upstream_addr", "upstream_response_length": "$upstream_response_length", "upstream_response_time": "$upstream_response_time", "upstream_status": "$upstream_status"}'
2017-06-09 15:32:11 -06:00
Nick Sardo
816b7f511d Merge pull request #834 from nicksardo/gce-websocket-example
[GCLB] Add websocket example
2017-06-09 12:47:48 -07:00
Nick Sardo
46a9943eb6 Add websocket example 2017-06-09 12:46:47 -07:00
Manuel Alejandro de Brito Fontes
dd7090b969 Merge pull request #827 from stp-ip/nginx-rbac
Introduce working example of nginx controller with rbac
2017-06-09 14:36:42 -04:00
Manuel Alejandro de Brito Fontes
dbb12afbb9 Merge pull request #829 from rlguarino/ross/2017-06-08T18-48-35-07-00
feat(template): wrap IPv6 addresses in []
2017-06-09 13:21:30 -04:00
Ross Guarino
54f6729dc8 feat(template): wrap IPv6 addresses in []
Add formatIP helper function which will wrap IPv6 addresses
in [] and print IPv4 addresses as is.

Closes #828
2017-06-08 20:11:00 -07:00
Michael Grosser
ec6efbd9d3 Introduce working example of nginx controller with rbac 2017-06-08 06:34:47 +00:00
Manuel Alejandro de Brito Fontes
d556cc07b6 Merge pull request #825 from jcmoraisjr/jm-edit-ingclass
Create or delete ingress based on class annotation
2017-06-07 17:43:35 -04:00
Joao Morais
6b54ae58ac Create or delete ingress based on class annotation 2017-06-07 13:16:34 -03:00
Manuel de Brito Fontes
a4793eda8c Update nginx-slim to 0.18 2017-06-07 11:33:13 -04:00
Manuel de Brito Fontes
98454a0aa2 Release nginx-slim 0.18 2017-06-07 11:07:12 -04:00
Manuel de Brito Fontes
1ea89a6112 Release ubuntu-slim 0.11 2017-06-07 10:38:03 -04:00
Nick Sardo
8cd9a5a98a Merge pull request #786 from aledbf/update-echoheaders
Update echoserver image version in examples
2017-06-06 16:38:48 -07:00
Nick Sardo
82bc0059aa Merge pull request #818 from nicksardo/gce-fix-backendStatus
[GLBC] Fix backend status out of bounds error
2017-06-06 13:06:26 -07:00
Nick Sardo
851c9d0d41 Fix backend status out of bounds 2017-06-06 13:02:57 -07:00
Nick Sardo
8ce0ea914c Merge pull request #817 from nicksardo/gce-fix-mapsEqual
[GCLB] Fix mapsEqual out of bounds error
2017-06-06 12:50:46 -07:00
Nick Sardo
95114f9a75 Fix mapsEqual out of bounds error 2017-06-06 12:40:37 -07:00
Manuel Alejandro de Brito Fontes
dd354bf2a0 Merge pull request #813 from olvesh/externalauth_client_max_body_size_811
Added client_max_body_size to authPath location
2017-06-06 11:11:46 -04:00
Manuel Alejandro de Brito Fontes
2829997b5f Merge pull request #814 from arno01/nginx-ingress-controller-rbac-fix1
rbac-nginx: resourceNames cannot filter create verb
2017-06-04 12:41:31 -04:00
Andrey Arapov
4618fd2f64
rbac-nginx: resourceNames cannot filter create verb 2017-06-03 11:28:28 +02:00
Olve Sæther Hansen
d4600a87b5 Added client_max_body_size to authPath location
Seems like nginx denies the request because it would be over the max body size,
event if `proxy_pass_request_body` is `off`.

This fixes 811
2017-06-02 22:40:29 +02:00
Manuel Alejandro de Brito Fontes
4c868cf62a Merge pull request #806 from puja108/patch-1
fix ingress rbac roles
2017-06-02 12:02:14 -04:00
Manuel Alejandro de Brito Fontes
66b4c2606b Merge pull request #809 from aledbf/fix-variables-map
Fix dynamic variable name
2017-06-02 11:59:32 -04:00
Jan Weitz
cf4ad26d3c Fix #798 - RBAC for leader election
Using gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.7
the nginx-controller needs to handle leader-election via configmaps.

To perform the leader-election the nginx-controller needs to have the
appropiate RBAC permissions.

Previously to this fix, the following errors occured:

-  cannot get configmaps in the namespace "NAMESPACE_PLACEHOLDER". (get configmaps ingress-controller-leader-nginx)
- initially creating leader election record: User "system:serviceaccount:NAMESPACE_PLACEHOLDER" cannot create configmaps in the namespace "NAMESPACE_PLACEHOLDER". (post configmaps)

fix ingress rbac roles

There was 2 things that the current IC (0.9 beta7) needs.

The ClusterRole was missing `get nodes`:

```
RBAC DENY: user "system:serviceaccount:kube-system:nginx-ingress-controller" groups [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] cannot "get" resource "nodes" named "xxx" cluster-wide
```

The Role was missing `update configmaps`:

```RBAC DENY: user "system:serviceaccount:kube-system:nginx-ingress-controller" groups [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] cannot "update" resource "configmaps" named "ingress-controller-leader-nginx" in namespace "kube-system"```

removed update configmap because of #798

rebased on master, moved get nodes to own rule

added get nodes to cluster permissions
2017-06-02 17:57:15 +02:00
Manuel de Brito Fontes
b70e9ca078 Fix dynamic variable name 2017-06-02 11:12:02 -04:00
Manuel Alejandro de Brito Fontes
f1484650d3 Merge pull request #804 from weitzj/fix/798
Fix #798 - RBAC for leader election
2017-06-01 20:18:36 -04:00
Jan Weitz
3ad6fa80d4 Fix #798 - RBAC for leader election
Using gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.7
the nginx-controller needs to handle leader-election via configmaps.

To perform the leader-election the nginx-controller needs to have the
appropiate RBAC permissions.

Previously to this fix, the following errors occured:

-  cannot get configmaps in the namespace "NAMESPACE_PLACEHOLDER". (get configmaps ingress-controller-leader-nginx)
- initially creating leader election record: User "system:serviceaccount:NAMESPACE_PLACEHOLDER" cannot create configmaps in the namespace "NAMESPACE_PLACEHOLDER". (post configmaps)
2017-06-01 21:30:21 +02:00
Nick Sardo
a6bba68233 Merge pull request #785 from aledbf/echoheaders
Publish echoheader image
2017-05-30 11:01:43 -07:00
Manuel de Brito Fontes
c18c8f76ba Publish echoheader image 2017-05-30 13:51:32 -04:00
Manuel Alejandro de Brito Fontes
3f0307a96e Merge pull request #792 from aledbf/refactor-has-synced
Avoid checking if the controllers are synced
2017-05-29 20:38:30 -04:00
Manuel Alejandro de Brito Fontes
5f71bde601 Merge pull request #753 from jcmoraisjr/jm-secret-tracker
Move secretTracker updating to GetAuthCertificate()
2017-05-29 17:01:40 -04:00
Manuel de Brito Fontes
5472555186 Avoid checking if the controllers are synced 2017-05-29 12:22:30 -04:00