作者 Administrator

更新 mmm-open-api.yaml

apiVersion: v1
kind: Service
metadata:
name: mmm-open-api
name: yishujia-open-api
namespace: mmm-suplus-prd
labels:
k8s-app: mmm-open-api
k8s-app: yishujia-open-api
spec:
ports:
- name: "http"
... ... @@ -14,21 +14,21 @@ spec:
port: 443
targetPort: 443
selector:
k8s-app: mmm-open-api
k8s-app: yishujia-open-api
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: mmm-open-api
name: yishujia-open-api
namespace: mmm-suplus-prd
labels:
k8s-app: mmm-open-api
k8s-app: yishujia-open-api
spec:
replicas: 1
template:
metadata:
labels:
k8s-app: mmm-open-api
k8s-app: yishujia-open-api
spec:
affinity:
nodeAffinity:
... ... @@ -41,13 +41,10 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- cn-hangzhou.i-bp1djh1xn7taumbue1ze
- cn-hangzhou.i-bp1djh1xn7taumbue1zd
- cn-hangzhou.i-bp1euf5u1ph9kbhtndhb
- cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
- cn-hangzhou.i-bp1inovcdp9uwwfusslx
containers:
- name: mmm-open-api
image: 192.168.0.243:5000/mmm/mmm-open-api:master
- name: yishujia-open-api
image: 192.168.0.243:5000/mmm/yishujia-open-api:master
imagePullPolicy: Always
ports:
- containerPort: 8080
... ...