未验证 提交 6d3988cf 编写于 作者: 阳明的博客's avatar 阳明的博客 提交者: GitHub

Merge pull request #4 from cdpidan/master

json数据格式化及格式修复
...@@ -80,7 +80,7 @@ args ...@@ -80,7 +80,7 @@ args
可以有任何数量的项在列表中,每个项的定义以破折号(-)开头的,与父元素直接可以缩进一个空格。对应的 JSON 格式如下: 可以有任何数量的项在列表中,每个项的定义以破折号(-)开头的,与父元素直接可以缩进一个空格。对应的 JSON 格式如下:
```json ```json
{ {
"args": [ 'Cat', 'Dog', 'Fish' ] "args": ["Cat", "Dog", "Fish"]
} }
``` ```
...@@ -113,7 +113,7 @@ spec: ...@@ -113,7 +113,7 @@ spec:
"metadata": { "metadata": {
"name": "kube100-site", "name": "kube100-site",
"labels": { "labels": {
"app": web" "app": "web"
} }
}, },
"spec": { "spec": {
...@@ -121,13 +121,13 @@ spec: ...@@ -121,13 +121,13 @@ spec:
"name": "front-end", "name": "front-end",
"image": "nginx", "image": "nginx",
"ports": [{ "ports": [{
"containerPort": "80" "containerPort": 80
}] }]
}, { }, {
"name": "flaskapp-demo", "name": "flaskapp-demo",
"image": "jcdemo/flaskapp", "image": "jcdemo/flaskapp",
"ports": [{ "ports": [{
"containerPort": "5000" "containerPort": 5000
}] }]
}] }]
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册