kubectl scale --replicas=5 -f replicaset-definition.yaml
kubectl config set-context $(kubectl config current-context) --namespace=dev
apiVersion: v1
kinf: ResourceQuota
metadata:
name: DevNamespace-Quota
namespace: dev
sbtPlugin := true
build.sbt 에 Plugin 을 명시한다.
AutoPlugin 을 상속한다.
import sbt._
import sbt.Keys._
object MyPlugin extends AutoPlugin {
// 플러그인 자동 활성황 여부
override def trigger = allRequirements // or noTrigger
// 다른 플러그인에 대한 의존성
override def requires = plugins.JvmPlugin
// 모든 빌드와 프로젝트에 적용된다. 전역 설정
override lazy val globalSettings = Seq(
onLoadMessage := "Welcome to SBT!"
)
// ScalaVersion, Organization 등 빌드 전체 영역
override lazy val buildSettings = Seq(
ThisBuild / scalaVersion := "2.12.18"
ThisBuild / organization := "com.example.organization"
)
// 개별 프로젝트 (모듈) 적용
override lazy val projectSettings = Seq(
...
)
}