mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 10:57:28 +00:00
update paramkey
This commit is contained in:
parent
6b2135a395
commit
3319f18911
4 changed files with 3 additions and 20 deletions
|
|
@ -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 생성
|
||||
# =========================
|
||||
|
|
|
|||
|
|
@ -13,9 +13,6 @@ spec:
|
|||
creationPolicy: Owner
|
||||
template:
|
||||
type: Opaque
|
||||
data:
|
||||
paramkey.txt: |
|
||||
ABCDEF
|
||||
data:
|
||||
- secretKey: WHATAP_LICENSE
|
||||
remoteRef:
|
||||
|
|
|
|||
|
|
@ -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
1
paramkey.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
ABCDEF
|
||||
Loading…
Add table
Add a link
Reference in a new issue