首次提交
This commit is contained in:
81
deployment-dev.yaml
Normal file
81
deployment-dev.yaml
Normal file
@ -0,0 +1,81 @@
|
||||
# 接口版本
|
||||
apiVersion: apps/v1
|
||||
# 接口类型
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: sys-manager-ebtp-project
|
||||
namespace: default
|
||||
labels:
|
||||
app: sys-manager-ebtp-project
|
||||
|
||||
# 必选,详细定义
|
||||
spec:
|
||||
# pod 副本数量
|
||||
replicas: 1
|
||||
|
||||
# 滚动升级配置信息
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 1
|
||||
|
||||
# 选择器,匹配pod模板
|
||||
selector:
|
||||
matchLabels:
|
||||
app: sys-manager-ebtp-project
|
||||
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
# 模板名称
|
||||
app: sys-manager-ebtp-project
|
||||
annotations:
|
||||
prometheus.io/port: '18012'
|
||||
prometheus.io/jl-pod: 'true'
|
||||
|
||||
# 定义容器模板,该模板可以包含多个容器
|
||||
spec:
|
||||
# 必选,Pod中容器列表
|
||||
containers:
|
||||
- name: sys-manager-ebtp-project
|
||||
image: harbor.dcos.guangzhou.unicom.local/eshop/sys-manager-ebtp-project:latest
|
||||
# 需要暴露的端口库号列表
|
||||
ports:
|
||||
- containerPort: 18012
|
||||
# 容器运行前需设置的环境变量列表
|
||||
env:
|
||||
# Apollo 配置中心变量设置
|
||||
- name: APOLLO_CONFIGSERVICE
|
||||
value: http://10.242.37.148:6001
|
||||
- name: APP_NAME
|
||||
value: sys_manager_ebtp_project_dev
|
||||
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
|
||||
value: skywalking-oap-cluster.skywalking:11800
|
||||
- name: SW_AGENT_NAME
|
||||
value: sys-manager-ebtp-project
|
||||
- name: MY_POD_IP #自动获取pod ip作为agent id
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.podIP
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: sys-manager-ebtp-project
|
||||
namespace: default
|
||||
labels:
|
||||
app: sys-manager-ebtp-project
|
||||
annotations:
|
||||
lb.cke.tg.unicom/target-vports: 18012-18012
|
||||
prometheus.io/port: '18012'
|
||||
prometheus.io/jl-svc: 'true'
|
||||
spec:
|
||||
ports:
|
||||
- port: 18012
|
||||
targetPort: 18012
|
||||
selector:
|
||||
app: sys-manager-ebtp-project
|
||||
status:
|
||||
loadBalancer: {}
|
||||
|
||||
---
|
Reference in New Issue
Block a user