Bladeren bron

更新 'k8s_groupmealorder.yaml'

master^2
bpa 7 maanden geleden
bovenliggende
commit
ca93da7569
1 gewijzigde bestanden met toevoegingen van 11 en 11 verwijderingen
  1. +11
    -11
      k8s_groupmealorder.yaml

+ 11
- 11
k8s_groupmealorder.yaml Bestand weergeven

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

Laden…
Annuleren
Opslaan