Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: pztjapi
- namespace: kube-<NAMESPACES>
- spec:
-
- selector:
- matchLabels:
- app: pztjapi
- replicas: 1
- template:
- metadata:
- labels:
- app: pztjapi
- spec:
- containers:
- - image: 10.2.1.24:10242/bpa/pztjapi:<BUILD_TAG>
- imagePullPolicy: IfNotPresent
- name: pztjapi
- env:
- - name: branch
- value: <BRANCH_NAME>
- - name: TZ
- value: Asia/Shanghai
- ports:
- - containerPort: 80
- protocol: TCP
- volumeMounts:
- - mountPath: "/app/appsettings.json"
- name: pztjapi-config
- readOnly: true
- subPath: appsettings
- - mountPath: "/etc/localtime"
- name: timezone
- resources:
- requests:
- cpu: "100m"
- memory: "112Mi"
- limits:
- cpu: "500m"
- memory: "512Mi"
- volumes:
- - name: pztjapi-config
- configMap:
- name: pztjapi-config
- - name: timezone
- hostPath:
- path: /usr/share/zoneinfo/Asia/Shanghai
- ---
- kind: Service
- apiVersion: v1
- metadata:
- labels:
- app: pztjapi
- name: pztjapi
- namespace: kube-<NAMESPACES>
- spec:
- type: ClusterIP
- ports:
- - port: 80
- name: http
- selector:
- app: pztjapi
|