|
|
apiVersion: v1
|
|
|
kind: Service
|
|
|
metadata:
|
|
|
name: suplus-front
|
|
|
name: suplus-yhs
|
|
|
namespace: mmm-suplus-dev
|
|
|
labels:
|
|
|
k8s-app: suplus-front
|
|
|
k8s-app: suplus-yhs
|
|
|
spec:
|
|
|
ports:
|
|
|
- name: "http"
|
|
|
port: 80
|
|
|
targetPort: 80
|
|
|
selector:
|
|
|
k8s-app: suplus-front
|
|
|
k8s-app: suplus-yhs
|
|
|
---
|
|
|
apiVersion: extensions/v1beta1
|
|
|
kind: Deployment
|
|
|
metadata:
|
|
|
name: suplus-front
|
|
|
name: suplus-yhs
|
|
|
namespace: mmm-suplus-dev
|
|
|
labels:
|
|
|
k8s-app: suplus-front
|
|
|
k8s-app: suplus-yhs
|
|
|
spec:
|
|
|
replicas: 1
|
|
|
template:
|
|
|
metadata:
|
|
|
labels:
|
|
|
k8s-app: suplus-front
|
|
|
k8s-app: suplus-yhs
|
|
|
spec:
|
|
|
containers:
|
|
|
- name: suplus-front
|
|
|
image: 192.168.0.243:5000/mmm/suplus-front:dev
|
|
|
- name: suplus-yhs
|
|
|
image: 192.168.0.243:5000/mmm/suplus-yhs:dev
|
|
|
imagePullPolicy: Always
|
|
|
volumeMounts:
|
|
|
- mountPath: /opt/logs
|
...
|
...
|
|