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