This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.9.2.10. 다른 서비스 계정으로 Pod 실행
기본값 이외의 서비스 계정으로 Pod를 실행할 수 있습니다.
배포 구성을 편집합니다.
oc edit dc/<deployment_config>
$ oc edit dc/<deployment_config>
Copy to Clipboard Copied! serviceAccount
및serviceAccountName
매개변수를spec
필드에 추가하고 사용할 서비스 계정을 지정합니다.spec: securityContext: {} serviceAccount: <service_account> serviceAccountName: <service_account>
spec: securityContext: {} serviceAccount: <service_account> serviceAccountName: <service_account>
Copy to Clipboard Copied!