Skip to content

Commit

Permalink
feat: deploy openproject
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Jan 26, 2024
1 parent 81db0f7 commit 5a4cced
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
Empty file added openproject/9B1
Empty file.
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 5a4cced

Please sign in to comment.