-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker container working, setting up k8s
- Loading branch information
Rio Sinnott
committed
Feb 13, 2025
1 parent
31f308d
commit 384d024
Showing
3 changed files
with
77 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: amenity-app | ||
labels: | ||
app: amenity | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: amenity | ||
template: | ||
metadata: | ||
labels: | ||
app: amenity | ||
spec: | ||
containers: | ||
- name: amenity | ||
image: riocodes/amenity:1.0 | ||
ports: | ||
- containerPort: 3000 | ||
env: | ||
- name: RAILS_ENV | ||
value: "production" | ||
- name: DATABASE_HOST | ||
value: 192.168.66.9 | ||
- name: DATABASE_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: amenity-secrets | ||
key: database-user | ||
- name: DATABASE_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: amenity-secrets | ||
key: database-password | ||
- name: DATABASE_NAME | ||
value: "amenity_production" | ||
- name: RAILS_MASTER_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: amenity-secrets | ||
key: rails-master-key | ||
resources: | ||
requests: | ||
memory: "512Mi" | ||
cpu: "250m" | ||
limits: | ||
memory: "1Gi" | ||
cpu: "500m" | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: 3000 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 5 | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: 3000 | ||
initialDelaySeconds: 15 | ||
periodSeconds: 10 |