12345678910111213141516171819202122232425262728293031323334 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: api-server
- namespace: zhili
- labels:
- app: api-server
- spec:
- selector:
- matchLabels:
- app: api-server
- replicas: 1
- template:
- metadata:
- annotations:
- prometheus.io/scrape: 'true'
- prometheus.io/path: '/hz/monitor/metrics'
- prometheus.io/port: '8082'
- labels:
- app: api-server
- spec:
- hostname: api-server
- imagePullSecrets:
- - name: pull-images-secret
- containers:
- - name: api-server
- env:
- - name: PRO_ENV
- value: prod
- image: ${imageTag}
- imagePullPolicy: Always
- ports:
- - containerPort: 8082
- name: api
|