feat: 新增appName

master v1.0.5
icechen 2022-01-11 04:06:18 +08:00
parent 0540fcd17f
commit d984d78b03
4 changed files with 16 additions and 2 deletions

View File

@ -44,8 +44,14 @@ spec:
- containerPort: {{ .Values.port }} - containerPort: {{ .Values.port }}
protocol: TCP protocol: TCP
env: env:
- name: endpoints - name: ENDPOINTS
value: 'etcd:2379' value: 'etcd:2379'
- name: APP_NAME
value: {{ .Values.appName }}
- name: NAMESPACE
value: {{ .Values.nameSpace }}
- name: APP_TYPE
value: api
resources: resources:
limits: limits:
cpu: 200m cpu: 200m

View File

@ -1,4 +1,5 @@
nameSpace: {{ .NameSpace }} nameSpace: {{ .NameSpace }}
appName: {{ .AppName }}
aliasName: {{ .AliasName }} aliasName: {{ .AliasName }}
image: reg.icechen.cn/{{ .NameSpace }}/api-{{ .AppName }} image: reg.icechen.cn/{{ .NameSpace }}/api-{{ .AppName }}
imageTag: latest imageTag: latest

View File

@ -44,8 +44,14 @@ spec:
- containerPort: {{ .Values.port }} - containerPort: {{ .Values.port }}
protocol: TCP protocol: TCP
env: env:
- name: endpoints - name: ENDPOINTS
value: 'etcd:2379' value: 'etcd:2379'
- name: APP_NAME
value: {{ .Values.appName }}
- name: NAMESPACE
value: {{ .Values.nameSpace }}
- name: APP_TYPE
value: service
resources: resources:
limits: limits:
cpu: 200m cpu: 200m

View File

@ -1,4 +1,5 @@
nameSpace: {{ .NameSpace }} nameSpace: {{ .NameSpace }}
appName: {{ .AppName }}
aliasName: {{ .AliasName }} aliasName: {{ .AliasName }}
image: reg.icechen.cn/{{ .NameSpace }}/service-{{ .AppName }} image: reg.icechen.cn/{{ .NameSpace }}/service-{{ .AppName }}
imageTag: latest imageTag: latest