sentinel 구성 블록

sentinel 구성 블록 (Sentinel Configuration Block)

이 페이지는 Nomad 에이전트 구성의 sentinel 블록에서 Sentinel 정책 엔진을 구성하는 방법에 대한 참조 정보를 제공해요. Nomad가 Sentinel 정책을 가져오는 데 사용하는 플러그인의 경로를 구성하고, 시작 시 해당 플러그인에 전달할 인자를 지정해요.

Enterprise — 이 기능은 Nomad Enterprise에서 사용할 수 있어요.

출처: 문서

본문

sentinel {
    import "custom-plugin" {
        path = "/usr/bin/sentinel-custom-plugin"
        args = ["-verbose", "foo"]
    }

    additional_enabled_modules = ["http"]
}

sentinel 매개변수 (Parameters)

  • import (Import: nil) — Sentinel 정책이 가져올 수 있도록 제공해야 하는 플러그인을 지정해요. import의 이름은 가져올 수 있는 이름과 일치해요.
  • additional_enabled_modules (array<string>: []) — 정책에서 허용할 추가 표준 import(모듈) 목록을 지정해요. Nomad는 현재 성능과 보안에 영향을 주는 "http" import를 제외한 모든 Sentinel 표준 import를 활성화해요. 이 필드를 ["http"]로 설정하면 표준 import에 더해 "http" 모듈도 활성화돼요. 앞으로 Nomad가 자동으로 활성화하지 않는 새 Sentinel import가 생기면 이 필드에서 활성화할 수 있어요. Sentinel 정책에서 http import 사용에 대한 권장 사항은 "Using the http import in Sentinel policies"를 참고해요.

import 매개변수 (Parameters)

  • path (string: "") — import 플러그인의 경로를 지정해요. Nomad가 실행할 수 있어야 해요.
  • args (array<string>: []) — 플러그인 시작 시 전달할 인자를 지정해요.

리소스 (Resources)

Nomad에서 Sentinel 정책을 사용하는 방법에 대한 자세한 내용은 다음 리소스를 참고해요.

  • Nomad에서의 거버넌스와 정책 (Governance and policy on Nomad)
  • Sentinel 정책 (Sentinel policies)
  • Sentinel 정책 참조 (Sentinel policy reference)

더 알아보기 (Learn more)