Skip to content

Commit

Permalink
Merge pull request #223 from Greenstand/openproject
Browse files Browse the repository at this point in the history
openproject
  • Loading branch information
dadiorchen authored Jan 26, 2024
2 parents 81db0f7 + 6a4e67d commit 20b8464
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openproject/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# To deploy open project under /openproject/

# Not using Kustomize, and sealed secrets, so please: change the settings for
host, and install secret for db manually.

# Install openproject

Simply apply this deployment.yaml
85 changes: 85 additions & 0 deletions openproject/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
# namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: openproject


---
# the deployment for openproject application
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:
containers:
- name: openproject
image: openproject/community:13
ports:
- containerPort: 8080
env:
- name: SECRET_KEY_BASE
value: "some-secret-key"
# PLEASE CHANGE THE FOLLOWING ENVIRONMENT VARIABLES
- name: OPENPROJECT_HOST__NAME
value: prod-k8s.treetracker.org
- name: OPENPROJECT_RAILS__RELATIVE__URL__ROOT
value: /openproject
# PLEASE SET THE SECRET ON KUBERNETES
- name: DATABASE_URL
# secret
valueFrom:
secretKeyRef:
name: openproject-db-secret
key: database-url

# - name: SMTP_ADDRESS
# value: "smtp.gmail.com"
# - name: SMTP_PORT
# value: "587"
# - name: SMTP_DOMAIN
# value: "smtp.gmail.com"
# - name: SMTP_USER_NAME
# value: "

---
# service.yaml
apiVersion: v1
kind: Service
metadata:
name: openproject
namespace: openproject
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8080
selector:
app: openproject


---
# mappping.yaml
# ambassador mapping for openproject
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: openproject
namespace: openproject
spec:
prefix: /openproject/
rewrite: /openproject/
service: openproject:80

0 comments on commit 20b8464

Please sign in to comment.