crates bootstrap
This commit is contained in:
1 parent
c2a5545a96
commit
a0eafda76c
3 files changed
+93
-63
No files matched your search
+48
-29
@@ -15,7 +15,7 @@ metadata:
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: spacerace-postgres-pvc
|
||||
name: spacerace-postgres-data
|
||||
namespace: spacerace
|
||||
spec:
|
||||
storageClassName: zfs-fast
|
||||
@@ -27,6 +27,20 @@ spec:
|
||||
|
||||
---
|
||||
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: spacerace-postgres-bootstrap
|
||||
namespace: spacerace
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
|
||||
---
|
||||
|
||||
# -----------------------------------------------------------------------
|
||||
# DEPLOYMENTS
|
||||
# -----------------------------------------------------------------------
|
||||
@@ -70,41 +84,46 @@ spec:
|
||||
volumeMounts:
|
||||
- name: spacerace-postgres-storage
|
||||
mountPath: /var/lib/postgresql/data
|
||||
- name: spacerace-postgres-bootstrap
|
||||
mountPath: /docker-entrypoint-initdb.d
|
||||
|
||||
volumes:
|
||||
- name: spacerace-postgres-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: spacerace-postgres-pvc
|
||||
claimName: spacerace-postgres-data
|
||||
- name: spacerace-postgres-bootstrap
|
||||
persistentVolumeClaim:
|
||||
claimName: spacerace-postgres-bootstrap
|
||||
|
||||
---
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: spacerace-api
|
||||
namespace: spacerace
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: spacerace-api
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: spacerace-api
|
||||
spec:
|
||||
containers:
|
||||
- name: spacerace-api
|
||||
image: registry.ntwl.xyz/spacerace-api
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 80
|
||||
env:
|
||||
- name: CONNECTIONSTRINGS__SPACERACE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: spacerace
|
||||
key: CONNECTIONSTRINGS__SPACERACE
|
||||
# apiVersion: apps/v1
|
||||
# kind: Deployment
|
||||
# metadata:
|
||||
# name: spacerace-api
|
||||
# namespace: spacerace
|
||||
# spec:
|
||||
# replicas: 1
|
||||
# selector:
|
||||
# matchLabels:
|
||||
# app: spacerace-api
|
||||
# template:
|
||||
# metadata:
|
||||
# labels:
|
||||
# app: spacerace-api
|
||||
# spec:
|
||||
# containers:
|
||||
# - name: spacerace-api
|
||||
# image: registry.ntwl.xyz/spacerace-api
|
||||
# imagePullPolicy: IfNotPresent
|
||||
# ports:
|
||||
# - containerPort: 80
|
||||
# env:
|
||||
# - name: CONNECTIONSTRINGS__SPACERACE
|
||||
# valueFrom:
|
||||
# secretKeyRef:
|
||||
# name: spacerace
|
||||
# key: CONNECTIONSTRINGS__SPACERACE
|
||||
---
|
||||
|
||||
# -----------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user