kubernetes / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
110.64k stars 39.55k forks source link

my kubernetes version is 1.16.2 I cannot use ephemeralcontainers #86461

Closed 13567436138 closed 4 years ago

13567436138 commented 4 years ago

}[root@master01 ephemeralContainers]# curl http://localhost:8081/api/v1/namespaces/default/pods/nginx/ephemeralcontainers { "kind": "Status", "apiVersion": "v1", "metadata": {

}, "status": "Failure", "message": "the server could not find the requested resource", "reason": "NotFound", "details": {

}, "code": 404 }

[root@master01 ephemeralContainers]# kubectl -n default replace --raw /api/v1/namespaces/default/pods/nginx/ephemeralcontainers -f ./ephemeral.json Error from server (NotFound): the server could not find the requested resource [root@master01 ephemeralContainers]#

my kubernetes version is 1.16.2

k8s-ci-robot commented 4 years ago

@13567436138: There are no sig labels on this issue. Please add a sig label by either:

  1. mentioning a sig: @kubernetes/sig-<group-name>-<group-suffix> e.g., @kubernetes/sig-contributor-experience-<group-suffix> to notify the contributor experience sig, OR

  2. specifying the label manually: /sig <group-name> e.g., /sig scalability to apply the sig/scalability label

Note: Method 1 will trigger an email to the group. See the group list. The <group-suffix> in method 1 has to be replaced with one of these: bugs, feature-requests, pr-reviews, test-failures, proposals.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
liggitt commented 4 years ago

The feature is still alpha level and is not enabled by default. You can enable it with the --feature-gates flag to the apiserver and to kubelets, but be aware that upgrade compatibility for alpha features is not guaranteed.