10.2. 설치 중 프록시 구성
roxctl CLI(명령줄 인터페이스) 또는 Helm을 사용하여 Kubernetes용 Red Hat Advanced Cluster Security를 설치하는 경우 설치 중에 프록시 구성을 지정할 수 있습니다.
roxctl central generate 명령을 사용하여 설치 프로그램을 실행하면 설치 프로그램이 환경에 대한 시크릿 및 배포 구성 파일을 생성합니다. 생성된 구성 시크릿(YAML) 파일을 편집하여 프록시를 구성할 수 있습니다. 현재 roxctl CLI를 사용하여 프록시를 구성할 수 없습니다. 구성은 쿠버네티스 시크릿에 저장되고 중앙과 스캐너 둘 다에서 공유합니다.
절차
배포 번들 디렉터리에서 구성 파일
central/proxy-config-secret.yaml을 엽니다.참고Helm을 사용하는 경우 구성 파일은
central/templates/proxy-config-secret.yaml에 있습니다.구성 파일에서 수정할 필드를 편집합니다.
apiVersion: v1 kind: Secret metadata: namespace: stackrox name: proxy-config type: Opaque stringData: config.yaml: |-1 # # NOTE: Both central and scanner should be restarted if this secret is changed. # # While it is possible that some components will pick up the new proxy configuration # # without a restart, it cannot be guaranteed that this will apply to every possible # # integration etc. # url: http://proxy.name:port2 # username: username3 # password: password4 # # If the following value is set to true, the proxy wil NOT be excluded for the default hosts: # # - *.stackrox, *.stackrox.svc # # - localhost, localhost.localdomain, 127.0.0.0/8, ::1 # # - *.local # omitDefaultExcludes: false # excludes: # hostnames (may include * components) for which you do not5 # # want to use a proxy, like in-cluster repositories. # - some.domain # # The following configuration sections allow specifying a different proxy to be used for HTTP(S) connections. # # If they are omitted, the above configuration is used for HTTP(S) connections as well as TCP connections. # # If only the `http` section is given, it will be used for HTTPS connections as well. # # Note: in most cases, a single, global proxy configuration is sufficient. # http: # url: http://http-proxy.name:port6 # username: username7 # password: password8 # https: # url: http://https-proxy.name:port9 # username: username10 # password: password11 - 3 4 7 8 10 11
사용자 이름과암호를 추가하는 것은 시작과http및https섹션의 선택 사항입니다.- 2 6 9
url옵션은 다음 URL 스키마를 지원합니다.-
HTTP 프록시의 경우 HTTP
://입니다. -
TLS 사용 HTTP 프록시의 경우 HTTPS
://입니다. -
socks5://for a#177KS5 proxy.
-
HTTP 프록시의 경우 HTTP
- 5
excludes목록에는 CIDR 표기법(예:10.0.0.0/8)의 DNS 이름(*와일드카드 포함), IP 주소 또는 IP 블록이 포함될 수 있습니다. 이 목록의 값은 프로토콜에 관계없이 모든 발신 연결에 적용됩니다.- 1
stringData섹션의|-행은 구성 데이터의 시작을 나타냅니다.참고-
파일을 처음 열면 모든 값이 주석 처리됩니다(행 시작 부분에
#기호를 사용하여). 이중 해시 기호로 시작하는 줄# #에는 구성 키에 대한 설명이 포함되어 있습니다. -
필드를 편집할 때
config.yaml: |-행과 관련된 들여쓰기 수준을 두 개의 공백으로 유지합니다.
-
파일을 처음 열면 모든 값이 주석 처리됩니다(행 시작 부분에
- 구성 파일을 편집한 후 일반적인 설치를 진행할 수 있습니다. 업데이트된 구성은 제공된 주소와 포트 번호에서 실행되는 프록시를 사용하도록 Red Hat Advanced Cluster Security for Kubernetes에 지시합니다.