|
|
apiVersion: v1
|
|
|
kind: Service
|
|
|
metadata:
|
|
|
name: suplus-front
|
|
|
namespace: mmm-suplus-dev
|
|
|
name: suplus-yhs
|
|
|
namespace: mmm-suplus-prd
|
|
|
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
|
|
|
namespace: mmm-suplus-dev
|
|
|
name: suplus-yhs
|
|
|
namespace: mmm-suplus-prd
|
|
|
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
|
...
|
...
|
|