Verified Commit 4c741e2d authored by Shiyu Han's avatar Shiyu Han

add files

parents
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"name": "%APP_NAME%",
"namespace": "biz-%NAMESPACE%"
},
"spec": {
"replicas": %REPLICAS_NUM%,
"selector": {
"matchLabels": {
"xx-app": "%APP_NAME%"
}
},
"template": {
"metadata": {
"labels": {
"xx-app": "%APP_NAME%",
"gitlab-jid": "%ARTIFACT%",
"prom-metrics": "enabled",
"released-ver": "%RELEASED%"
}
},
"spec": {
"containers": [
{
"env": [
{
"name": "TAGS",
"value": "%TAGS%"
},
{
"name": "METRICS_PORT",
"value": "9102"
},
{
"name": "CONSUL_AGENT",
"value": "agent.consul:8500"
},
{
"name": "BROADCAST_IP",
"valueFrom": {
"fieldRef": {
"fieldPath": "status.podIP"
}
}
}
],
"image": "%IMAGE_SRC%",
"imagePullPolicy": "Always",
"name": "%APP_NAME%",
"resources": {
"limits": {
"cpu": "1000m",
"memory": "512Mi"
},
"requests": {
"cpu": "100m",
"memory": "32Mi"
}
}
}
],
"terminationGracePeriodSeconds": 15,
"nodeSelector": {
"biz.k8s.yunxi.tv/%NAMESPACE%": "enabled"
}
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment