0

Hi I am a first time Kubernetes user trying to deploy ShinyProxy in a Google Kubernetes Engine. O deployed the application and the containers are up and running with the service and ingress set up with NGINX.

#Deployment configuration

apiVersion: apps/v1
kind: Deployment
metadata:  name: shinyproxy
  namespace: shiny
spec:
  selector:
    matchLabels:
      run: shinyproxy
#      tier: backend
  replicas: 1
  template:
    metadata:
      labels:
        run: shinyproxy
#        tier: backend
    spec:
      containers:
      - name: shinyproxy
        image: docker.io/anjanae/shinyproxy-application:v1
         imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 8080
        livenessProbe:
          httpGet:
            path: /
            port: 8080
          initialDelaySeconds: 300
          timeoutSeconds: 10
          periodSeconds: 20
#        readinessProbe:
#          httpGet:
#            port: 9090
#          periodSeconds: 20
#          initialDelaySeconds: 20
        volumeMounts:
        - name: shinyproxy-configs
          mountPath: /etc/config
      - name: kube-proxy-sidecar
        image: docker.io/anjanae/kube-proxy-sidecar
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 8001
      imagePullSecrets:
      volumes:
        - name: shinyproxy-configs
          configMap:
            name: shinyproxy-config

The application is exposed on my domain and I get to the login page.

#service configuration
apiVersion: v1
kind: Service
metadata:
  name: shinyproxy
  namespace: shiny
  annotations:
 #    cloud.google.com/backend-config: '{"ports": {"80":"my-backendconfig"}}'
     cloud.google.com/neg: '{"ingress": true}'
spec:
  type: NodePort
  selector:
    run: shinyproxy
#    tier: backend
  ports:
    - protocol: TCP
      port: 8080
      targetPort: 8080
#ingress 

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-resource
  namespace: shiny
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
    kubernetes.io/ingress.class: nginx
#    networking.gke.io/v1beta1.FrontendConfig: "my-frontend-config"
spec:
  tls:
  - secretName: my-tls-secret
  rules:
  - host: eci-isb401.net
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
         service:
            name: shinyproxy
            port:
              number: 8080

However the app remains unresponsive when I try to login to the application using the credentials configured in the application.yml. The container log shows that the user is logged in but the webpage remains unchanged. Can you please let me know if I am missing something ? So I can view the demo applications in the shinyproxy.

LearningR
  • 23
  • 3

1 Answers1

0

These could be possible reasons as you don't have any problem with ShinyProxy deployment.

  • Check the configuration of the ShinyProxy whether you have configured correct credential methods and ShinyProxy will support multiple authentication methods and check the YML file whether its matching or not.
  • Check your network configuration as you have mentioned that you have set up and ingress with NGINX to expose the service and check whether it is configured correctly or not.
  • Lastly check the logs of the ShinyProxy container and NgINX container.

Check the ShinyProxy official documentation for further reference.