This commit is contained in:
jooho
2021-12-26 17:08:41 +09:00
parent d6e543eb24
commit 628f2ace5a
97 changed files with 3958 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: config-deployment
annotations:
kubernetes.io/change-cause: "Initialized by manifest files."
labels:
env: production
tier: backend
app: config
name: config-deployment
spec:
replicas: 1
selector:
matchLabels:
env: production
tier: backend
app: config
name: config-pod
template:
metadata:
labels:
env: production
tier: backend
app: config
name: config-pod
spec:
containers:
- name: config
image: egovframe/egovframe-msa-edu-backend-config:latest # TODO
imagePullPolicy: Always
ports:
- containerPort: 8888
env:
# - name: SPRING_PROFILES_ACTIVE
# value: "prod"
- name: SEARCH_LOCATION
value: "classpath:/config"
- name: RABBITMQ_HOSTNAME
valueFrom:
configMapKeyRef:
name: backend-configmap
key: RABBITMQ_HOSTNAME
startupProbe:
httpGet:
path: /actuator/health
port: 8888
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 1
failureThreshold: 36
readinessProbe:
httpGet:
path: /actuator/health
port: 8888
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
failureThreshold: 3