Skip to content
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

Exit code 1 when run in Kubernetes #9

Open
keithbo opened this issue May 12, 2023 · 0 comments
Open

Exit code 1 when run in Kubernetes #9

keithbo opened this issue May 12, 2023 · 0 comments

Comments

@keithbo
Copy link

keithbo commented May 12, 2023

I've been attempting to get docker-gunbot to run within a Kubernetes cluster but it goes in to CrashLoopFallback with an exit code of 1.
Is there a way to get additional debug output to trace the error? When run within docker on my localhost it works as expected.
This console image is the only output I have to go on
image
When triggering startup.sh manually everything appears to start but the server just exits without any further log output.
Deployment yaml is as follows, it is pretty basic

kind: Deployment
apiVersion: apps/v1
metadata:
  name: gunthy
spec:
  replicas: 1
  selector:
    matchLabels:
      name: gunthy
  template:
    metadata:
      name: gunthy
      labels:
        name: gunthy
    spec:
      volumes:
        - name: gunthy
          persistentVolumeClaim:
            claimName: gunthy-pvc
      nodeSelector:
        csi.driver/nfs: 'true'
      containers:
        - name: gunbot
          image: 'computeronix/gunbot:latest'
          command: [ "/bin/bash", "-c", "--" ]
          args: [ "while true; do sleep 30; done;" ]
          securityContext:
            capabilities:
              add: [ "SYS_TIME" ]
          volumeMounts:
            - name: gunthy
              mountPath: /mnt/gunbot
---
kind: Service
apiVersion: v1
metadata:
  name: gunthy-lb
spec:
  ports:
    - protocol: TCP
      port: 5000
      targetPort: 5000
  selector:
    name: gunthy
  type: LoadBalancer
  loadBalancerIP: 10.10.0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant