Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: datav
- namespace: kube-<NAMESPACES>
- spec:
-
- selector:
- matchLabels:
- app: datav
- replicas: 1
- template:
- metadata:
- labels:
- app: datav
- spec:
- containers:
- - image: 10.2.1.24:10242/bpa/datav:<BUILD_TAG>
- imagePullPolicy: IfNotPresent
- name: datav
- env:
- - name: branch
- value: <BRANCH_NAME>
- - name: TZ
- value: Asia/Shanghai
- ports:
- - containerPort: 80
- protocol: TCP
- volumeMounts:
- - mountPath: "/app/appsettings.json"
- name: datav-config
- readOnly: true
- subPath: appsetting
- - mountPath: "/etc/localtime"
- name: timezone
- resources:
- requests:
- cpu: "100m"
- memory: "112Mi"
- limits:
- cpu: "500m"
- memory: "512Mi"
- volumes:
- - name: datav-config
- configMap:
- name: datav-config
- - name: timezone
- hostPath:
- path: /usr/share/zoneinfo/Asia/Shanghai
- ---
- kind: Service
- apiVersion: v1
- metadata:
- labels:
- app: datav
- name: datav
- namespace: kube-<NAMESPACES>
- spec:
- type: ClusterIP
- ports:
- - port: 80
- name: http
- selector:
- app: datav
|