Comments (13)
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 triage/accepted
label.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
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.
from website.
/kind support
from website.
/kind support
what should i do?
from website.
you can deploy front-end/back-end app in k8s containers. Please check your app and its configurations
from website.
thats what i did exactly like this
https://kubernetes.io/docs/tasks/access-application-cluster/connecting-frontend-backend/
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
nginx: [emerg] host not found in upstream "hello" in /etc/nginx/conf.d/frontend.conf:2
from website.
which step did you get the error
from website.
i got crashloopbackoff when deploying frontend
what i showed you is the log of frontend deployment pod
from website.
crashloopbackoff may occur because of Resource Overload or Insufficient Memory, Misconfigurations. ...
please investigate your pod logs and resolve the issue
from website.
@assafseif
GitHub is not the right place for support requests.
If you're looking for help, check Server Fault.
You can also post your question on the Kubernetes Slack or the Discuss Kubernetes forum.
from website.
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
/triage needs-information
/language en
from website.
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 /triage needs-information /language en
hello ,
What i tried to do is deploying frontend,
Check this one
https://kubernetes.io/docs/tasks/access-application-cluster/connecting-frontend-backend/#creating-the-frontend
kubectl apply -f https://k8s.io/examples/service/access/frontend-deployment.yaml
kubectl apply -f https://k8s.io/examples/service/access/frontend-service.yaml
crashloopbackoff occured inbside frontend-deployment pods,
when describing i got
host not found in upstream "hello" in /etc/nginx/conf.d/frontend.conf:2
nginx: [emerg] host not found in upstream "hello" in /etc/nginx/conf.d/frontend.conf:2
all files applied are from kubernetes docs
Regards
from website.
OK, looking in to this a little closer, it looks like there is an issue with the gcr.io/google-samples/hello-frontend:1.0
image used by frontend-deploy.yaml
.
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 frontend
.
That deployment defines 1 replica, with the pod using the gcr.io/google-samples/hello-frontend:1.0
image.
The pod gets created, but ends up in a CrashLoopBackoff
state. Describe the pod shows there is a problem in the events:
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 frontend-758994b889-tfd68_default
. If I get the logs we see the error mentioned above:
$ kubectl logs pod/frontend-758994b889-tfd68_default
2024/04/23 13:53:15 [emerg] 1#1: host not found in upstream "hello" in /etc/nginx/conf.d/frontend.conf:2
nginx: [emerg] host not found in upstream "hello" in /etc/nginx/conf.d/frontend.conf:2
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:
k get all
NAME READY STATUS RESTARTS AGE
pod/backend-7f5b7998b9-2fcl2 1/1 Running 0 87s
pod/backend-7f5b7998b9-rv4mz 1/1 Running 0 87s
pod/backend-7f5b7998b9-snn5c 1/1 Running 0 87s
pod/frontend-758994b889-tfd68 1/1 Running 7 (5m21s ago) 11m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/hello ClusterIP 10.96.88.204 <none> 80/TCP 56s
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 44m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/backend 3/3 3 3 87s
deployment.apps/frontend 1/1 1 1 11m
NAME DESIRED CURRENT READY AGE
replicaset.apps/backend-7f5b7998b9 3 3 3 87s
replicaset.apps/frontend-758994b889 1 1 1 11m
from website.
Hmm, I face the same issue. And I have followed all steps of the tutorial.
from website.
Related Issues (20)
- [ja] Translate docs/concepts/policy/node-resource-managers.md into Japanese HOT 4
- Localize Kubernetes website into Farsi HOT 5
- [ja] Translate docs/contribute/participate/roles-and-responsibilities.md into Japanese HOT 1
- Website search results less accurate after 'Pagefind' integration HOT 7
- label kubernetes.io/role is not mentioned in well-knwon labels while used in kubectl for display HOT 3
- The min and default values for failureThreshold are missing HOT 3
- Dead Link in App Armor Documentation HOT 2
- [ja] Translate docs/concepts/policy/pid-limiting.md into Japanese HOT 3
- In Certificates and Certificate Signing Requests, add hyperlink to CertificateSigningRequest API doc HOT 1
- Issue with k8s.io/ru/docs/reference/ HOT 5
- Improve blog contributing guide for release feature blogs HOT 2
- [fr] Inactive and deprecated interactive tutorial in "Learn Kubernetes Basics" page HOT 5
- [ja] Translate content/en/docs/concepts/storage/volume-attributes-classes.md into Japanese HOT 3
- [ja] Translate content/en/docs/concepts/services-networking/cluster-ip-allocation.md into Japanese HOT 2
- [ja] Translate content/en/docs/concepts/configuration/liveness-readiness-startup-probes.md into Japanese HOT 1
- Kubernetes documentation for Sidecar Containers HOT 9
- [pt-br] Best Practices section translation docs/setup/best-practices/cluster-large/ HOT 3
- Improve blog article summaries presentation with translator metadata in front matter HOT 5
- [ja] Translate content/en/blog/_posts/2024-07-19-kubernetes-1.31-deprecations-and-removals.md into Japanese HOT 4
- Issue with k8s.io/docs/concepts/workloads/pods/ HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.