feat():learning后台管理项目初始化
This commit is contained in:
62
k8s/deployment.yaml
Normal file
62
k8s/deployment.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: goalfymax-admin
|
||||
namespace: goalfyagent
|
||||
labels:
|
||||
app: goalfymax-admin
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: goalfymax-admin
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: goalfymax-admin
|
||||
spec:
|
||||
containers:
|
||||
- name: goalfymax-admin
|
||||
image: 177603749739.dkr.ecr.us-west-2.amazonaws.com/goalfy/goalfymax-admin:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8087
|
||||
name: http
|
||||
protocol: TCP
|
||||
args:
|
||||
- "--config"
|
||||
- "/app/etc/config-prod.yaml"
|
||||
- "--env"
|
||||
- "prod"
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
limits:
|
||||
cpu: "500m"
|
||||
memory: "512Mi"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8087
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8087
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /app/etc
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: goalfymax-admin-config
|
||||
restartPolicy: Always
|
||||
Reference in New Issue
Block a user