Browse Source

更新 'k8s_groupmealorder.yaml'

master^2
bpa 7 months ago
parent
commit
ca93da7569
1 changed files with 11 additions and 11 deletions
  1. +11
    -11
      k8s_groupmealorder.yaml

+ 11
- 11
k8s_groupmealorder.yaml View File

@@ -1,23 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: groupmealorder
name: order
namespace: kube-<NAMESPACES>
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:<BUILD_TAG>
- image: 10.2.1.24:10242/bpa/order:<BUILD_TAG>
imagePullPolicy: IfNotPresent
name: groupmealorder
name: order
env:
- name: branch
value: <BRANCH_NAME>
@@ -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-<NAMESPACES>
spec:
type: ClusterIP
@@ -61,4 +61,4 @@ spec:
- port: 80
name: http
selector:
app: groupmealorder
app: order

Loading…
Cancel
Save