Skip to Content
쿠버네티스 창시자에게 배우는 모범 사례 2판
book

쿠버네티스 창시자에게 배우는 모범 사례 2판

by 브렌던 번스, 에디 비얄바, 데이브 스트레벨, 라클런 이븐슨, 이일웅
October 2024
Beginner to intermediate
452 pages
10h 12m
Korean
Hanbit Media, Inc.
Content preview from 쿠버네티스 창시자에게 배우는 모범 사례 2판
259
CHAPTER 11
클러스터 정책과 거버넌스
만약 이 정책에 맞지 않는 리소스를 만들면 어떻게 될까?
apiVersion
:
v1
kind
:
Pod
metadata
:
name
:
opa
namespace
:
production
spec
:
containers
:
-
name
:
opa
image
:
quay
.
io
/
opa
:
0
.
9
.
2
그럼, 다음과 같이 제약조건 템플릿에 정의된 위반 메시지가 화면에 표시될 것이다.
$
kubectl create
-
f bad
_
resources
/
opa
_
wrong
_
repo
.
yaml
Error from server
(
Forbidden
):
error when creating
"
STDIN
":
admission webhook
"
validation
.
gatekeeper
.
sh
"
denied the request
:
[
repo
-
is
-
openpolicyagent
]
container
<
opa
>
has an invalid image repo
<
quay
.
io
/
opa
:
0
.
9
.
2
>,
allowed
repos are
["
openpolicyagent
/"]
11.5
집행 액션과 감사 적용
지금까지 정책을 어떻게 정의하는지, 요청 허용 과정에서 정책을 어떻게 집행하는지 알아보
았다. 제약조건은
enforcementAction
을 구성할 수 있는데, 디폴트 값은
deny
이고
warn ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

효율적인 리눅스 명령어 사용의 기술

효율적인 리눅스 명령어 사용의 기술

Daniel J Barrett
클라우드 엔지니어를 위한 97가지 조언

클라우드 엔지니어를 위한 97가지 조언

Emily Freeman, Nathen Harvey, 정기훈(Jung Ki Hun)

Publisher Resources

ISBN: 9791169212939