Commit adc07612 by 蒋勇

d

parent ef1ca171
...@@ -6,7 +6,7 @@ metadata: ...@@ -6,7 +6,7 @@ metadata:
labels: labels:
app: fqboss app: fqboss
spec: spec:
replicas: 1 replicas: 3
selector: selector:
matchLabels: matchLabels:
app: fqboss app: fqboss
...@@ -15,10 +15,21 @@ spec: ...@@ -15,10 +15,21 @@ spec:
labels: labels:
app: fqboss app: fqboss
spec: spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kubnode1
- kubnode2
- kubnode3
restartPolicy: Always restartPolicy: Always
containers: containers:
- name: fqboss - name: fqboss
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:666.0.9 image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:666.0.47
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 80 - containerPort: 80
...@@ -84,7 +95,6 @@ spec: ...@@ -84,7 +95,6 @@ spec:
name: zhichan-config name: zhichan-config
key: NODE_PORT key: NODE_PORT
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
metadata: metadata:
......
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