作者 Administrator

更新 oppmg.yaml

apiVersion: v1
kind: Service
metadata:
name: oppmg
name: mmm-oppmg
namespace: mmm-suplus-dev
labels:
k8s-app: oppmg
k8s-app: mmm-oppmg
spec:
ports:
- name: "http"
port: 80
targetPort: 8080
selector:
k8s-app: oppmg
k8s-app: mmm-oppmg
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: oppmg
name: mmm-oppmg
namespace: mmm-suplus-dev
labels:
k8s-app: oppmg
k8s-app: mmm-oppmg
spec:
replicas: 1
template:
metadata:
labels:
k8s-app: oppmg
k8s-app: mmm-oppmg
spec:
affinity:
nodeAffinity:
... ... @@ -43,8 +43,8 @@ spec:
- cn-hangzhou.i-bp1euf5u1ph9kbhtndhb
- cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
containers:
- name: oppmg
image: 192.168.0.243:5000/mmm/oppmg:dev
- name: mmm-oppmg
image: 192.168.0.243:5000/mmm/mmm-oppmg:dev
imagePullPolicy: Always
volumeMounts:
- mountPath: /opt/logs
... ...