k8s
This commit is contained in:
59
k8s/applications/backend/config/deployment.yaml
Normal file
59
k8s/applications/backend/config/deployment.yaml
Normal 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
|
||||
18
k8s/applications/backend/config/service.yaml
Normal file
18
k8s/applications/backend/config/service.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: config
|
||||
labels:
|
||||
env: production
|
||||
tier: backend
|
||||
app: config
|
||||
name: config-service
|
||||
spec:
|
||||
ports:
|
||||
- port: 8888
|
||||
targetPort: 8888
|
||||
selector:
|
||||
env: production
|
||||
tier: backend
|
||||
app: config
|
||||
name: config-pod
|
||||
Reference in New Issue
Block a user