Kf 快速入门
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在本快速入门中,您将在现有 Kf 集群上部署一个 Cloud Foundry 应用示例。
准备工作
推送应用
前提条件
若要完成此部分,需要具备以下条件:
- 针对 Kf 集群的
.kubeconfig
。
kf
CLI 已安装,且位于您的路径中。如需查看相关说明,请参阅安装 Kf。
git
CLI 已安装,且位于您的路径中。
准备空间
创建新空间:
kf create-space test-space
定位空间:
kf target -s test-space
推送 Cloud Foundry 测试应用
克隆 test-app 代码库。
git clone https://github.com/cloudfoundry-samples/test-app go-test-app
cd go-test-app
推送应用。
kf push test-app
获取应用的网址。
kf apps
在浏览器中打开网址,您应该会在其中看到正在运行的应用。
清理
这些步骤应该将集群恢复到起始状态。
删除应用。
kf delete test-app
删除空间。
kf delete-space test-space
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-07-25。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]