K8S部署服务YAML配置
{"kind": "Deployment","apiVersion": "extensions/v1beta1","metadata": {"name": "server-groups-job","namespace": "default","selfLink": "/apis/extensions/v1beta1/namespaces/defau...
·
{
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "server-groups-job",
"namespace": "default",
"selfLink": "/apis/extensions/v1beta1/namespaces/default/deployments/server-groups-job",
"uid": "028c505a-xxx-xxx-xxx-d2c582947661",
"resourceVersion": "758923251",
"generation": 2,
"creationTimestamp": "2019-12-27T01:20:03Z",
"labels": {
"app": "server-groups-job"
},
"annotations": {
"deployment.kubernetes.io/revision": "2",
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"extensions/v1beta1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"name\":\"server-groups-job\",\"namespace\":\"default\"},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"app\":\"server-groups-job\"}},\"template\":{\"metadata\":{\"labels\":{\"app\":\"server-groups-job\"}},\"spec\":{\"containers\":[{\"command\":[\"/root/startserver.sh\",\"/root/server-groups-job.jar\"],\"image\":\"registry-vpc.cn-beijing.aliyuncs.com/server_zhiai_test/server-groups-job:v..1709\",\"name\":\"server-groups-job\",\"resources\":{\"limits\":{\"cpu\":\"3\",\"memory\":\"2048Mi\"},\"requests\":{\"cpu\":\"100m\",\"memory\":\"1840Mi\"}},\"volumeMounts\":[{\"mountPath\":\"/root/logs\",\"name\":\"mnt-logs\"}]}],\"restartPolicy\":\"Always\",\"volumes\":[{\"hostPath\":{\"path\":\"/mount/server-groups-job/logs\"},\"name\":\"mnt-logs\"}]}}}}\n"
}
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"app": "server-groups-job"
}
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "server-groups-job"
}
},
"spec": {
"volumes": [
{
"name": "mnt-logs",
"hostPath": {
"path": "/mount/server-groups-job/logs",
"type": ""
}
}
],
"containers": [
{
"name": "server-groups-job",
"image": "registry-vpc.xxx.xxx.com/server_xxx_test/server-groups-job:v..1709",
"command": [
"/root/startserver.sh",
"/root/server-groups-job.jar"
],
"resources": {
"limits": {
"cpu": "3",
"memory": "2Gi"
},
"requests": {
"cpu": "100m",
"memory": "1840Mi"
}
},
"volumeMounts": [
{
"name": "mnt-logs",
"mountPath": "/root/logs"
}
],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
},
"strategy": {
"type": "RollingUpdate",
"rollingUpdate": {
"maxUnavailable": 1,
"maxSurge": 1
}
},
"revisionHistoryLimit": 2147483647,
"progressDeadlineSeconds": 2147483647
},
"status": {
"observedGeneration": 2,
"replicas": 1,
"updatedReplicas": 1,
"readyReplicas": 1,
"availableReplicas": 1,
"conditions": [
{
"type": "Available",
"status": "True",
"lastUpdateTime": "2019-12-27T01:20:03Z",
"lastTransitionTime": "2019-12-27T01:20:03Z",
"reason": "MinimumReplicasAvailable",
"message": "Deployment has minimum availability."
}
]
}
}
更多推荐
已为社区贡献2条内容
所有评论(0)