Hi,
I am going through a very weird situation and I feel desperate.
In short my issue is: My shiny app works perfectly locally and isolated on a docker image,
but for some odd reason it does not work properly on Google Kubernetes engine.
the exact same docker image just does not load the app properly at all.
And here is what inspect element says:
I'm not putting images of my app because I can only put one image, but as you can see from the inspect element, it doesn't load properly.
Here is my dockerfile:
FROM rocker/shiny-verse:3.6.0
RUN apt-get -y install default-jre
RUN apt-get -y install default-jdk
RUN sudo apt-get -y install libbz2-dev
RUN sudo apt-get install liblzma-dev
RUN install2.r --error \
rJava \
solitude \
tidytext \
shinythemes \
future \
promises \
DT \
plotly \
RAdwords \
devtools \
remotes
RUN R -e "remotes::install_github('rstudio/httpuv')"
COPY /app /srv/shiny-server
COPY shiny-server.conf /etc/shiny-server/shiny-server.conf
CMD ["/usr/bin/shiny-server.sh"]
My folder structure:
- Docker-file
- shiny-server.conf
- app
- server.R
- ui.R
- www
- logo.png
My r-ingress-nginx.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: r-ingress-nginx
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
rules:
- http:
paths:
- path: /shiny1/
backend:
serviceName: shiny1
servicePort: 3838
I have tried to install the latest httpuv version and install Shiny 1.2.0 to no success, same thing happens.