diff --git a/k8s_groupmealorder.yaml b/k8s_groupmealorder.yaml index cb2673b..5503fb8 100644 --- a/k8s_groupmealorder.yaml +++ b/k8s_groupmealorder.yaml @@ -1,23 +1,23 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: groupmealorder + name: order namespace: kube- spec: selector: matchLabels: - app: groupmealorder + app: order replicas: 1 template: metadata: labels: - app: groupmealorder + app: order spec: containers: - - image: 10.2.1.24:10242/bpa/groupmealorder: + - image: 10.2.1.24:10242/bpa/order: imagePullPolicy: IfNotPresent - name: groupmealorder + name: order env: - name: branch value: @@ -28,7 +28,7 @@ spec: protocol: TCP volumeMounts: - mountPath: "/app/appsettings.json" - name: groupmealorder-config + name: order-config readOnly: true subPath: appsetting - mountPath: "/etc/localtime" @@ -41,9 +41,9 @@ spec: cpu: "500m" memory: "512Mi" volumes: - - name: groupmealorder-config + - name: order-config configMap: - name: groupmealorder-config + name: order-config - name: timezone hostPath: path: /usr/share/zoneinfo/Asia/Shanghai @@ -52,8 +52,8 @@ kind: Service apiVersion: v1 metadata: labels: - app: groupmealorder - name: groupmealorder + app: order + name: order namespace: kube- spec: type: ClusterIP @@ -61,4 +61,4 @@ spec: - port: 80 name: http selector: - app: groupmealorder + app: order