diff --git a/README.md b/README.md index 75c2b77..c5f051b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/manifests/daily-workout/deployment.yaml b/manifests/daily-workout/deployment.yaml new file mode 100644 index 0000000..651a058 --- /dev/null +++ b/manifests/daily-workout/deployment.yaml @@ -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" diff --git a/manifests/daily-workout/service.yaml b/manifests/daily-workout/service.yaml new file mode 100644 index 0000000..111be1c --- /dev/null +++ b/manifests/daily-workout/service.yaml @@ -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