반응형
HPA yaml 파일
apiVersion: apps/v1
kind: Deployment
metadata:
name: was-server
spec:
replicas: 2
selector:
matchLabels:
app: was-server
template:
metadata:
labels:
app: was-server
spec:
containers:
- name: reca3team-was-server
image: 447079561480.dkr.ecr.ap-northeast-2.amazonaws.com/reca3team-ecr:RECA3team-ecr-tomcat-image
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
limits:
cpu: 500m
requests:
cpu: 200m
kubectl apply 결과
해결: metrics-server 구성
git clone https://github.com/kubernetes-sigs/metrics-server.git
vi deployment.yaml
kubectl apply -k .
kubectl get deploy metrics-server -n kube-system
kubectl top node --use-protocol-buffers
결과
반응형
'window 환경에서 개발하기 > ※에러※' 카테고리의 다른 글
[JAVA]gradlew build 76%에서 멈추는 경우 해결 (1) | 2023.06.02 |
---|---|
[JAVA]FAILURE: Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.0. (0) | 2023.06.02 |
[JAVA]gradlew: Permission denied (2) | 2023.06.02 |
[Flask]TypeError: get() missing 1 required positional argument 해결 방법 (0) | 2023.05.08 |