fix了k8s devops的配置

This commit is contained in:
bamanker
2023-11-28 00:39:56 +08:00
parent c3e0a2cf6e
commit 89efefd7c1

View File

@@ -5,7 +5,7 @@ metadata:
app: $APP_NAME
version: $TAG
name: $APP_NAME
namespace: my-proj #一定要写名称空间
namespace: dl-proj #一定要写名称空间
spec:
progressDeadlineSeconds: 600
replicas: 1
@@ -42,7 +42,7 @@ spec:
resources:
limits:
cpu: 300m
memory: 120Mi
memory: 100Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
env:
@@ -58,13 +58,13 @@ metadata:
labels:
app: $APP_NAME
name: $APP_NAME
namespace: my-proj
namespace: dl-proj
spec:
ports:
- name: http
port: 13146
port: 13145
protocol: TCP
targetPort: 13146
targetPort: 13145
selector:
app: $APP_NAME
sessionAffinity: None
@@ -74,6 +74,6 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: $APP_NAME # ServiceAccount的名字
namespace: my-proj # serviceaccount的namespace
namespace: dl-proj # serviceaccount的namespace
labels:
app: $APP_NAME #ServiceAccount的标签