update paramkey

This commit is contained in:
mklee 2025-12-22 14:34:50 +00:00
parent 6b2135a395
commit 3319f18911
4 changed files with 3 additions and 20 deletions

View file

@ -32,7 +32,7 @@ RUN set -eux; \
echo "Found agent jar: $AGENT_JAR"; \
cp -f "$AGENT_JAR" /whatap/whatap.agent.jar; \
ls -al /whatap
COPY paramkey.txt /whatap/paramkey.txt
# =========================
# 2) jlink로 Slim JRE 생성
# =========================

View file

@ -13,9 +13,6 @@ spec:
creationPolicy: Owner
template:
type: Opaque
data:
paramkey.txt: |
ABCDEF
data:
- secretKey: WHATAP_LICENSE
remoteRef:

View file

@ -26,15 +26,6 @@ spec:
value: "app"
effect: "NoSchedule"
# ✅ (추가) paramkey.txt를 Secret에서 파일로 마운트하기 위한 볼륨
volumes:
- name: whatap-paramkey
secret:
secretName: whatap-apm-secret
items:
- key: paramkey.txt
path: paramkey.txt
containers:
- name: petclinic-container
image: 723926525504.dkr.ecr.ap-northeast-2.amazonaws.com/eks/petclinic:138ba75
@ -60,18 +51,12 @@ spec:
-Dwhatap.server.host=$(WHATAP_SERVER_HOST)
-Dlicense=$(WHATAP_LICENSE)
-Dwhatap.micro.enabled=$(WHATAP_MICRO_ENABLED)
-Dwhatap.paramkey=/whatap-conf/paramkey.txt
-Dwhatap.paramkey=/whatap/paramkey.txt
-XX:+UseContainerSupport
-XX:MaxRAMPercentage=75
-XX:+ExitOnOutOfMemoryError
-XX:+AlwaysActAsServerClassMachine
# ✅ (위치 중요) containers[] 내부에 있어야 함
volumeMounts:
- name: whatap-paramkey
mountPath: /whatap-conf
readOnly: true
ports:
- name: http
containerPort: 8080

1
paramkey.txt Normal file
View file

@ -0,0 +1 @@
ABCDEF