5.13. 프록시 구성 나열
3scale 툴박스를 사용하여 개발자 포털에서 정의된 모든 프록시 구성을 나열, 표시, 승격합니다.
다음 명령은 프록시 구성을 나열합니다.
3scale proxy-config list <remote> <service> <environment>
프록시 구성을 나열하는 동안 다음 옵션을 사용합니다.
Options -o --output=<value> Output format on stdout: one of json|yaml Options for proxy-config -c --config-file=<value> 3scale toolbox configuration file: defaults to $HOME/.3scalerc.yaml -h --help Print help for this command -k --insecure Proceed and operate even for server connections otherwise considered insecure -v --version Print the version of this command --verbose Verbose mode
5.13.1. 프록시 구성 표시
다음 명령은 프록시 구성을 표시합니다.
3scale proxy-config show <remote> <service> <environment>
프록시 구성을 표시하는 동안 다음 옵션을 사용합니다.
Options --config-version=<value> Specify the proxy configuration version. If not specified, defaults to latest -o --output=<value> Output format on stdout: one of json|yaml Options for proxy-config -c --config-file=<value> 3scale toolbox configuration file: defaults to $HOME/.3scalerc.yaml -h --help Print help for this command -k --insecure Proceed and operate even for server connections otherwise considered insecure -v --version Print the version of this command --verbose Verbose mode
5.13.2. 프록시 구성 승격
다음 명령은 최신 스테이징 프록시 구성을 프로덕션 환경으로 승격합니다.
3scale proxy-config promote <remote> <service>
최신 스테이징 프록시 구성을 프로덕션 환경으로 승격하는 동안 다음 옵션을 사용합니다.
Options for proxy-config -c --config-file=<value> 3scale toolbox configuration file: defaults to $HOME/.3scalerc.yaml -h --help Print help for this command -k --insecure Proceed and operate even for server connections otherwise considered insecure -v --version Print the version of this command --verbose Verbose mode
5.13.3. 프록시 구성 내보내기
예를 들어, 3scale 인스턴스에 연결되어 있지 않은 자체 관리 APIcast 게이트웨이가 있는 경우 proxy-config export
명령을 사용합니다. 이 시나리오에서는 3scale 구성을 수동으로 삽입하거나 API cast 배포 및 구성 옵션을 사용하여 삽입합니다. 두 경우 모두 3scale 구성을 제공해야 합니다.
다음 명령은 APIcast 게이트웨이에 삽입할 수 있는 구성을 내보냅니다.
3scale proxy-config export <remote>
3scale 구성 파일로 사용할 공급자 계정의 프록시 구성을 내보낼 때 다음 옵션을 지정할 수 있습니다.
Options for proxy-config --environment=<value> Gateway environment. Must be 'sandbox' or 'production' (default: sandbox) -o --output=<value> Output format. One of: json|yaml
5.13.4. 프록시 구성 배포
다음 배포
명령은 서비스 메시를 사용하는 경우 APIcast 구성을 3scale의 스테이징 환경 또는 프로덕션 환경으로 승격합니다.
3scale proxy-config deploy <remote> <service>
deploy
명령을 사용하여 APIcast 구성을 스테이징 환경으로 승격할 때 다음 옵션을 지정할 수 있습니다.
-o --output=<value> Output format. One of: json|yaml
추가 리소스