提交 ed9df47b authored 作者: wufeng's avatar wufeng

registry.cn-beijing.aliyuncs.com/hede/insurance-api:uat-1-20220217

上级 b731db09
# Source: hede-java/templates/configmap-fb-cm.yaml
# Source: hede-java/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: insurance-api
name: cm-insurance-api
data:
filebeat.yml: |-
name: '${APPNAME}'
......@@ -100,7 +100,7 @@ data:
apiVersion: v1
kind: Service
metadata:
name: insurance-api
name: svc-insurance-api
labels:
helm.sh/chart: hede-java-0.0.1
app.kubernetes.io/name: hede-java
......@@ -148,13 +148,13 @@ spec:
- name: insurance-api
securityContext:
{}
image: "registry-vpc.cn-beijing.aliyuncs.com/hede/insurance-api:uat-85-20220215"
image: "registry-vpc.cn-beijing.aliyuncs.com/hede/insurance-api:uat-1-20220217"
imagePullPolicy: Always
env:
- name: APPNAME
value: insurance-api
- name: APP_LOG_PATH
value: /data/logs
value: /usr/local/tomcat/logs
- name: JAVA_OPTS
value: -server -Xms1024m -Xmx4096m -XX:PermSize=512m -XX:MaxPermSize=2048m -Dfile.encoding=utf-8
-Duser.timezone=GMT+8
......@@ -184,12 +184,30 @@ spec:
fieldRef: {fieldPath: spec.serviceAccountName}
envFrom:
- configMapRef: {name: env-config}
livenessProbe:
failureThreshold: 3
httpGet:
path: /heartBest
port: http
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /heartBest
port: http
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
ports:
- containerPort: 8080
name: http
protocol: TCP
volumeMounts:
- mountPath: /data/logs
- mountPath: /usr/local/tomcat/logs
name: logdata
resources:
{}
......@@ -221,7 +239,7 @@ spec:
emptyDir: {}
- name: configurations
configMap:
name: insurance-api
name: cm-insurance-api
defaultMode: 420
items:
- key: filebeat.yml
......@@ -231,7 +249,7 @@ spec:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: insurance-api
name: svc-insurance-api
labels:
helm.sh/chart: hede-java-0.0.1
app.kubernetes.io/name: hede-java
......@@ -244,17 +262,17 @@ metadata:
spec:
tls:
- hosts:
- "api.hedejj.com"
- "api.test.hedejj.com"
secretName: hede-test
rules:
- host: "api.hedejj.com"
- host: "api.test.hedejj.com"
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: insurance-api
name: svc-insurance-api
port:
number: 8080
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论