Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

9.2.11. 다른 서비스 계정으로 Pod 실행

기본값 이외의 서비스 계정으로 Pod를 실행할 수 있습니다.

  1. 배포 구성을 편집합니다.

    $ oc edit dc/<deployment_config>
  2. serviceAccountserviceAccountName 매개변수를 spec 필드에 추가하고 사용할 서비스 계정을 지정합니다.

    spec:
      securityContext: {}
      serviceAccount: <service_account>
      serviceAccountName: <service_account>