如何自定义模板metadata.annotations.tags

时间:2017-12-08 09:55:56

标签: templates openshift customization openshift-origin

我有一个非常简单的问题:是否有可能在openshift模板中创建一些自定义metadata.annotations.tags(如果没有匹配你想要的东西,它们不属于默认的“Uncategorized”)?如果是的话怎么样?

提前谢谢。

1 个答案:

答案 0 :(得分:1)

除非将Web控制台配置为整个群集的管理员,否则无法创建新类别,但可以使用现有类别。例如:

        "kind": "Template",
        "apiVersion": "v1",
        "metadata": {
            "name": "notebook-builder",
            "annotations": {
                "openshift.io/display-name": "Jupyter Notebook Builder",
                "description": "Template for creating customised Jupyter Notebook images.",
                "iconClass": "icon-python",
                "tags": "python,jupyter"
            }
        },

此处python标记会将其添加到Python类别中。

请参阅tag说明,例如: