OpenProject Community Kubernetes deployment file

deployment.yaml

---
apiVersion: v1
kind: Namespace
metadata:
  name: openproject
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: openproject
  namespace: openproject
  labels:
    app: openproject
spec:
  replicas: 1
  selector:
    matchLabels:
      app: openproject
  template:
    metadata:
      labels:
        app: openproject
    spec:
      nodeSelector:
        app: openproject
      containers:
      - name: openproject
        image: openproject/community:10
        env:
          - name: SECRET_KEY_BASE
            value: secret
        ports:
        - containerPort: 8080
          name: openproject
          protocol: TCP
        livenessProbe:
          tcpSocket:
            port: 8080
          initialDelaySeconds: 600
          timeoutSeconds: 2
        readinessProbe:
          tcpSocket:
            port: 8080
          initialDelaySeconds: 600 # 10 minutes
          timeoutSeconds: 2
        volumeMounts:
        - name: pgdata
          mountPath: /var/openproject/pgdata
        - name: assets
          mountPath: /var/openproject/assets
      volumes:
        - name: pgdata
          hostPath:
            path: /opt/openproject/pgdata
            type: DirectoryOrCreate
        - name: assets
          hostPath:
            path: /opt/openproject/static
            type: DirectoryOrCreate

OpenProject Community 10

Username: admin
Password: admin

Reference: https://docs.openproject.org/installation-and-operations/installation/docker/

Error:
Hostname setting mismatch Your application is running with its host name setting set to localhost:3000, but the request is a “your hostname” hostname. This will result in errors! Go to System settings and change the “Host name” setting to correct this.

Solution:
Browse to System Settings (/settings). Change the value of the hostname to the correct hostname (as you define).

Leave a Reply