Commit ef1ca171 by 蒋勇

d

parent 6a84eae6
...@@ -6,10 +6,10 @@ metadata: ...@@ -6,10 +6,10 @@ metadata:
labels: labels:
app: ailogo app: ailogo
spec: spec:
replicas: 3 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: ailogo app: ailogo
template: template:
metadata: metadata:
labels: labels:
...@@ -17,24 +17,23 @@ spec: ...@@ -17,24 +17,23 @@ spec:
spec: spec:
restartPolicy: Always restartPolicy: Always
containers: containers:
- name: ailogo - name: ailogo
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:699.0.11 image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:699.0.11
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 80 - containerPort: 80
env: env:
- name: TZ - name: TZ
value: Asia/Shanghai value: Asia/Shanghai
- name: LANG - name: LANG
value: zh_CN.UTF-8 value: zh_CN.UTF-8
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
metadata: metadata:
labels: labels:
app: ailogo-service app: ailogo-service
name: ailogo-service name: ailogo-service
namespace: chaolai namespace: chaolai
spec: spec:
...@@ -44,5 +43,4 @@ spec: ...@@ -44,5 +43,4 @@ spec:
targetPort: 80 targetPort: 80
nodePort: 4724 nodePort: 4724
selector: selector:
app: ailogo app: ailogo
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment