Skip to content

Commit

Permalink
Add daily-workout deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrited committed Jun 9, 2024
1 parent 240d58a commit 6b4eecf
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| [Terraform](https://argoproj.github.io/) | IaC Tool used to manage Cloudflare DNS and Tunnels |

## Infrastructure as Code
The cloudflare configuration of DNS records and tunnels are made with terraform. To make the process even easier, the github action uses the terraform cloud to plan and apply changes. All necessary variables (e.g. tunnel id) are stored as secrets in the terraform cloud project.
The cloudflare configuration of DNS records and tunnels are made with terraform. To make the process even easier, a github action uses the terraform cloud to plan and apply changes. All necessary variables (e.g. tunnel id) are stored as secrets in the terraform cloud project.

## How to create the cluster

Expand Down
24 changes: 24 additions & 0 deletions manifests/daily-workout/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: daily-workout-deployment
labels:
app: daily-workout
spec:
replicas: 1
selector:
matchLabels:
app: daily-workout
template:
metadata:
labels:
app: daily-workout
spec:
containers:
- name: daily-workout
image: ghcr.io/gerrited/daily-workout:latest
ports:
- containerPort: 3000
env:
- name: NODE_ENV
value: "production"
12 changes: 12 additions & 0 deletions manifests/daily-workout/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: daily-workout-service
spec:
selector:
app: daily-workout
ports:
- protocol: TCP
port: 80
targetPort: 3000
type: LoadBalancer

0 comments on commit 6b4eecf

Please sign in to comment.