-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Connect a Frontend to a Backend Using Services #45965
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/test-infra repository. |
/kind support |
what should i do? |
you can deploy front-end/back-end app in k8s containers. Please check your app and its configurations |
thats what i did exactly like this and i got this 2024/04/22 11:20:02 [emerg] 1#1: host not found in upstream "hello" in /etc/nginx/conf.d/frontend.conf:2 |
which step did you get the error |
i got crashloopbackoff when deploying frontend |
crashloopbackoff may occur because of Resource Overload or Insufficient Memory, Misconfigurations. ... |
@assafseif If you're looking for help, check Server Fault. You can also post your question on the Kubernetes Slack or the Discuss Kubernetes forum. |
If you'd like to explain more about how to replicate the issue, @assafseif, we may be able to fix the documentation (we can't advise on specifics for your cluster). /remove-kind support |
What i tried to do is deploying frontend, kubectl apply -f https://k8s.io/examples/service/access/frontend-deployment.yaml crashloopbackoff occured inbside frontend-deployment pods, all files applied are from kubernetes docs Regards |
OK, looking in to this a little closer, it looks like there is an issue with the To clarify some of the description here, this is following the Connect a Frontend to a Backend Using Services tutorial. One of the steps there is to apply a manifest to create a new frontend deployment named That deployment defines 1 replica, with the pod using the The pod gets created, but ends up in a Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 31s default-scheduler Successfully assigned default/frontend-758994b889-tfd68 to kind-control-plane
Normal Pulling 31s kubelet Pulling image "gcr.io/google-samples/hello-frontend:1.0"
Normal Pulled 28s kubelet Successfully pulled image "gcr.io/google-samples/hello-frontend:1.0" in 3.247s (3.247s including waiting)
Normal Created 10s (x3 over 28s) kubelet Created container nginx
Normal Started 10s (x3 over 28s) kubelet Started container nginx
Normal Pulled 10s (x2 over 27s) kubelet Container image "gcr.io/google-samples/hello-frontend:1.0" already present on machine
Warning BackOff 10s (x3 over 26s) kubelet Back-off restarting failed container nginx in pod frontend-758994b889-tfd68_default(eae930af-0164-48a7-bc59-6022b8db560f) In this case the pod name is
This is after skipping the first half of the tutorial where the backend is created. Since this frontend proxies to the backend service, and the backend service defines a service named "hello", it appears the frontend will try to start, not find what it needs from the backend, and fail. To check that, I then went back to the beginning and followed all steps up to the frontend deployment. After creating the backend as documented, the frontend was able to start and everything appears happy:
|
Why i cant server frontend deployment
i got
The text was updated successfully, but these errors were encountered: