1、pvc
--- apiVersion: v1 kind: PersistentVolumeClaim metadata:name: nmg-logsnamespace: nmg-test spec:storageClassName: "glusterfs"accessModes:- ReadWriteOnceresources:requests:storage: 100Gi
2、跑jar包
--- apiVersion: apps/v1 kind: Deployment metadata:name: seewin-gatewaynamespace: nmg-test spec:replicas: 1selector:matchLabels:app: seewin-gatewaytemplate:metadata:labels:app: seewin-gatewayannotations:sidecar.istio.io/rewriteAppHTTPProbers: "false"spec:containers:- name: seewin-gatewayimage: 192.168.31.15/nmg-test/seewin-gateway:latestimagePullPolicy: Alwaysports:- name: http-port-1containerPort: 9000protocol: TCPvolumeMounts:- name: nmg-logsmountPath: "/app/logs"volumes:- name: nmg-logspersistentVolumeClaim:claimName: nmg-logs --- apiVersion: v1 kind: Service metadata:name: seewin-gatewaynamespace: nmg-test spec:type: NodePortsessionAffinity: Noneselector:app: seewin-gatewayports:- name: http-port-1protocol: TCPport: 9000targetPort: 9000nodePort: 30090
--- apiVersion: apps/v1 kind: Deployment metadata:name: ibuilds-consumer-adm-systemnamespace: nmg-test spec:replicas: 1selector:matchLabels:app: ibuilds-consumer-adm-systemtemplate:metadata:labels:app: ibuilds-consumer-adm-systemannotations:sidecar.istio.io/rewriteAppHTTPProbers: "false"spec:containers:- name: ibuilds-consumer-adm-systemimage: 192.168.31.15/nmg-test/ibuilds-consumer-adm-system:latestimagePullPolicy: Alwaysports:- name: http-port-1containerPort: 9091protocol: TCPvolumeMounts:- name: nmg-logsmountPath: "/app/logs"volumes:- name: nmg-logspersistentVolumeClaim:claimName: nmg-logs --- apiVersion: v1 kind: Service metadata:name: ibuilds-consumer-adm-systemnamespace: nmg-test spec:type: ClusterIPsessionAffinity: Noneselector:app: ibuilds-consumer-adm-systemports:- name: http-port-1protocol: TCPport: 9091targetPort: 9091