Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request help: how to change admin_key when apisix is deployed #3109

Closed
oldthreefeng opened this issue Dec 23, 2020 · 2 comments
Closed

request help: how to change admin_key when apisix is deployed #3109

oldthreefeng opened this issue Dec 23, 2020 · 2 comments

Comments

@oldthreefeng
Copy link

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 change: added doc of how to load plugin. #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-module-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-http_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/local/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
@spacewander
Copy link
Member

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

@oldthreefeng
Copy link
Author

Thanks for your prompt reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants