-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with k8s.io/docs/tasks/configure-pod-container/configure-pod-configmap/ #49599
Comments
This issue is currently awaiting triage. SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@botanyhelp , thanks for the reporting the issue that seems to throw error of non-existence with the latest version of the busybox image. |
However, I think we should update the image tag for temporary or paste any warning sign that busybox with latest tag is having some issues so use more secured and stable image for your deployment. /language en |
#49474 should help fix this. |
It's been good to see prompt and helpful responses! https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ ..we are instructed to run these commands, which I do and which does work: kubectl apply -f https://k8s.io/examples/pods/security/security-context-5.yaml ..but the output I get from running id in the container is not what the task docs tell me to expect. We are told to see output like this: uid=1000 gid=3000 groups=3000,4000,50000 ..but I see this output which, without the 50000, kind of defeats the learning purpose of the exercise: uid=1000(user-defined-in-image) gid=3000 groups=3000,4000 I copy-paste, below, the exact output that I see, in the terminal, when running on GKE Cloudshell with minikube. MY OUTPUT:
|
Hello @botanyhelp, please we recommend creating an issue when you spot one in the Kubernetes docs and also you are welcome to help work on these issues. There is no issue with what's outlined in https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#implicit-group-memberships-defined-in-etc-group-in-the-container-image, it looks like the output is dependent on the CRI running on your cluster, below is a screenshot from Killercoda which uses containerd as the CRI.
|
Thanks for the prompt and excellent update. I will try killercoda which is one of the two things the docs tell me to setup a head of time. minikube is almost always enough. The real cluster with 3 nodes on GKE is very nice and not so expensive if I remember to turn it off. I will NOT make another Issue about the problem you just solved/explained, that runs good on killercoda. I might try to learn how to, as you say, "help work on these issuse", probably in the CONTRIBUTING somewhere. For now, thanks again! |
Love the k8s docs, thanks! I am not yet an expert but I share an error I found when using the docs.
VERY SHORT VERSION..THIS COMMAND DOES NOT WORK, gives errors: ErrImgPull and ImagePullBackOff:
kubectl create -f https://kubernetes.io/examples/pods/pod-single-configmap-env-variable.yaml
LONG VERSION:
I am running on minikube on GCP CloudShell and performing tasks found here:
https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/
Things are good when I create this configmap:
kubectl create configmap special-config --from-literal=special.how=very
..but things go WRONG when I run the next command in the task to create the pod using that configmap:
kubectl create -f https://kubernetes.io/examples/pods/pod-single-configmap-env-variable.yaml
I see these two snippets, from k get pod and k events:
Farther below, I copy-paste from my GCP-cloudshell terminal which shows my kubectl and minikube versions and the output from those commands:
If I edit and change the
pod-single-configmap-env-variable.yaml
file to use a different image, with this line:image: nginx:1.26.2-alpine
..then it works, so I think the problem in file
pod-single-configmap-env-variable.yaml
is the "image:" line causesErrImagePull
andImagePullBackOff
, this line:OUTPUT copy-pasted from my GCP CloudShell terminal while running minikube:
The text was updated successfully, but these errors were encountered: