You are viewing documentation for a release that is no longer maintainedSee documentation for the latest supported version 3 or the latest supported version 4.
10.7.4. 对象列表
模板主要部分为对象列表,将在模板实例化时创建。这可以是任何有效的 API 对象,如 BuildConfig、DeploymentConfig、Service 等。该对象将完全按照此处定义创建,创建前替换任意参数值。这些对象的定义可引用前面定义的参数。
apiVersion:"v1"metadata:name:"cakephp-mysql-example"annotations:description:"Exposes and load balances the application pods"spec:ports:-name:"web"port:8080targetPort:8080selector:name:"cakephp-mysql-example"
Copy to ClipboardCopied!Toggle word wrapToggle overflow