1,163
社区成员
发帖
与我相关
我的任务
分享
{
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "tomcat7-deployment"
},
"spec": {
"replicas": 2,
"template": {
"metadata": {
"name": "tomcat7-1",
"labels": {
"name": "tomcat7-1"
}
},
"spec": {
"containers": [
{
"name": "tomcat7",
"image": "192.168.136.135:5000/tomcat7:latest",
"imagePullPolicy": "IfNotPresent",
"ports": [
{
"containerPort": 8080,
"name": "tomcat-web",
"hostPort": 18080
}
]
}
],
"restartPolicy": "Always"
}
}
}
}