Update opentracing module and release image to quay.io
This commit is contained in:
parent
be1fd6198c
commit
e560536857
4 changed files with 14 additions and 15 deletions
|
@ -13,7 +13,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# 0.0.0 shouldn't clobber any released builds
|
# 0.0.0 shouldn't clobber any released builds
|
||||||
TAG ?= 0.27
|
TAG ?= 0.28
|
||||||
REGISTRY ?= quay.io/kubernetes-ingress-controller
|
REGISTRY ?= quay.io/kubernetes-ingress-controller
|
||||||
ARCH ?= $(shell go env GOARCH)
|
ARCH ?= $(shell go env GOARCH)
|
||||||
DOCKER ?= gcloud docker --
|
DOCKER ?= gcloud docker --
|
||||||
|
@ -47,11 +47,11 @@ endif
|
||||||
|
|
||||||
TEMP_DIR := $(shell mktemp -d)
|
TEMP_DIR := $(shell mktemp -d)
|
||||||
|
|
||||||
|
all: all-container
|
||||||
|
|
||||||
image-info:
|
image-info:
|
||||||
echo -n '{"image":"$(IMAGE)","tag":"$(TAG)"}'
|
echo -n '{"image":"$(IMAGE)","tag":"$(TAG)"}'
|
||||||
|
|
||||||
all: all-container
|
|
||||||
|
|
||||||
sub-container-%:
|
sub-container-%:
|
||||||
$(MAKE) ARCH=$* container
|
$(MAKE) ARCH=$* container
|
||||||
|
|
||||||
|
|
|
@ -4,20 +4,22 @@ nginx 1.13.x base image using [ubuntu-slim](https://github.com/kubernetes/ingres
|
||||||
nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP proxy server.
|
nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP proxy server.
|
||||||
|
|
||||||
This custom nginx image contains:
|
This custom nginx image contains:
|
||||||
|
|
||||||
- [stream](http://nginx.org/en/docs/stream/ngx_stream_core_module.html) tcp support for upstreams
|
- [stream](http://nginx.org/en/docs/stream/ngx_stream_core_module.html) tcp support for upstreams
|
||||||
- nginx stats [nginx-module-vts](https://github.com/vozlt/nginx-module-vts)
|
- nginx stats [nginx-module-vts](https://github.com/vozlt/nginx-module-vts)
|
||||||
- [Dynamic TLS record sizing](https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/)
|
- [Dynamic TLS record sizing](https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/)
|
||||||
|
|
||||||
|
|
||||||
**How to use this image:**
|
**How to use this image:**
|
||||||
This image does provides a default configuration file with no backend servers.
|
This image does provides a default configuration file with no backend servers.
|
||||||
|
|
||||||
*Using docker*
|
*Using docker*
|
||||||
```
|
|
||||||
$ docker run -v /some/nginx.con:/etc/nginx/nginx.conf:ro gcr.io/google_containers/nginx-slim:0.27
|
```console
|
||||||
|
docker run -v /some/nginx.con:/etc/nginx/nginx.conf:ro quay.io/kubernetes-ingress-controller/nginx-slim:0.28
|
||||||
```
|
```
|
||||||
|
|
||||||
*Creating a replication controller*
|
*Creating a replication controller*
|
||||||
```
|
|
||||||
$ kubectl create -f ./rc.yaml
|
```console
|
||||||
|
kubectl create -f ./rc.yaml
|
||||||
```
|
```
|
||||||
|
|
|
@ -27,16 +27,13 @@ export STICKY_SESSIONS_VERSION=08a395c66e42
|
||||||
export MORE_HEADERS_VERSION=0.32
|
export MORE_HEADERS_VERSION=0.32
|
||||||
export NGINX_DIGEST_AUTH=7955af9c77598c697ac292811914ce1e2b3b824c
|
export NGINX_DIGEST_AUTH=7955af9c77598c697ac292811914ce1e2b3b824c
|
||||||
export NGINX_SUBSTITUTIONS=bc58cb11844bc42735bbaef7085ea86ace46d05b
|
export NGINX_SUBSTITUTIONS=bc58cb11844bc42735bbaef7085ea86ace46d05b
|
||||||
export NGINX_OPENTRACING_VERSION=0.1.0
|
export NGINX_OPENTRACING_VERSION=0.1.1
|
||||||
export OPENTRACING_CPP_VERSION=1.0.0
|
export OPENTRACING_CPP_VERSION=1.0.0
|
||||||
export ZIPKIN_CPP_VERSION=0.1.0
|
export ZIPKIN_CPP_VERSION=0.1.0
|
||||||
export MODSECURITY=a2a5858d249222938c2f5e48087a922c63d7f9d8
|
export MODSECURITY=a2a5858d249222938c2f5e48087a922c63d7f9d8
|
||||||
|
|
||||||
export BUILD_PATH=/tmp/build
|
export BUILD_PATH=/tmp/build
|
||||||
|
|
||||||
export NGINX_OPENTRACING_VENDOR="ZIPKIN"
|
|
||||||
|
|
||||||
|
|
||||||
ARCH=$(uname -p)
|
ARCH=$(uname -p)
|
||||||
|
|
||||||
get_src()
|
get_src()
|
||||||
|
@ -117,7 +114,7 @@ get_src 9b1d0075df787338bb607f14925886249bda60b6b3156713923d5d59e99a708b \
|
||||||
get_src 618551948ab14cac51d6e4ad00452312c7b09938f59ebff4f93875013be31f2d \
|
get_src 618551948ab14cac51d6e4ad00452312c7b09938f59ebff4f93875013be31f2d \
|
||||||
"https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/$NGINX_SUBSTITUTIONS.tar.gz"
|
"https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/$NGINX_SUBSTITUTIONS.tar.gz"
|
||||||
|
|
||||||
get_src 624bdcade5da12cc5bae52f0190155a6ff519e86209c6b3c9f5ca3baa5096aec \
|
get_src 8c55a7ec639b186689a0053eed5f1605f38c461f0d3ee6e728bb466a148a44d2 \
|
||||||
"https://github.com/opentracing-contrib/nginx-opentracing/archive/v$NGINX_OPENTRACING_VERSION.tar.gz"
|
"https://github.com/opentracing-contrib/nginx-opentracing/archive/v$NGINX_OPENTRACING_VERSION.tar.gz"
|
||||||
|
|
||||||
get_src 9543f66790ba65810869a29b3aaef5286f1c446cb498a304d0d8b153c289cae8 \
|
get_src 9543f66790ba65810869a29b3aaef5286f1c446cb498a304d0d8b153c289cae8 \
|
||||||
|
@ -207,7 +204,7 @@ WITH_MODULES="--add-module=$BUILD_PATH/ngx_devel_kit-$NDK_VERSION \
|
||||||
--add-module=$BUILD_PATH/nginx-goodies-nginx-sticky-module-ng-$STICKY_SESSIONS_VERSION \
|
--add-module=$BUILD_PATH/nginx-goodies-nginx-sticky-module-ng-$STICKY_SESSIONS_VERSION \
|
||||||
--add-module=$BUILD_PATH/nginx-http-auth-digest-$NGINX_DIGEST_AUTH \
|
--add-module=$BUILD_PATH/nginx-http-auth-digest-$NGINX_DIGEST_AUTH \
|
||||||
--add-module=$BUILD_PATH/ngx_http_substitutions_filter_module-$NGINX_SUBSTITUTIONS \
|
--add-module=$BUILD_PATH/ngx_http_substitutions_filter_module-$NGINX_SUBSTITUTIONS \
|
||||||
--add-dynamic-module=$BUILD_PATH/nginx-opentracing-$NGINX_OPENTRACING_VERSION/opentracing
|
--add-dynamic-module=$BUILD_PATH/nginx-opentracing-$NGINX_OPENTRACING_VERSION/opentracing \
|
||||||
--add-dynamic-module=$BUILD_PATH/nginx-opentracing-$NGINX_OPENTRACING_VERSION/zipkin"
|
--add-dynamic-module=$BUILD_PATH/nginx-opentracing-$NGINX_OPENTRACING_VERSION/zipkin"
|
||||||
|
|
||||||
if [[ ${ARCH} == "x86_64" ]]; then
|
if [[ ${ARCH} == "x86_64" ]]; then
|
||||||
|
|
|
@ -29,6 +29,6 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nginxslim
|
- name: nginxslim
|
||||||
image: gcr.io/google_containers/nginx-slim:0.27
|
image: quay.io/kubernetes-ingress-controller/nginx-slim:0.28
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|
Loading…
Reference in a new issue