【问题标题】:kubernetes examples document linkKubernetes 示例文档链接
【发布时间】:2021-02-20 07:57:18
【问题描述】:

如何浏览k8的例子的url路径?

如果你看下面的例子,我可以运行一个带有存储的 pod,如下所示。

例如:kubectl apply -f https://k8s.io/examples/pods/storage/pv-volume.yaml

但如果我只是浏览路径 - https://k8s.io/exampleshttps://k8s.io/examples/pods 它会给我一个 HTTP 404。

【问题讨论】:

    标签: kubernetes kubectl


    【解决方案1】:

    如果你看下面的例子,我可以运行一个带有存储的 pod,如图所示 下面。

    例如:kubectl apply -f https://k8s.io/examples/pods/storage/pv-volume.yaml

    这里是https://github.com/kubernetes/website/blob/master/content/en/examples/pods/storage/pv-pod.yaml

    基本上

    1.来自Tasks页面的所有示例:https://github.com/kubernetes/website/tree/master/content/en/examples

    2. 不同的应用程序,在文档中使用:https://github.com/kubernetes/website/tree/master/content/en/examples/application

    您也可以查看k8smeetup/old_k8sdoc github 页面,例如job.yaml

    【讨论】:

      【解决方案2】:

      按照任务进行练习。 https://kubernetes.io/docs/tasks/

      【讨论】:

        猜你喜欢
        • 2018-08-18
        • 1970-01-01
        • 2014-12-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多