-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
css file is not getting rendered using custom default backend #11169
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it 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. |
/remove-kind bug I think static content serving etc is a question for your frontend engineering team. They can use relative path maybe. The controller just routes requests and CSS is not requested explicitly by a client |
relative path is not working either.
I have tried below:
```
<link rel="stylesheet" href="custom.css">
<link rel="stylesheet" href="~/custom.css">
<link rel="stylesheet" href="/www/custom.css">
```
Can you provide an example for that.
This should be a common use case where html page has css links
…On Wed, Mar 27, 2024 at 1:15 AM Long Wu Yuan ***@***.***> wrote:
/remove-kind bug
I think static content serving etc is a question for your frontend
engineering team. They can use relative path maybe. The controller just
routes requests and CSS is not requested explicitly by a client
—
Reply to this email directly, view it on GitHub
<#11169 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3YVVJOKXCXYQCPRFY54U7LY2J5ZRAVCNFSM6AAAAABFKGB52SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRSGE3TOOJZGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I can not create a new backend to give example I dont see the code of your backend so can not comment on that. Please wait for comments from other users of custom backend who have same use case. |
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach |
@xpan0616 Did you ever resolve this? I'm experiencing the same thing. AKS and pretty much the same config as you. |
@xpan0616 @rnemeth90 Same issue, for now I will probably put css and svg in html files. But would be nice to have some solution to this |
What happened:
I set custom default backend for my ingress nginx controller. When I test this, I can see 503.html page showing but without any CSS applied to it can you help me understand why.
What you expected to happen:
I expect if html page has css or picture it should work. In your example, I don't see such an example with css or image
I am not sure ! I tried to change the css link to
<link rel="stylesheet" href="/www/custom.css">
that didn't work either
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
Kubernetes version (use
kubectl version
):Environment:
Cloud provider or hardware configuration: AKS
OS (e.g. from /etc/os-release):
Kernel (e.g.
uname -a
):Install tools:
Please mention how/where was the cluster created like kubeadm/kops/minikube/kind etc.
This is a AKS clusterBasic cluster related info:
kubectl get nodes -o wide
How was the ingress-nginx-controller installed: helm upgrade --install nginx-external ingress-nginx/ingress-nginx --namespace nginx-external -f external-ingress-config.yaml
If helm was used then please show output of
helm ls -A | grep -i ingress
helm -n <ingresscontrollernamespace> get values <helmreleasename>
kubectl describe ingressclasses
Name: nginx-external
Labels: app.kubernetes.io/component=controller
app.kubernetes.io/instance=nginx-external
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=ingress-nginx
app.kubernetes.io/part-of=ingress-nginx
app.kubernetes.io/version=1.10.0
helm.sh/chart=ingress-nginx-4.10.0
Annotations: meta.helm.sh/release-name: nginx-external
meta.helm.sh/release-namespace: nginx-external
Controller: k8s.io/ingress-nginx
Events:
kubectl -n <ingresscontrollernamespace> get all -A -o wide
kubectl -n <ingresscontrollernamespace> describe po <ingresscontrollerpodname>
kubectl -n <ingresscontrollernamespace> describe svc <ingresscontrollerservicename>
Current state of ingress object, if applicable:
kubectl -n <appnamespace> get all,ing -o wide
kubectl -n <appnamespace> describe ing <ingressname>
Others:
kubectl describe ...
of any custom configmap(s) created and in useThe text was updated successfully, but these errors were encountered: