You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/23 08:22:50 UTC

[GitHub] [apisix] oldthreefeng opened a new issue #3109: request help: how to change admin_key when apisix is deployed

oldthreefeng opened a new issue #3109:
URL: https://github.com/apache/apisix/issues/3109


   ### Issue description
   
   i deploy apisix in my k8s cluster which instructions in https://github.com/apache/apisix/blob/master/kubernetes/README.md. 
   
   how can i chage the admin key when apisix is already deployed ? 
   
   just edit the cm of `apisix-gw-config.yaml` ; then apply in kubernetes?  
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.5
   * OS: (cmd: `uname -a`) Linux k8s-node 3.10.0-1160.6.1.el7.x86_64 #1 SMP Tue Nov 17 13:59:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
   * OpenResty / Nginx version: (cmd: `nginx -V` or `openresty -V`)
   ```
   $ nginx -V
   Tengine version: Tengine/2.3.2
   nginx version: nginx/1.17.3
   built by gcc 6.4.0 (Alpine 6.4.0) 
   built with OpenSSL 1.1.1b Tassl 1.4  23 Aug 2020
   TLS SNI support enabled
   configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/openssl/include -g -Og -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated-declarations -fno-strict-aliasing -D_FORTIFY_SOURCE=2 --param=ssp-buffer-size=4 -DTCP_FASTOPEN=23 -fPIC -m64 -mtune=native' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.17 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-modu
 le-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.8 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/openssl/lib -Wl,-rpath,/usr/local/openresty/openssl/lib -fPIE -fPIC -pie -Wl,-z,relro -Wl,-z,now' --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-htt
 p_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-stream --with-stream_ssl_module --with-stream_realip_module --with-stream_geoip_module=dynamic --with-stream_ssl_preread_module --with-stream_sni --with-jemalloc --with-pcre --with-pcre-jit --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --without-http_scgi_module --without-http_uwsgi_module --add-module=/usr/local/src/openresty-1.17.8.2/bundle/lua-var-nginx-module --add-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_upstream_vnswrr_module --add-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/mod_dubbo --add-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_multi_upstream_module --
 add-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/mod_config --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_concat_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_footer_filter_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_proxy_connect_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_reqstat_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_slice_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_sysguard_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_trim_filter_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_upstream_check_module --add-dynamic-module=/usr/l
 ocal/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_upstream_consistent_hash_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_upstream_dynamic_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_upstream_dyups_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_upstream_session_sticky_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_http_user_agent_module --add-dynamic-module=/usr/local/src/openresty-1.17.8.2/bundle/tengine-2.3.2/modules/ngx_slab_stat --with-stream --with-stream_ssl_preread_module
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] oldthreefeng commented on issue #3109: request help: how to change admin_key when apisix is deployed

Posted by GitBox <gi...@apache.org>.
oldthreefeng commented on issue #3109:
URL: https://github.com/apache/apisix/issues/3109#issuecomment-750304914


   Thanks for your prompt reply.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] oldthreefeng closed issue #3109: request help: how to change admin_key when apisix is deployed

Posted by GitBox <gi...@apache.org>.
oldthreefeng closed issue #3109:
URL: https://github.com/apache/apisix/issues/3109


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3109: request help: how to change admin_key when apisix is deployed

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3109:
URL: https://github.com/apache/apisix/issues/3109#issuecomment-750302896


   Update the ConfigMap and apply it, and recreate APISIX pods, because the key is used only after restart.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org